Name: vorbisspi Version: 1.0.3 Release: 2%{?dist} Summary: Java Service Provider Interface for the OGG Vorbis audio format Group: Development/Libraries License: LGPLv2+ URL: http://www.javazoom.net/vorbisspi/vorbisspi.html Source0: http://www.javazoom.net/%{name}/sources/%{name}%{version}.tar.gz # Sample class implementation removed from tritonus_share.jar currently shipped by fedora, # but necessary to build this package Source1: http://tritonus.cvs.sourceforge.net/viewvc/tritonus/tritonus/src/org/tritonus/share/sampled/convert/TMatrixFormatConversionProvider.java BuildArch: noarch BuildRequires: jpackage-utils BuildRequires: java-devel >= 1:1.6.0 BuildRequires: ant BuildRequires: tritonus BuildRequires: jorbis Requires: jpackage-utils Requires: java >= 1:1.6.0 Requires: tritonus Requires: jorbis %description VorbisSPI is a Java Service Provider Interface that adds OGG Vorbis audio format support to Java platform. It supports Icecast streaming. It is based on JOrbis Java libraries. OGG Vorbis is a fully Open, non-proprietary, patent-and-royalty-free, general-purpose compressed audio format for high quality (44.1-48.0kHz, 16+ bit, polyphonic) audio and music at fixed and variable bit rates from 16 to 128 Kbps/channel. This places Vorbis in the same class as audio representations including MPEG-1 audio layer 3, MPEG-4 audio (AAC and TwinVQ), and PAC. %package javadoc Summary: Java docs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n VorbisSPI%{version} # Make sure to remove all prebuilt classes and jars find . \( -name '*.class' -o -name '*.jar' \) -exec rm -rf '{}' \; # Remove the docs dir if it is already there [ -d docs ] && rm -rf docs # Fix end of line encoding sed -i 's|\r||g' *.txt # Put the sample class where it should be cp -p %{SOURCE1} src/javazoom/spi/vorbis/sampled/convert %build %ant all -Dtritonusjar=%{_libdir}/tritonus/tritonus_share.jar \ -Djorbisjar=$(build-classpath jorbis) \ -Doggjar=$(build-classpath jogg) %install install -Dpm 644 %{name}%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -rp docs $RPM_BUILD_ROOT%{_javadocdir}/%{name} %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt %{_javadir}/%{name}.jar %files javadoc %defattr(-,root,root,-) %doc LICENSE.txt %{_javadocdir}/%{name} %changelog * Tue Jan 25 2011 Hicham HAOUARI - 1.0.3-2 - Spec cleanup per https://bugzilla.redhat.com/show_bug.cgi?id=664615#c2 * Mon Dec 20 2010 Hicham HAOUARI - 1.0.3-1 - Initial package for Fedora