diff --git a/baselibs.conf b/baselibs.conf index 3d32100..604d274 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1,3 @@ -libid3tag +libid3tag0 + provides "libid3tag = %version-%release" + obsoletes "libid3tag < %version-%release" diff --git a/libid3tag.changes b/libid3tag.changes index 1b5daaa..e7fa418 100644 --- a/libid3tag.changes +++ b/libid3tag.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Fri Nov 23 19:06:26 UTC 2012 - jengelh@inai.de + +- Remove redundant tags/sections from specfile +- Parallel build with %_smp_mflags +- Employ shared library naming +- Have makeinstall succeed on non-SUSE + ------------------------------------------------------------------- Thu Nov 22 18:26:13 UTC 2012 - crrodriguez@opensuse.org diff --git a/libid3tag.spec b/libid3tag.spec index c5f7acc..205bcd1 100644 --- a/libid3tag.spec +++ b/libid3tag.spec @@ -17,16 +17,14 @@ Name: libid3tag -BuildRequires: gperf -BuildRequires: libtool -BuildRequires: pkg-config -BuildRequires: zlib-devel +%define lname libid3tag0 Summary: ID3 Tag Manipulation Library License: GPL-2.0+ -Group: System/Libraries +Group: Development/Libraries/C and C++ Version: 0.15.1b Release: 0 Url: http://www.underbit.com/products/mad/ + Source: %{name}-%{version}.tar.bz2 Patch: libid3tag-noweak.dif Patch1: libid3tag-gperf.dif @@ -36,16 +34,31 @@ Patch4: libid3tag-optflags.patch Patch5: libid3tag-0.15.1b-fix_overflow.patch Patch6: libid3tag-visibility.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: gperf +BuildRequires: libtool +BuildRequires: pkg-config +BuildRequires: zlib-devel %description libid3tag is a library for reading and writing ID3 tags, both ID3v1 and the various versions of ID3v2. +%package -n %lname +Summary: ID3 Tag Manipulation Library +Group: System/Libraries +# O/P added for 12.3 +Obsoletes: libid3tag < %version-%release +Provides: libid3tag = %version-%release + +%description -n %lname +libid3tag is a library for reading and writing ID3 tags, both ID3v1 and +the various versions of ID3v2. + %package devel Summary: Development package for libid3tag library Group: Development/Libraries/C and C++ +Requires: %lname = %version Requires: glibc-devel -Requires: libid3tag = %version %description devel This package contains the header files and static libraries needed to @@ -63,30 +76,27 @@ develop applications with libid3tag. %build autoreconf -fiv %configure --disable-static -make %{?jobs:-j %jobs} +make %{?_smp_mflags} echo -e "prefix=%_prefix\nexec_prefix=%_prefix\nlibdir=%_libdir\nincludedir=%_includedir\nName: id3tag\nDescription: ID3 tag library\nRequires:\nVersion: %version\nLibs: -L%_libdir -lid3tag\nCflags: -I%_includedir\n" > id3tag.pc %install -%makeinstall +make install DESTDIR="%buildroot" install -m 644 -D id3tag.pc %{buildroot}%{_libdir}/pkgconfig/id3tag.pc rm -f $RPM_BUILD_ROOT%{_libdir}/libid3tag*.*a -%post -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig -%postun -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%clean -rm -rf $RPM_BUILD_ROOT - -%files +%files -n %lname %defattr(-,root,root) -%{_libdir}/lib*.so.* +%{_libdir}/libid3tag.so.0* %files devel %defattr(-,root,root) %doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION %{_includedir}/* -%{_libdir}/*.so +%{_libdir}/libid3tag.so %{_libdir}/pkgconfig/id3tag.pc %changelog