Accepting request 108160 from multimedia:libs

- Adhere to shared library packaging policy (forwarded request 108149 from saschpe)

OBS-URL: https://build.opensuse.org/request/show/108160
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libsamplerate?expand=0&rev=23
This commit is contained in:
Stephan Kulow 2012-03-07 12:43:08 +00:00 committed by Git OBS Bridge
commit 3a0d7500fe
7 changed files with 57 additions and 129 deletions

View File

@ -1 +1 @@
libsamplerate libsamplerate0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eabfbf532d2c605000fde59da51992214881a8f5b7f315c0f58f9b59cc5eaa9b
size 3790467

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93b54bdf46d5e6d2354b7034395fe329c222a966790de34520702bb9642f1c06
size 4303330

View File

@ -1,68 +0,0 @@
--- acinclude.m4.orig
+++ acinclude.m4
@@ -135,7 +135,6 @@ if test $ac_cv_c_byte_order = unknown ;
fi
)
-]
if test $ac_cv_c_byte_order = big ; then
ac_cv_c_big_endian=1
@@ -154,6 +153,7 @@ else
AC_MSG_WARN([[*****************************************************************]])
fi
+]
)# AC_C_FIND_ENDIAN
--- configure.ac.orig
+++ configure.ac
@@ -4,7 +4,8 @@ dnl Require autoconf version >= 2.57)
AC_PREREQ(2.57)
AC_INIT([libsamplerate],[0.1.7],[erikd@mega-nerd.com])
-
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
# Put config stuff in Cfg.
AC_CONFIG_AUX_DIR(Cfg)
@@ -16,10 +17,6 @@ AC_CONFIG_MACRO_DIR([M4])
AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
AC_CONFIG_HEADER(src/config.h)
-
-dnl Add parameters for aclocal
-AC_SUBST(ACLOCAL_AMFLAGS, "-I M4")
-
AC_LANG([C])
#------------------------------------------------------------------------------------
@@ -40,7 +37,7 @@ AC_LANG([C])
SHARED_VERSION_INFO="1:7:1"
-AC_PROG_CC
+AC_PROG_CC_STDC
AM_PROG_CC_C_O
# Do not check for F77.
@@ -122,7 +119,7 @@ AC_CHECK_SIGNAL(SIGALRM)
AC_C99_FUNC_LRINT
AC_C99_FUNC_LRINTF
-# AC_C99_FUNC_LLRINT Don't need this (yet?).
+AC_C99_FUNC_LLRINT
case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
xyesyes)
--- Makefile.am.orig
+++ Makefile.am
@@ -1,5 +1,6 @@
## Process this file with automake to produce Makefile.in
+ACLOCAL_AMFLAGS = -I M4
DISTCHECK_CONFIGURE_FLAGS = --enable-gcc-werror
SUBDIRS = src doc examples tests

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Tue Mar 6 11:17:23 UTC 2012 - saschpe@suse.de
- Adhere to shared library packaging policy
-------------------------------------------------------------------
Sun Mar 4 23:14:45 UTC 2012 - reddwarf@opensuse.org
- update to version 0.1.8
* Minor bug fixes and updates.
- drop all patches, not needed in new upstream version
- run spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 22 10:19:16 UTC 2011 - coolo@suse.com Tue Nov 22 10:19:16 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libsamplerate # spec file for package libsamplerate
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,21 +15,20 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: libsamplerate Name: libsamplerate
BuildRequires: fftw3-devel libsndfile-devel libtool pkgconfig Version: 0.1.8
Release: 0
Summary: A Sample Rate Converter Library Summary: A Sample Rate Converter Library
Version: 0.1.7
Release: 11
License: GPL-2.0+ License: GPL-2.0+
Group: System/Libraries Group: System/Libraries
Source: %{name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: %{name}-ac.diff
Patch1: libsamplerate_0.1.7-3.diff.gz
Url: http://www.mega-nerd.com/SRC/ Url: http://www.mega-nerd.com/SRC/
Source0: http://www.mega-nerd.com/SRC/libsamplerate-%{version}.tar.gz
Source1: baselibs.conf
BuildRequires: fftw3-devel
BuildRequires: libsndfile-devel
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -43,55 +42,44 @@ downsampling by a factor of 12 to upsampling by the same factor. The
conversion ratio can also vary with time for speeding up and slowing conversion ratio can also vary with time for speeding up and slowing
down effects. down effects.
%package -n libsamplerate0
Summary: A Sample Rate Converter Library
Group: System/Libraries
%description -n libsamplerate0
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
audio. One example of where such a thing would be useful is in
converting audio from the CD sample rate of 44.1kHz to the 48kHz sample
rate used by DAT players.
Authors: SRC is capable of arbitrary and time varying conversions; from
-------- downsampling by a factor of 12 to upsampling by the same factor. The
Erik de Castro Lopo <erikd@mega-nerd.com> conversion ratio can also vary with time for speeding up and slowing
down effects.
%package devel %package devel
License: GPL-2.0+
Summary: Include Files and Libraries mandatory for Development Summary: Include Files and Libraries mandatory for Development
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libsamplerate = %{version} glibc-devel Requires: glibc-devel
Requires: libsamplerate0 = %{version}
%description devel %description devel
This package contains all necessary include files and libraries needed This package contains all necessary include files and libraries needed
to develop applications that require these. to develop applications that require these.
Authors:
--------
Erik de Castro Lopo <erikd@mega-nerd.com>
%package progs %package progs
License: GPL-2.0+
Summary: Example Programs for libsamplerate Summary: Example Programs for libsamplerate
Group: Productivity/Multimedia/Sound/Utilities Group: Productivity/Multimedia/Sound/Utilities
%description progs %description progs
This package includes the example programs for libsamplerate. This package includes the example programs for libsamplerate.
Authors:
--------
Erik de Castro Lopo <erikd@mega-nerd.com>
%prep %prep
%setup -q %setup -q
%patch0
%patch1 -p1
for i in debian/patches/*diff ; do
patch -p1 <$i
done
find . -name "*.orig"|xargs rm
%build %build
autoreconf --force --install %configure --disable-silent-rules --disable-static
%configure --with-pic --disable-static make %{?_smp_mflags}
make %{?jobs:-j %jobs}
%check %check
pushd tests pushd tests
@ -99,32 +87,30 @@ make check
popd popd
%install %install
make DESTDIR="$RPM_BUILD_ROOT" install # Since configure doesn't honor --docdir set htmldocdir here
make install DESTDIR=%{?buildroot} \
htmldocdir=%{_defaultdocdir}/libsamplerate-devel
# remove unneeded files # remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.la
# remove document Makefiles
rm -f doc/Makefile*
%post -p /sbin/ldconfig %post -n libsamplerate0 -p /sbin/ldconfig
%postun -n libsamplerate0 -p /sbin/ldconfig
%postun -p /sbin/ldconfig %files -n libsamplerate0
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/lib*.so.* %doc AUTHORS COPYING
%{_libdir}/libsamplerate.so.0*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL doc %doc ChangeLog
%{_libdir}/lib*.so %{_defaultdocdir}/libsamplerate-devel
%{_includedir}/* %{_libdir}/libsamplerate.so
%{_libdir}/pkgconfig/*.pc %{_includedir}/samplerate.h
%{_libdir}/pkgconfig/samplerate.pc
%files progs %files progs
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/* %{_bindir}/sndfile-resample
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cc16187e56b683628af41c2f94d687a78e9decb9975b3968fbbaf2249c388c4
size 7534