packages: libxtract/libxtract.spec - updated to 0.6.3 - package java and py...

qboosh qboosh at pld-linux.org
Wed May 11 16:15:23 CEST 2011


Author: qboosh                       Date: Wed May 11 14:15:23 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 0.6.3
- package java and python bindings

---- Files affected:
packages/libxtract:
   libxtract.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/libxtract/libxtract.spec
diff -u packages/libxtract/libxtract.spec:1.7 packages/libxtract/libxtract.spec:1.8
--- packages/libxtract/libxtract.spec:1.7	Tue Feb  9 02:26:57 2010
+++ packages/libxtract/libxtract.spec	Wed May 11 16:15:18 2011
@@ -2,15 +2,24 @@
 Summary:	LibXtract - a library of audio feature extraction functions
 Summary(pl.UTF-8):	LibXtract - biblioteka funkcji do wydobywania cech dźwięku
 Name:		libxtract
-Version:	0.6.2
+Version:	0.6.3
 Release:	1
 License:	GPL v2+
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/libxtract/%{name}-%{version}.tar.gz
-# Source0-md5:	f84a55a392a2688f1c3fffc061c73c25
+Source0:	http://downloads.sourceforge.net/libxtract/%{name}-%{version}.tar.gz
+# Source0-md5:	43cd8403b9227690dd7e8c09acaefc36
+Patch0:		%{name}-link.patch
 URL:		http://libxtract.sourceforge.net/
+BuildRequires:	autoconf >= 2.13
+BuildRequires:	automake >= 1.6
 BuildRequires:	fftw3-single-devel >= 2.0
+BuildRequires:	jdk
+BuildRequires:	jpackage-utils
+BuildRequires:	libtool
 BuildRequires:	pkgconfig
+BuildRequires:	python-devel
+BuildRequires:	rpmbuild(macros) >= 1.294
+BuildRequires:	swig-python >= 1.3.21
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -88,12 +97,46 @@
 %description static -l pl.UTF-8
 Statyczna biblioteka libxtract.
 
+%package -n java-libxtract
+Summary:	Java binding for libxtract library
+Summary(pl.UTF-8):	Wiązania Javy do biblioteki libxtract
+Group:		Libraries/Java
+Requires:	%{name} = %{version}-%{release}
+
+%description -n java-libxtract
+Java binding for libxtract library.
+
+%description -n java-libxtract -l pl.UTF-8
+Wiązania Javy do biblioteki libxtract.
+
+%package -n python-libxtract
+Summary:	Python binding for libxtract library
+Summary(pl.UTF-8):	Wiązania Pythona do biblioteki libxtract
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-libxtract
+Python binding for libxtract library.
+
+%description -n python-libxtract -l pl.UTF-8
+Wiązania Pythona do biblioteki libxtract.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
-	--enable-fft
+	JAVAC="%{javac}" \
+	--enable-fft \
+	--enable-swig \
+	--with-java \
+	--with-python
 
 %{__make}
 
@@ -103,6 +146,10 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libjxtract.{la,a}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/libxtract/_xtract.{la,a}
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -126,12 +173,27 @@
 %defattr(644,root,root,755)
 %{_libdir}/libxtract.a
 
+%files -n java-libxtract
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libjxtract.so
+
+%files -n python-libxtract
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/libxtract
+%attr(755,root,root) %{py_sitedir}/libxtract/_xtract.so
+%dir %{py_sitescriptdir}/libxtract
+%{py_sitescriptdir}/libxtract/xtract.py[co]
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2011/05/11 14:15:18  qboosh
+- updated to 0.6.3
+- package java and python bindings
+
 Revision 1.7  2010/02/09 01:26:57  sparky
 - BR: pkgconfig
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libxtract/libxtract.spec?r1=1.7&r2=1.8&f=u



More information about the pld-cvs-commit mailing list