X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=libextractor.spec;h=2173515b4fcd7f937de874d34af77ed0c5016993;hb=a0998689e681ec9c317fb94c90ff2755cfc404a6;hp=e2c0e20242eac0212315c0c8507f02e72192798f;hpb=9ef923587b9b87b6cb2527f480cd3c3c97739c32;p=packages%2Flibextractor.git diff --git a/libextractor.spec b/libextractor.spec index e2c0e20..2173515 100644 --- a/libextractor.spec +++ b/libextractor.spec @@ -1,37 +1,46 @@ # # Conditional build: -%bcond_with static # build with static glib +%bcond_without qt # don't build Qt-based thumbnail plugin %bcond_without static_libs # don't build static library # Summary: Meta-data extraction library -Summary(pl): Biblioteka do ekstrakcji metadanych +Summary(pl.UTF-8): Biblioteka do ekstrakcji metadanych Name: libextractor -Version: 0.5.0 -Release: 1 -License: GPL +Version: 0.5.20 +Release: 5 +License: GPL v2+ Group: Libraries -# strange, .tar.gz is ~500kB smaller than .tar.bz2 Source0: http://gnunet.org/libextractor/download/%{name}-%{version}.tar.gz -# Source0-md5: 5ca78c69a523e54b8c3c08369786f48a -Patch0: %{name}-make_python.patch +# Source0-md5: b71833f1c1b8299b01df2d7669600030 +Patch0: %{name}-64bit.patch +Patch1: %{name}-make.patch +Patch2: %{name}-info.patch +Patch3: %{name}-pmake.patch +Patch4: %{name}-lt.patch URL: http://gnunet.org/libextractor/ -BuildRequires: ImageMagick-devel >= 1:6.0.0 +%if %{with qt} +BuildRequires: QtSvg-devel >= 4.0.1 +%endif BuildRequires: autoconf >= 2.57 BuildRequires: automake -BuildRequires: gettext-devel >= 0.14 -%if %{with static} -BuildRequires: glib2-static >= 2.0.0 -%else +BuildRequires: bzip2-devel +BuildRequires: gettext-devel >= 0.14.5 +BuildRequires: flac-devel BuildRequires: glib2-devel >= 2.0.0 -%endif +BuildRequires: gtk+2-devel >= 2:2.6.0 +BuildRequires: libgsf-devel BuildRequires: libltdl-devel BuildRequires: libstdc++-devel BuildRequires: libtool >= 2:1.5 BuildRequires: libvorbis-devel -BuildRequires: python-devel >= 1:2.3 +BuildRequires: mpeg2dec-devel +BuildRequires: pkgconfig +BuildRequires: texinfo BuildRequires: zlib-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _noautoreqfiles %{_libdir}/%{name}/libextractor_.*\\.la + %description libextractor is a simple library for meta-data extraction. libextractor uses a plugin-mechanism that makes it easy to add support @@ -54,95 +63,113 @@ provide more precise and more detailed information for the supported types of documents (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF). -%description -l pl -libextractor to prosta biblioteka s³u¿±ca do ekstrakcji metadanych. -libextractor u¿ywa mechanizmu "wtyczek", dziêki czemu ³atwo jest dodaæ -wsparcie dla nowych formatów plików. +%description -l pl.UTF-8 +libextractor to prosta biblioteka służąca do ekstrakcji metadanych. +libextractor używa mechanizmu "wtyczek", dzięki czemu łatwo jest dodać +wsparcie dla nowych formatów plików. -libextractor obecnie pozwala na pozyskanie metadanych z plików w +libextractor obecnie pozwala na pozyskanie metadanych z plików w formatach HTML, JPEG, Ogg, MP3, PNG, RPM, GIF, ZIP, QT, ASF, Real -Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje du¿o wiêcej -typów MIME w sposób podobny do dobrze znanego narzêdzia "file". +Audio i Video, PostScript oraz PDF. Ponadto rozpoznaje dużo więcej +typów MIME w sposób podobny do dobrze znanego narzędzia "file". -Ka¿da informacja pobrana z pliku nale¿y do jednej z oko³o 40 -kategorii (np. tytu³, autor, opis, typ MIME). +Każda informacja pobrana z pliku należy do jednej z około 40 +kategorii (np. tytuł, autor, opis, typ MIME). -Ta paczka zawiera te¿ narzêdzie "extract", które pozwala skorzystaæ z -us³ug libextractor bezpo¶rednio z linii poleceñ. "extract" mo¿e byæ -u¿ywane w podobny sposób, co "file". "file" zna wiêcej typów danych, -"extract" natomiast dostarcza bardziej precyzyjnych i szczegó³owych -informacji na temat obs³ugiwanych formatów (HTML, JPEG, Ogg, MP3, PNG, +Ta paczka zawiera też narzędzie "extract", które pozwala skorzystać z +usług libextractor bezpośrednio z linii poleceń. "extract" może być +używane w podobny sposób, co "file". "file" zna więcej typów danych, +"extract" natomiast dostarcza bardziej precyzyjnych i szczegółowych +informacji na temat obsługiwanych formatów (HTML, JPEG, Ogg, MP3, PNG, GIF, RPM, RA, RM, PS, PDF, ZIP, QT, ASF). %package printable Summary: Printable text support plugins for libextractor -Summary(pl): Wtyczki obs³uguj±ce tekst dla biblioteki libextractor +Summary(pl.UTF-8): Wtyczki obsługujące tekst dla biblioteki libextractor Group: Libraries Requires: %{name} = %{version}-%{release} %description printable libextractor plugins that support printable text in few languages. -%description printable -l pl -Wtyczki biblioteki libextractor obs³uguj±ce tekst w kilku jêzykach. +%description printable -l pl.UTF-8 +Wtyczki biblioteki libextractor obsługujące tekst w kilku językach. + +%package thumbnail +Summary: GTK+ Thumbnail plugin for libextractor +Summary(pl.UTF-8): Wtyczka obsługująca miniaturki obrazów poprzez GTK+ dla biblioteki libextractor +Group: Libraries +Requires: %{name} = %{version}-%{release} +Requires: gtk+2 >= 2:2.6.0 + +%description thumbnail +libextractor plugin that supports thumbnails through GTK+. + +%description thumbnail -l pl.UTF-8 +Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez +GTK+. + +%package thumbnail-qt +Summary: Qt Thumbnail plugin for libextractor +Summary(pl.UTF-8): Wtyczka obsługujące miniaturki obrazów poprzez Qt dla biblioteki libextractor +Group: Libraries +Requires: %{name} = %{version}-%{release} + +%description thumbnail-qt +libextractor plugin that supports thumbnails through Qt. + +%description thumbnail-qt -l pl.UTF-8 +Wtyczka biblioteki libextractor obsługująca miniaturki obrazów poprzez +Qt. %package devel Summary: Development files for libextractor -Summary(pl): Pliki nag³ówkowe libextractor +Summary(pl.UTF-8): Pliki nagłówkowe libextractor Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: bzip2-devel +Requires: libgsf-devel Requires: libltdl-devel %description devel This package contains files to develop with libextractor, that is either to create plugins or to compile applications with libextractor. -%description devel -l pl -Piki nag³ówkowe wymagane do tworzenia aplikacji i wtyczek -korzystaj±cych z libextractor. +%description devel -l pl.UTF-8 +Piki nagłówkowe wymagane do tworzenia aplikacji i wtyczek +korzystających z libextractor. %package static Summary: Static libextractor libraries -Summary(pl): Statyczne biblioteki libextractor +Summary(pl.UTF-8): Statyczne biblioteki libextractor Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static This package contains static libraries of libextractor. -%description static -l pl +%description static -l pl.UTF-8 Statyczna wersja bibliotek libextractor. -%package -n python-extractor -Summary: Python support for libextractor -Summary(pl): Modu³ jêzyka Python dla biblioteki libextractor -Group: Libraries/Python -Requires: %{name} = %{version}-%{release} -%pyrequires_eq python-libs - -%description -n python-extractor -Python support for libextractor. - -%description -n python-extractor -l pl -Modu³ jêzyka Python dla biblioteki libextractor. - %prep %setup -q %patch0 -p1 - -%if %{without static} -%{__perl} -pi -e 's/-B(static|dynamic)//g' src/plugins/ole2/Makefile.am -%endif +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 %build %{__gettextize} -%{__libtoolize} --ltdl +%{__libtoolize} %{__aclocal} -I m4 %{__autoconf} %{__autoheader} %{__automake} +%{?with_qt:CPPFLAGS="-I/usr/include/qt4 -I/usr/include/qt4/Qt"} %configure \ - %{!?with_static_libs:--disable-static} + %{?with_static_libs:--enable-static} \ + %{?with_qt:--with-qt} %{__make} @@ -163,18 +190,29 @@ rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README TODO %attr(755,root,root) %{_bindir}/extract %attr(755,root,root) %{_libdir}/libextractor.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libextractor.so.1 # plugins are lt_dlopened without extension, so *.la are needed %dir %{_libdir}/%{name} +%attr(755,root,root) %{_libdir}/%{name}/libextractor_applefile.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_asf.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_deb.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_dvi.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_elf.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_exiv2.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_filename.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_flac.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_flv.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_gif.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_md5.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_hash_rmd160.so @@ -189,6 +227,8 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/%{name}/libextractor_mime.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_mp3.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_mpeg.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_nsf.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_nsfe.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_ogg.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_ole2.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_oo.so @@ -199,18 +239,22 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_libdir}/%{name}/libextractor_real.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_riff.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_rpm.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_sid.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_split.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_tar.so -%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_tiff.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_translit.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_wav.so %attr(755,root,root) %{_libdir}/%{name}/libextractor_zip.so +%{_libdir}/%{name}/libextractor_applefile.la %{_libdir}/%{name}/libextractor_asf.la %{_libdir}/%{name}/libextractor_deb.la %{_libdir}/%{name}/libextractor_dvi.la %{_libdir}/%{name}/libextractor_elf.la +%{_libdir}/%{name}/libextractor_exiv2.la %{_libdir}/%{name}/libextractor_filename.la +%{_libdir}/%{name}/libextractor_flac.la +%{_libdir}/%{name}/libextractor_flv.la %{_libdir}/%{name}/libextractor_gif.la %{_libdir}/%{name}/libextractor_hash_md5.la %{_libdir}/%{name}/libextractor_hash_rmd160.la @@ -225,6 +269,8 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/%{name}/libextractor_mime.la %{_libdir}/%{name}/libextractor_mp3.la %{_libdir}/%{name}/libextractor_mpeg.la +%{_libdir}/%{name}/libextractor_nsf.la +%{_libdir}/%{name}/libextractor_nsfe.la %{_libdir}/%{name}/libextractor_ogg.la %{_libdir}/%{name}/libextractor_ole2.la %{_libdir}/%{name}/libextractor_oo.la @@ -235,33 +281,42 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/%{name}/libextractor_real.la %{_libdir}/%{name}/libextractor_riff.la %{_libdir}/%{name}/libextractor_rpm.la +%{_libdir}/%{name}/libextractor_sid.la %{_libdir}/%{name}/libextractor_split.la %{_libdir}/%{name}/libextractor_tar.la -%{_libdir}/%{name}/libextractor_thumbnail.la %{_libdir}/%{name}/libextractor_tiff.la %{_libdir}/%{name}/libextractor_translit.la %{_libdir}/%{name}/libextractor_wav.la %{_libdir}/%{name}/libextractor_zip.la -%{_mandir}/man1/* +%{_mandir}/man1/extract.1* %files printable %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}/libextractor_printable_*.so %{_libdir}/%{name}/libextractor_printable_*.la +%files thumbnail +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnail.so +%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailgtk.so +%{_libdir}/%{name}/libextractor_thumbnailgtk.la + +%files thumbnail-qt +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/%{name}/libextractor_thumbnailqt.so +%{_libdir}/%{name}/libextractor_thumbnailqt.la + %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libextractor.so %{_libdir}/libextractor.la %{_includedir}/extractor.h -%{_mandir}/man3/* +%{_pkgconfigdir}/libextractor.pc +%{_mandir}/man3/libextractor.3* +%{_infodir}/extractor.info* %if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libextractor.a %endif - -%files -n python-extractor -%defattr(644,root,root,755) -%attr(755,root,root) %{py_sitedir}/*.so