Name: jorbis Summary: JOrbis - Pure Java Ogg Vorbis Decoder URL: http://www.jcraft.com/jorbis/index.html Group: Development/Java Version: 0.0.17 Release: %mkrel 0.0.5 License: LGPL BuildRequires: ant BuildRequires: jpackage-utils BuildRequires: java-rpmbuild >= 1.5 BuildRequires: unzip BuildRequires: update-alternatives BuildRequires: xml-commons-apis BuildRequires: xml-commons-resolver Requires: java >= 1.5 BuildArch: noarch Source0: %{name}-%{version}.zip Source1: http://nifty-gui.sourceforge.net/nifty-maven-repo/com/jcraft/jorbis/0.0.17/jorbis-0.0.17.pom %description JOrbis is a pure Java Ogg Vorbis decoder. JOrbis accepts Ogg Vorbis bitstreams and decodes them to raw PCMs. JOrbis is copyrighted by JCraft Inc. and is licensed through the GNU Lesser General Public License. Read the COPYING.LIB file for the complete license. %package javadoc Summary: Javadoc for jorbis Group: Development/Java %description javadoc Javadoc for jorbis. %package -n jorbis-player Summary: JOrbisPlayer - a ogg player using %{name} Group: Development/Java Requires: %{name} = %{version} %description -n jorbis-player JOrbisPlayer is a simple ogg-Player. %package -n jorbis-comment Summary: JOrbisComment is a simple comment editor for Ogg Vorbis Group: Development/Java Requires: %{name} = %{version} %description -n jorbis-comment JOrbisComment is a simple comment editor for Ogg Vorbis. This program is just provided here for setting an example, how to use JOrbis for editing comments. %prep %setup -q -n %{name}-%{version} %build %javac \ `find ./ -name '*.java'` %jar cf jorbis.jar \ com/jcraft/jogg/*.class \ com/jcraft/jorbis/*.class %jar cf JOrbisPlayer.jar \ player/*.class %jar cf JOrbisComment.jar \ comment_editor/*.class %javadoc \ -d doc -public \ `find ./ -name '*.java'` %install # jars %__install -dm 755 %{buildroot}%{_javadir} %__install -pm 644 jorbis.jar \ %{buildroot}%{_javadir}/jorbis-%{version}.jar %__install -pm 644 JOrbisPlayer.jar \ %{buildroot}%{_javadir}/JOrbisPlayer-%{version}.jar %__install -pm 644 JOrbisComment.jar \ %{buildroot}%{_javadir}/JOrbisComment-%{version}.jar pushd %{buildroot}%{_javadir} for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"` done popd %__install -dm 755 %{buildroot}%{_mavenpomdir} %__install -pm 644 %SOURCE1 %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc %__install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version} %__cp -pr doc/* \ %{buildroot}%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} %post %update_maven_depmap %postun %update_maven_depmap %files %doc COPYING.LIB ChangeLog README %{_javadir}/%{name}*.jar %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %doc %{_javadocdir}/%{name}-%{version} %doc %{_javadocdir}/%{name} %files -n jorbis-player %doc player/JOrbisPlayer.html #%doc player/*.ogg player/playlist %{_javadir}/JOrbisPlayer*.jar %files -n jorbis-comment %doc comment_editor/README %{_javadir}/JOrbisComment*.jar %changelog * Sat Jan 12 2013 umeabot <umeabot> 0.0.17-0.0.5.mga3 + Revision: 355553 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sat Oct 01 2011 gil <gil> 0.0.17-0.0.4.mga2 + Revision: 150771 - added m2 pom * Sat Mar 05 2011 grenoya <grenoya> 0.0.17-0.0.3.mga1 + Revision: 64994 - imported package jorbis