Name: vlcj Version: 2.1.0 Release: 1%{?dist} Summary: Java framework for the vlc media player Group: Development/Libraries License: GPLv3 URL: http://www.capricasoftware.co.uk/vlcj Source0: https://github.com/downloads/caprica/%{name}/%{name}-%{version}-dist.tar.gz # Source jar file doesn't ship any assemblies, so the plugin isn't needed Patch0: %{name}-%{version}-remove-assembly-plugin.patch # Don't include classpath in manifest Patch1: %{name}-%{version}-remove-manifest.patch BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: maven BuildRequires: jna-contrib > 3.4.0-3 Requires: java >= 1:1.6.0 Requires: jpackage-utils Requires: jna-contrib > 3.4.0-3 Requires: vlc >= 2.0 %description The vlcj project is an Open Source project that provides Java bindings for the excellent vlc media player from VideoLAN. The bindings can be used to build media player client and server software using Java - everything from simply playing local media files to a full-blown video-on-demand streaming server is possible. %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q # Clean up the POM file %patch0 -p1 %patch1 -p1 # Put the sources where they need to be %{__mkdir_p} src/main/java pushd src/main/java %{__unzip} ../../../%{name}-%{version}-sources.jar popd # Remove all included jars %{__rm} -f *.jar %build mvn-rpmbuild package javadoc:aggregate %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ rm -rf target/site/api* %files %doc README.md doc/* %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %{_javadocdir}/%{name} %changelog * Wed Jun 20 2012 Mary Ellen Foster - 2.1.0-1 - Initial package