[packages/icedtea-sound] new package
jajcus
jajcus at pld-linux.org
Wed Aug 6 09:50:58 CEST 2014
commit 6a29e6fce292b753c1b95f11065d388983c5c2aa
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date: Wed Aug 6 09:50:14 2014 +0200
new package
icedtea-sound.spec | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 92 insertions(+)
---
diff --git a/icedtea-sound.spec b/icedtea-sound.spec
new file mode 100644
index 0000000..54e8020
--- /dev/null
+++ b/icedtea-sound.spec
@@ -0,0 +1,92 @@
+# Conditional build:
+%bcond_without javadoc # don't build javadoc
+%bcond_with tests # build with tests (use network)
+
+%define use_jdk icedtea7
+
+Summary: Collection of audio SPI implementations for Java
+Name: icedtea-sound
+Version: 1.0.1
+Release: 1
+License: GPL v2
+Group: Applications
+Source0: http://icedtea.wildebeest.org/download/source/%{name}-%{version}.tar.xz
+# Source0-md5: e4d8013735ae517c015327924dabf3ed
+URL: http://icedtea.classpath.org/wiki/IcedTea-Sound
+BuildRequires: autoconf
+BuildRequires: automake
+%{?with_tests:BuildRequires: java-junit}
+BuildRequires: jpackage-utils
+BuildRequires: pkgconfig
+BuildRequires: pulseaudio-devel
+BuildRequires: rpm-javaprov
+%{?buildrequires_jdk}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+IcedTea-Sound contains the PulseAudio provider which was removed from
+IcedTea itself from 2.5.0 onwards.
+
+%package javadoc
+Summary: Online manual for %{name}
+Summary(pl.UTF-8): Dokumentacja online do %{name}
+Group: Documentation
+Requires: jpackage-utils
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
+
+%description javadoc
+Documentation for %{name}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{name}.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+
+%configure \
+ --with-jdk-home="%{java_home}" \
+ --docdir="%{_javadocdir}/%{name}-%{version}" \
+ %{!?with_javadoc:--disable-docs}
+
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/src.zip
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README
+%attr(755,root,root) %{_libdir}/libicedtea-sound.so
+%attr(755,root,root) %{_libdir}/libicedtea-sound.so.1.*.*
+%{_datadir}/%{name}
+
+%if %{with javadoc}
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/icedtea-sound.git/commitdiff/6a29e6fce292b753c1b95f11065d388983c5c2aa
More information about the pld-cvs-commit
mailing list