SHA256
1
0
forked from pool/libid3tag
libid3tag/libid3tag.spec
Takashi Iwai 7e73d20d2c Accepting request 142516 from home:elvigia:branches:multimedia:libs
- libid3tag-visibility.patch: Hide all symbols that are not
  part of the public API.
- spec file: DO not inject bogus dependencies into the
  system via pkgconfig files.

OBS-URL: https://build.opensuse.org/request/show/142516
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libid3tag?expand=0&rev=7
2012-11-23 10:21:46 +00:00

93 lines
2.6 KiB
RPMSpec

#
# spec file for package libid3tag
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libid3tag
BuildRequires: gperf
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: zlib-devel
Summary: ID3 Tag Manipulation Library
License: GPL-2.0+
Group: System/Libraries
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
Patch2: libid3tag-0.15.1b-mb.diff
Patch3: libid3tag-automake-fix.dif
Patch4: libid3tag-optflags.patch
Patch5: libid3tag-0.15.1b-fix_overflow.patch
Patch6: libid3tag-visibility.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
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: glibc-devel
Requires: libid3tag = %version
%description devel
This package contains the header files and static libraries needed to
develop applications with libid3tag.
%prep
%setup -q
%patch
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%build
autoreconf -fiv
%configure --disable-static
make %{?jobs:-j %jobs}
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
install -m 644 -D id3tag.pc %{buildroot}%{_libdir}/pkgconfig/id3tag.pc
rm -f $RPM_BUILD_ROOT%{_libdir}/libid3tag*.*a
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/id3tag.pc
%changelog