SPECS: aubio.spec - added python subpackage
sls
sls at pld-linux.org
Mon Jun 18 02:20:24 CEST 2007
Author: sls Date: Mon Jun 18 00:20:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added python subpackage
---- Files affected:
SPECS:
aubio.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/aubio.spec
diff -u SPECS/aubio.spec:1.4 SPECS/aubio.spec:1.5
--- SPECS/aubio.spec:1.4 Mon Jun 18 01:30:15 2007
+++ SPECS/aubio.spec Mon Jun 18 02:20:19 2007
@@ -1,10 +1,13 @@
# $Revision$, $Date$
# TODO:
# - unpackaged /usr/share/sounds/aubio/woodblock.aiff
-# - package python stuff
+# - python package NFY (_aubiowrapper.a in sitescriptdir?)
# - create lash.spec (http://www.nongnu.org/lash) and
# --enable-lash
#
+# Conditional build:
+%bcond_with python # build python bindings
+#
Summary: aubio is a library for audio labelling
Name: aubio
Version: 0.3.2
@@ -19,6 +22,10 @@
BuildRequires: jack-audio-connection-kit-devel
BuildRequires: libsamplerate-devel
BuildRequires: libsndfile-devel
+%if %{with python}
+BuildRequires: python-devel
+BuildRequires: swig-python
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -63,6 +70,14 @@
aubiocut are useful for use with a sequencer such as Hydrogen.
- aubiopitch: a python script to extract pitch tracks from sound files
+%package -n python-aubio
+Summary: aubio python bindings
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-aubio
+aubio python bindings.
+
%prep
%setup -q
@@ -79,10 +94,6 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -rf $RPM_BUILD_ROOT/%{py_sitedir}
-rm -rf $RPM_BUILD_ROOT/%{py_libdir}
-rm -rf $RPM_BUILD_ROOT/%{py_scriptdir}
-
%clean
rm -rf $RPM_BUILD_ROOT
@@ -107,13 +118,26 @@
%files progs
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/aubionotes
+%attr(755,root,root) %{_bindir}/aubioonset
+%attr(755,root,root) %{_bindir}/aubiotrack
+%if %{with python}
+%attr(755,root,root) %{_bindir}/aubiocut
+%attr(755,root,root) %{_bindir}/aubiopitch
+%endif
+
+%files -n python-aubio
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/aubio
%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.5 2007/06/18 00:20:19 sls
+- added python subpackage
+
Revision 1.4 2007/06/17 23:30:15 sls
- added subpackage progs
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/aubio.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list