[soxr] Initial packaging.

Richard Shaw hobbes1069 at fedoraproject.org
Tue Apr 30 20:01:02 UTC 2013


commit 7266bb98ce7f130d23ac33bbcbf05c2409b02f2c
Author: Richard M. Shaw <hobbes1069 at gmail.com>
Date:   Tue Apr 30 15:00:59 2013 -0500

    Initial packaging.

 .gitignore |    1 +
 sources    |    1 +
 soxr.spec  |   70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8034ee7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/soxr-0.1.1-Source.tar.xz
diff --git a/sources b/sources
index e69de29..6bfa93c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+805651a245ead381c82fad6247af5968  soxr-0.1.1-Source.tar.xz
diff --git a/soxr.spec b/soxr.spec
new file mode 100644
index 0000000..2af9671
--- /dev/null
+++ b/soxr.spec
@@ -0,0 +1,70 @@
+Name:           soxr
+Version:        0.1.1
+Release:        1%{?dist}
+Summary:        The SoX Resampler library
+
+License:        LGPLv2+
+URL:            https://sourceforge.net/p/soxr/wiki/Home/ 
+Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.xz
+
+BuildRequires:  cmake
+
+%description
+The SoX Resampler library `libsoxr' performs one-dimensional sample-rate
+conversion -- it may be used, for example, to resample PCM-encoded audio.
+
+
+%package        devel
+Summary:        Development files for %{name}
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q -n %{name}-%{version}-Source
+
+
+%build
+rm -rf build && mkdir build && pushd build
+export LDFLAGS="-Wl,--as-needed"
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+       ../
+make %{?_smp_mflags}
+
+
+%install
+pushd build
+%make_install
+
+# Remove docs and use the rpmbuild macro instead
+rm -rf %{buildroot}%{_docdir}/*
+
+
+%check
+pushd build
+make test
+
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc LICENCE NEWS README
+%{_libdir}/*.so.*
+
+%files devel
+%doc examples
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/soxr-lsr.pc
+%{_libdir}/pkgconfig/soxr.pc
+
+
+%changelog
+* Mon Apr 29 2013 Richard Shaw <hobbes1069 at gmail.com> - 0.1.1-1
+- Initial packaging.


More information about the scm-commits mailing list