Accepting request 142634 from home:jengelh:branches:multimedia:libs
- Remove redundant tags/sections from specfile - Parallel build with %_smp_mflags - Employ shared library naming - Have makeinstall succeed on non-SUSE OBS-URL: https://build.opensuse.org/request/show/142634 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libid3tag?expand=0&rev=9
This commit is contained in:
parent
7e73d20d2c
commit
d40e4f819b
@ -1 +1,3 @@
|
||||
libid3tag
|
||||
libid3tag0
|
||||
provides "libid3tag = %version-%release"
|
||||
obsoletes "libid3tag < %version-%release"
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user