2007-01-16 00:22:10 +01:00
|
|
|
#
|
2011-04-18 10:48:47 +02:00
|
|
|
# spec file for package libid3tag
|
2007-01-16 00:22:10 +01:00
|
|
|
#
|
2017-05-11 09:57:08 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:10 +01:00
|
|
|
#
|
2009-06-19 00:59:56 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:22:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2008-05-16 14:37:30 +02:00
|
|
|
|
2012-11-26 15:55:33 +01:00
|
|
|
%define lname libid3tag0
|
2015-06-16 16:18:14 +02:00
|
|
|
Name: libid3tag
|
|
|
|
Version: 0.15.1b
|
|
|
|
Release: 0
|
2007-01-16 00:22:10 +01:00
|
|
|
Summary: ID3 Tag Manipulation Library
|
2012-11-23 11:21:46 +01:00
|
|
|
License: GPL-2.0+
|
2012-11-26 15:55:33 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2008-05-16 14:37:30 +02:00
|
|
|
Url: http://www.underbit.com/products/mad/
|
2015-06-16 16:18:14 +02:00
|
|
|
Source0: ftp://ftp.mars.org/pub/mpeg/%{name}-%{version}.tar.gz
|
|
|
|
Source1: baselibs.conf
|
|
|
|
Patch0: libid3tag-noweak.dif
|
2007-01-16 00:22:10 +01:00
|
|
|
Patch1: libid3tag-gperf.dif
|
|
|
|
Patch2: libid3tag-0.15.1b-mb.diff
|
|
|
|
Patch3: libid3tag-automake-fix.dif
|
|
|
|
Patch4: libid3tag-optflags.patch
|
2008-05-16 14:37:30 +02:00
|
|
|
Patch5: libid3tag-0.15.1b-fix_overflow.patch
|
2012-11-23 11:21:46 +01:00
|
|
|
Patch6: libid3tag-visibility.patch
|
2017-05-11 09:57:08 +02:00
|
|
|
# PATCH-FIX-UPSTREAM fix-build-with-gperf-3.1.diff alarrosa@suse.com -- Fix build with gperf 3.1
|
|
|
|
Patch7: fix-build-with-gperf-3.1.diff
|
2012-11-26 15:55:33 +01:00
|
|
|
BuildRequires: gperf
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: zlib-devel
|
2015-06-16 16:18:14 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:22:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libid3tag is a library for reading and writing ID3 tags, both ID3v1 and
|
|
|
|
the various versions of ID3v2.
|
|
|
|
|
2015-06-16 16:18:14 +02:00
|
|
|
%package -n %{lname}
|
2012-11-26 15:55:33 +01:00
|
|
|
Summary: ID3 Tag Manipulation Library
|
|
|
|
# O/P added for 12.3
|
2017-10-11 12:54:13 +02:00
|
|
|
Group: System/Libraries
|
2015-06-16 16:18:14 +02:00
|
|
|
Obsoletes: libid3tag < %{version}-%{release}
|
|
|
|
Provides: libid3tag = %{version}-%{release}
|
2012-11-26 15:55:33 +01:00
|
|
|
|
2015-06-16 16:18:14 +02:00
|
|
|
%description -n %{lname}
|
2012-11-26 15:55:33 +01:00
|
|
|
libid3tag is a library for reading and writing ID3 tags, both ID3v1 and
|
|
|
|
the various versions of ID3v2.
|
|
|
|
|
2007-01-16 00:22:10 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Development package for libid3tag library
|
|
|
|
Group: Development/Libraries/C and C++
|
2015-06-16 16:18:14 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2012-11-23 11:21:46 +01:00
|
|
|
Requires: glibc-devel
|
2007-01-16 00:22:10 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the header files and static libraries needed to
|
|
|
|
develop applications with libid3tag.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-06-16 16:18:14 +02:00
|
|
|
%patch0
|
2007-01-16 00:22:10 +01:00
|
|
|
%patch1
|
|
|
|
%patch2
|
|
|
|
%patch3
|
|
|
|
%patch4
|
2008-05-16 14:37:30 +02:00
|
|
|
%patch5
|
2012-11-23 11:21:46 +01:00
|
|
|
%patch6
|
2017-10-11 12:54:13 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
2017-05-11 09:57:08 +02:00
|
|
|
%patch7 -p1
|
2017-10-11 12:54:13 +02:00
|
|
|
%endif
|
2015-06-16 16:18:14 +02:00
|
|
|
|
2007-01-16 00:22:10 +01:00
|
|
|
%build
|
2012-11-23 11:21:46 +01:00
|
|
|
autoreconf -fiv
|
2015-06-16 16:18:14 +02:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
2012-11-26 15:55:33 +01:00
|
|
|
make %{?_smp_mflags}
|
2015-06-16 16:18:14 +02:00
|
|
|
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
|
2007-01-16 00:22:10 +01:00
|
|
|
|
|
|
|
%install
|
2015-06-16 16:18:14 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
2007-01-16 00:22:10 +01:00
|
|
|
install -m 644 -D id3tag.pc %{buildroot}%{_libdir}/pkgconfig/id3tag.pc
|
2015-06-16 16:18:14 +02:00
|
|
|
rm -f %{buildroot}%{_libdir}/libid3tag*.*a
|
2007-01-16 00:22:10 +01:00
|
|
|
|
2015-06-16 16:18:14 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
2007-01-16 00:22:10 +01:00
|
|
|
|
2015-06-16 16:18:14 +02:00
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2007-01-16 00:22:10 +01:00
|
|
|
|
2015-06-16 16:18:14 +02:00
|
|
|
%files -n %{lname}
|
2007-01-16 00:22:10 +01:00
|
|
|
%defattr(-,root,root)
|
2012-11-26 15:55:33 +01:00
|
|
|
%{_libdir}/libid3tag.so.0*
|
2007-01-16 00:22:10 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2008-05-16 14:37:30 +02:00
|
|
|
%doc CHANGES COPYING COPYRIGHT CREDITS README TODO VERSION
|
2007-01-16 00:22:10 +01:00
|
|
|
%{_includedir}/*
|
2012-11-26 15:55:33 +01:00
|
|
|
%{_libdir}/libid3tag.so
|
2007-01-16 00:22:10 +01:00
|
|
|
%{_libdir}/pkgconfig/id3tag.pc
|
|
|
|
|
2007-03-29 12:03:32 +02:00
|
|
|
%changelog
|