]> git.pld-linux.org Git - packages/taglib.git/blobdiff - taglib.spec
- updated to 1.7
[packages/taglib.git] / taglib.spec
index c08dd288e2edaea06f3ecf2d9ba36e6b215329d9..7ce47be34420ec672ec75be011635a43ac85afb9 100644 (file)
@@ -1,22 +1,18 @@
 Summary:       A tag library for reading and editing audio meta data
 Summary(pl.UTF-8):     Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku
 Name:          taglib
-Version:       1.5
+Version:       1.7
 Release:       1
-License:       GPL
-Group:         X11/Libraries
+License:       LGPL v2.1 or MPL v1.1
+Group:         Libraries
 Source0:       http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz
-# Source0-md5: 7b557dde7425c6deb7bbedd65b4f2717
-Patch0:                %{name}-libtool-sanitize.patch
-Patch1:                kde-ac260.patch
-Patch2:                kde-am.patch
-Patch3:                kde-ac260-lt.patch
+# Source0-md5: 6a7e312668f153fa905a81714aebc257
 URL:           http://ktown.kde.org/~wheeler/taglib.html
-BuildRequires: autoconf >= 2.52
-BuildRequires: automake >= 1.6
+BuildRequires: cmake >= 2.6.2
 BuildRequires: libstdc++-devel
 BuildRequires: perl-base
-#BuildRequires:        unsermake >= 040805-1
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.577
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -30,7 +26,7 @@ pakietu kdemultimedia.
 %package devel
 Summary:       libtag - header files
 Summary(pl.UTF-8):     libtag - pliki nagłówkowe
-Group:         X11/Development/Libraries
+Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
 Requires:      libstdc++-devel
 
@@ -40,32 +36,43 @@ Header files for tag library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki tag.
 
+%package examples
+Summary:       Example codes for taglib
+Summary(hu.UTF-8):     Példaprogramok
+Summary(pl.UTF-8):     Przykładowe programy w postaci źródłowej dla tagliba
+Group:         Development/Libraries
+
+%description examples
+Example codes for taglib.
+
+%description examples -l hu.UTF-8
+Példaprogramok.
+
+%description examples -l pl.UTF-8
+Przykładowe programy w postaci źródłowej dla tagliba.
+
 %prep
 %setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -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
-%{__make} -f admin/Makefile.common cvs
-
-%configure \
-       --disable-rpath \
-       --enable-final \
-       --with-qt-libraries=%{_libdir}
+install -d build
+cd build
+%cmake .. \
+       -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
+       -DWITH_ASF=ON \
+       -DWITH_MP4=ON
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -r examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -75,14 +82,19 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libtag.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtag.so.1
 %attr(755,root,root) %{_libdir}/libtag_c.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtag_c.so.0
 
 %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
+%{_libdir}/libtag.so
+%{_libdir}/libtag_c.so
 %{_pkgconfigdir}/taglib.pc
+%{_pkgconfigdir}/taglib_c.pc
 %{_includedir}/taglib
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.105877 seconds and 4 git commands to generate.