-
-%define _snap 031105
-
-Summary: A tag library
-Summary(pl): Biblioteka tag
+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: 0.95.%{_snap}
-Release: 1
+Version: 1.4
+Release: 2
License: GPL
Group: X11/Libraries
-# From kdeextragear-2 kde cvs module
-Source0: http://www.kernel.pl/~adgor/kde/%{name}-%{_snap}.tar.bz2
-# Source0-md5: 81cb7cdb95ed16b1045772dc05a34623
-BuildRequires: kdelibs-devel >= 9:3.1.93
+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
-A tag library needed for juk application which is part of kdemultimedia
-package.
+A tag library needed for juk application which is part of
+kdemultimedia package.
%description -l pl
-Biblioteka tag wykorzystywana przez program juk, bed±cego czê¶ci± pakietu
-kdemultimedia.
+Biblioteka tag wykorzystywana przez program juk, bêd±cy czê¶ci±
+pakietu kdemultimedia.
%package devel
Summary: libtag - header files
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
%configure \
--disable-rpath \
- --enable-final
+ --enable-final \
+ --with-qt-libraries=%{_libdir}
%{__make}
%files
%defattr(644,root,root,755)
-%{_libdir}/libtag.la
%attr(755,root,root) %{_libdir}/libtag.so.*.*.*
+%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
-%{_libdir}/libtag.so