Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:gody
libextractor
_service:set_version:extractor.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:set_version:extractor.spec of Package libextractor
# # spec file for package extractor # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 Pascal Bleser <pascal.bleser@opensuse.org> # Copyright (c) 2013 Marguerite Su <marguerite@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # #%if 0%{?BUILD_ORIG} %bcond_without ffmpeg %bcond_without mpeg2 %bcond_without mp4v2 %bcond_with smf #%endif %define soname 3 %define common_soname 1 Name: extractor Version: 1.3rsvn.36772 Release: 0 Summary: Library to Extract Metadata from Files License: GPL-2.0+ Group: Productivity/Multimedia/Other Url: http://www.gnu.org/software/libextractor/ Source: ftp://ftp.gnu.org/gnu/libextractor/libextractor-%{version}.tar.bz2 BuildRequires: autoconf BuildRequires: automake BuildRequires: gcc-c++ BuildRequires: libtool BuildRequires: makeinfo BuildRequires: texinfo BuildRequires: pkg-config BuildRequires: file-devel BuildRequires: giflib-devel BuildRequires: libjpeg-devel #BuildRequires: pkgconfig(ImageMagick) #BuildRequires: pkgconfig(bzip2) #BuildRequires: pkgconfig(exiv2) #BuildRequires: pkgconfig(flac) #BuildRequires: pkgconfig(glib-2.0) #BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) #BuildRequires: pkgconfig(gtk+-2.0) #BuildRequires: pkgconfig(gtk+-3.0) #BuildRequires: pkgconfig(libarchive) #BuildRequires: pkgconfig(libavutil) #BuildRequires: pkgconfig(libswscale) #BuildRequires: pkgconfig(libgsf-1) #BuildRequires: pkgconfig(libtiff-4) #BuildRequires: pkgconfig(ogg) #BuildRequires: pkgconfig(poppler) #BuildRequires: pkgconfig(rpm) #BuildRequires: pkgconfig(vorbis) #BuildRequires: pkgconfig(zlib) #%{?with_ffmpeg:BuildRequires: pkgconfig(libavformat)} #%{?with_ffmpeg:BuildRequires: pkgconfig(libavcodec)} #%{?with_ffmpeg:BuildRequires: pkgconfig(libavresample)} #%{?with_mpeg2:BuildRequires: pkgconfig(libmpeg2)} #%{?with_mp4v2:BuildRequires: libmp4v2-devel} #%{?with_smf:BuildRequires: pkgconfig(smf)} Recommends: %{name}-plugins = %{version} Provides: lib%{name} = 0.5.3 Obsoletes: lib%{name} < 0.5.3 BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Using libextractor, you can extract metadata from files of arbitrary types. Supported file formats include HTML, PDF, DVI, PS, MP3, OGG, WAV, JPEG, GIF, PNG, TIFF, RPM, ZIP, TAR, ELF, REAL, RIFF (AVI), MPEG, QT, and ASF. Also, various additional MIME types are detected. This release adds support for Adobe Flash (FLV) and Free Lossless Audio Codec (FLAC) files. The quicktime, ole2, and split extractors were also improved. Helper libraries perform the extraction. It is extendable by linking against external extractors for additional file types. The goal is to provide developers of indexing tools with a universal library to obtain simple keywords to match against queries. libextractor contains a shell command 'extract' that, similar to the well-known 'file' command, can extract metadata from a file and print the results to stdout. The project site is http://savannah.gnu.org/projects/libextractor. %package -n lib%{name}%{soname} Summary: Shared libraries for the package libextractor Group: System/Libraries Requires: lib%{name}_common%{common_soname} = %{version} Provides: %{name}1 = 0.5.3 Obsoletes: %{name}1 < 0.5.3 %description -n lib%{name}%{soname} Library to Extract Metadata from Files. This package contains the shared libraries for the package libextractor. %package -n lib%{name}_common%{common_soname} Summary: Shared libraries for the package libextractor Group: System/Libraries %description -n lib%{name}_common%{common_soname} Library to Extract Metadata from Files. This package contains the shared libraries for the package libextractor. %package plugins Summary: Plugins for %{name} Group: Productivity/Multimedia/Other Requires: %{name} = %{version} %description plugins Library to Extract Metadata from Files. This package contains plugins for %{name}. %package -n lib%{name}-devel Summary: Include Files and Libraries mandatory for Development Group: Development/Languages/C and C++ Requires: lib%{name}%{soname} = %{version} %description -n lib%{name}-devel Library to Extract Metadata from Files. This package contains all necessary include files and libraries needed to develop applications that require these. %lang_package %prep %setup -q -n "lib%{name}-%{version}" %build export CPPFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS -I/usr/include/poppler" export CXXFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS -I/usr/include/poppler" export CFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS -I/usr/include/poppler" autoreconf -fiv %configure \ --disable-static find . -name Makefile | xargs sed -i -e 's|-L/usr/lib|-L/%{_libdir}|g' make \ STRIP=touch %install %make_install \ STRIP=touch # delete libtool archives find %{buildroot} -type f -name "*.la" -delete -print %find_lang lib%{name} %post -n lib%{name}%{soname} -p /sbin/ldconfig %postun -n lib%{name}%{soname} -p /sbin/ldconfig %post -n lib%{name}_common%{common_soname} -p /sbin/ldconfig %postun -n lib%{name}_common%{common_soname} -p /sbin/ldconfig %post -n lib%{name}-devel %info_add lib%{name}.info %postun -n lib%{name}-devel if [ $1 = 0 ]; then %info_del lib%{name}.info fi %files lang -f lib%{name}.lang %defattr(-,root,root) %files %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING NEWS README TODO %{_bindir}/extract %{_mandir}/man1/extract.1* %dir %{_libdir}/lib%{name} %files plugins %defattr(-,root,root) %{_libdir}/lib%{name}/lib%{name}_archive.so %{_libdir}/lib%{name}/lib%{name}_deb.so %{_libdir}/lib%{name}/lib%{name}_dvi.so %{_libdir}/lib%{name}/lib%{name}_exiv2.so %{_libdir}/lib%{name}/lib%{name}_flac.so %{_libdir}/lib%{name}/lib%{name}_gif.so %{_libdir}/lib%{name}/lib%{name}_gstreamer.so %{_libdir}/lib%{name}/lib%{name}_it.so %if 0%{?suse_version} >= 1230 %{_libdir}/lib%{name}/lib%{name}_jpeg.so %endif %{_libdir}/lib%{name}/lib%{name}_man.so %{_libdir}/lib%{name}/lib%{name}_mime.so %{_libdir}/lib%{name}/lib%{name}_nsf.so %{_libdir}/lib%{name}/lib%{name}_nsfe.so %{_libdir}/lib%{name}/lib%{name}_odf.so %{_libdir}/lib%{name}/lib%{name}_ogg.so %{_libdir}/lib%{name}/lib%{name}_ole2.so %{_libdir}/lib%{name}/lib%{name}_png.so %{_libdir}/lib%{name}/lib%{name}_ps.so %{_libdir}/lib%{name}/lib%{name}_riff.so %{_libdir}/lib%{name}/lib%{name}_rpm.so %{_libdir}/lib%{name}/lib%{name}_s3m.so %{_libdir}/lib%{name}/lib%{name}_sid.so %{_libdir}/lib%{name}/lib%{name}_thumbnailgtk.so %{_libdir}/lib%{name}/lib%{name}_tiff.so %{_libdir}/lib%{name}/lib%{name}_wav.so %{_libdir}/lib%{name}/lib%{name}_xm.so %{_libdir}/lib%{name}/lib%{name}_zip.so %{?with_mpeg2:%exclude %{_libdir}/lib%{name}/lib%{name}_mpeg.so} %{?with_ffmpeg:%exclude %{_libdir}/lib%{name}/lib%{name}_previewopus.so} %{?with_ffmpeg:%exclude %{_libdir}/lib%{name}/lib%{name}_thumbnailffmpeg.so} %files -n lib%{name}%{soname} %defattr(-,root,root) %{_libdir}/libextractor.so.%{soname} %{_libdir}/libextractor.so.%{soname}.* %files -n lib%{name}_common%{common_soname} %defattr(-,root,root) %{_libdir}/lib%{name}_common.so.%{common_soname} %{_libdir}/lib%{name}_common.so.%{common_soname}.* %files -n lib%{name}-devel %defattr(-,root,root) %{_includedir}/%{name}.h %{_libdir}/lib%{name}.so %{_libdir}/lib%{name}_common.so %{_libdir}/pkgconfig/lib%{name}.pc %{_mandir}/man3/libextractor.3* %{_infodir}/lib%{name}.info.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor