X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=taglib.spec;h=477fbf08dd2371a89c6fba95faef6bd88e3d42b9;hb=0b868bba95e424b14295f1f35942e1ff1b98d5b5;hp=edcd0ddb1259f71b0342863949fec638017cc28c;hpb=f56130a1ebdb1a534917a4ef943f692b61b7148c;p=packages%2Ftaglib.git diff --git a/taglib.spec b/taglib.spec index edcd0dd..477fbf0 100644 --- a/taglib.spec +++ b/taglib.spec @@ -1,66 +1,85 @@ -%define _snap 040811 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: 1.3 +Version: 1.12 Release: 1 -License: GPL -Group: X11/Libraries -Source0: http://ktown.kde.org/~wheeler/files/src/%{name}-%{version}.tar.gz -# Source0-md5: 54fe2a3abf0cf77130207846b0ce6ef4 -Patch0: %{name}-libtool-sanitize.patch -URL: http://ktown.kde.org/~wheeler/taglib.html -BuildRequires: autoconf >= 2.52 -BuildRequires: automake >= 1.6 -#BuildRequires: unsermake >= 040805-1 +License: LGPL v2.1 or MPL v1.1 +Group: Libraries +#Source0Download: http://taglib.github.io/ +Source0: https://taglib.github.io/releases/%{name}-%{version}.tar.gz +# Source0-md5: 4313ed2671234e029b7af8f97c84e9af +URL: http://taglib.github.io/ +BuildRequires: cmake >= 3.0.0 BuildRequires: libstdc++-devel +BuildRequires: perl-base +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.605 +BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -A tag library needed for juk application which is part of -kdemultimedia package. +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 -Biblioteka tag wykorzystywana przez program juk, bed±cy czê¶ci± -pakietu kdemultimedia. +%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 +Requires: zlib-devel %description devel Header files for tag library. -%description devel -l pl -Pliki nag³ówkowe biblioteki tag. +%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 %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 \ - --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 @@ -69,14 +88,21 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) +%doc AUTHORS NEWS %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 +%{_pkgconfigdir}/taglib.pc +%{_pkgconfigdir}/taglib_c.pc %{_includedir}/taglib + +%files examples +%defattr(644,root,root,755) +%{_examplesdir}/%{name}-%{version}