Name: mp3agic Version: 0.8.1 Release: 1%{?dist} Summary: A java library for reading mp3 files and reading/manipulating the ID3 tags Group: Development/Libraries License: MIT URL: http://mpatric.github.io/mp3agic/ Source0: https://github.com/mpatric/mp3agic/archive/%{version}.tar.gz BuildRequires: java-devel # test dep BuildRequires: junit BuildRequires: maven-local Requires: java BuildArch: noarch %description A java library for reading mp3 files and reading/manipulating the ID3 tags (ID3v1 and ID3v2.2 through ID3v2.4). A simple set of command-line tools built on top of the library are included which perform tasks such including printing mp3 and ID3 details, renaming mp3 files using details from the ID3 tags, re-tagging mp3 files, attaching images to mp3 files and extracting images from mp3 files. Some features: ° 100% Java ° read low-level MPEG frame data ° read, write, add and remove ID3v1 and ID3v2 tags (ID3v2.3 and ID3v2.4) ° read obsolete 3-letter ID3v2.2 tags (but not write them) ° correctly read VBR files by looking at the actual MPEG frames ° read and write embedded images (such as album art) ° add or remove custom messages between the end of the MPEG frames and the ID3v1 tag ° UNICODE support %package javadoc Group: Documentation Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q %pom_remove_plugin :maven-source-plugin %pom_remove_plugin com.github.github:downloads-maven-plugin %pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" sed -i "s|@deploy-dir|%{_javadir}|" scripts/* %build mvn-rpmbuild package javadoc:aggregate %install mkdir -p %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} mkdir -p %{buildroot}%{_bindir} install -pm 755 scripts/mp3* %{buildroot}%{_bindir} %files %{_bindir}/mp3cat %{_bindir}/mp3details %{_bindir}/mp3move %{_bindir}/mp3pics %{_bindir}/mp3rename %{_bindir}/mp3retag %{_javadir}/%{name}.jar %{_mavenpomdir}/JPP-%{name}.pom %{_mavendepmapfragdir}/%{name} %doc mit-license.txt readme.md %files javadoc %{_javadocdir}/%{name} %doc mit-license.txt %changelog * Sun Jun 02 2013 gil cattaneo 0.8.1-1 - initial rpm