-
-%define _ver 0.96
-%define _snap 031204
-
Summary: A tag library for reading and editing audio meta data
Summary(pl): Biblioteka tag do odczytu i edycji metadanych dotycz±cych d¼wiêku
Name: taglib
-Version: %{_ver}.%{_snap}
+Version: 1.4
Release: 2
License: GPL
Group: X11/Libraries
-# (temporary?) (pre-)release URL: http://ktown.kde.org/~wheeler/taglib/%{name}-%{version}.tar.gz
-# From kdeextragear-2 kde cvs module
-Source0: http://www.kernel.pl/~adgor/kde/%{name}-%{_snap}.tar.bz2
-# Source0-md5: b95a5c0a17b0ec058689fb64e0507a0d
-URL: http://ktown.kde.org/~wheeler/taglib/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: kdelibs-devel >= 9:3.1.93.%{_snap}
+Source0: http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
+# Source0-md5: dcd50ddb2544faeae77f194804559404
+Patch0: %{name}-libtool-sanitize.patch
+URL: http://ktown.kde.org/~wheeler/taglib.html
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake >= 1.6
+BuildRequires: libstdc++-devel
+BuildRequires: perl-base
+#BuildRequires: unsermake >= 040805-1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
kdemultimedia package.
%description -l pl
-Biblioteka tag wykorzystywana przez program juk, bed±cego czê¶ci±
+Biblioteka tag wykorzystywana przez program juk, bêd±cy czê¶ci±
pakietu kdemultimedia.
%package devel
Summary(pl): libtag - pliki nag³ówkowe
Group: X11/Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: libstdc++-devel
%description devel
-A tag library - header files.
+Header files for tag library.
%description devel -l pl
-Biblioteka tag - pliki nag³ówkowe.
+Pliki nag³ówkowe biblioteki tag.
%prep
-%setup -q -n %{name}-%{_snap}
+%setup -q
+%patch0 -p1
%build
+cp -f /usr/share/automake/config.* admin
+# unsermake is broken here (Makefile.calls not generated by configure)
+#export UNSERMAKE=/usr/share/unsermake/unsermake
+%{__perl} -pi -e 's/(automake\*1\.6\.\* \| automake\*1\.7\*)/automake*1.[6-9]*/' admin/cvs.sh
%{__make} -f admin/Makefile.common cvs
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
%configure \
--disable-rpath \
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libtag.so.*.*.*
-%{_libdir}/libtag.la
+%attr(755,root,root) %{_libdir}/libtag_c.so.*.*.*
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/taglib-config
%attr(755,root,root) %{_libdir}/libtag.so
+%attr(755,root,root) %{_libdir}/libtag_c.so
+%{_libdir}/libtag.la
+%{_libdir}/libtag_c.la
+%{_pkgconfigdir}/taglib.pc
%{_includedir}/taglib