X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=taglib.spec;h=41f37c7cc947ea51efb8de8b6ca583d1ecd30744;hb=520a1b9;hp=eeec8b1e94ff863ab425be47de25ce85e5636a12;hpb=3cc2cdf12b6855bfe3da71717486f23a9e4578f0;p=packages%2Ftaglib.git diff --git a/taglib.spec b/taglib.spec index eeec8b1..41f37c7 100644 --- a/taglib.spec +++ b/taglib.spec @@ -1,67 +1,82 @@ - -%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 +Summary(pl.UTF-8): Biblioteka tag do odczytu i edycji metadanych dotyczących dźwięku Name: taglib -Version: %{_ver}.%{_snap} -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://ep09.pld-linux.org/~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} +Version: 1.8 +Release: 1 +License: LGPL v2.1 or MPL v1.1 +Group: Libraries +Source0: https://github.com/downloads/taglib/taglib/%{name}-%{version}.tar.gz +# Source0-md5: dcb8bd1b756f2843e18b1fdf3aaeee15 +URL: http://taglib.github.com/ +BuildRequires: cmake >= 2.6.2 +BuildRequires: libstdc++-devel +BuildRequires: perl-base +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.603 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -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. +TagLib is a library for reading and editing the meta-data of several +popular audio formats. Currently it supports both ID3v1 and ID3v2 for +MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in +FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files. + +%description -l pl.UTF-8 +TagLib to biblioteka do odczytu i edycji metadanych kilku popularnych +formatów dźwiękowych. Aktualnie obsługiwane są znaczniki ID3v1 i ID3v2 +w plikach MP3, komentarze Ogg Vorbis oraz znaczniki ID3 i komentarze +Vorbis w plikach FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 i +ASF. %package devel Summary: libtag - header files -Summary(pl): libtag - pliki nag³ówkowe -Group: X11/Development/Libraries +Summary(pl.UTF-8): libtag - pliki nagłówkowe +Group: 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.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 devel -l pl -Biblioteka tag - pliki nag³ówkowe. +%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 -n %{name}-%{_snap} +%setup -q %build -%{__make} -f admin/Makefile.common cvs -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__automake} - -%configure \ - --disable-rpath \ - --enable-final \ - --with-qt-libraries=%{_libdir} +install -d build +cd build +%cmake .. \ + -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 @@ -70,11 +85,21 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc AUTHORS NEWS %attr(755,root,root) %{_libdir}/libtag.so.*.*.* -%{_libdir}/libtag.la +%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 +%{_pkgconfigdir}/taglib.pc +%{_pkgconfigdir}/taglib_c.pc %{_includedir}/taglib + +%files examples +%defattr(644,root,root,755) +%{_examplesdir}/%{name}-%{version}