libextractor.spec (4069B)
1 # spec file for package libextractor 2 # 3 # (C) 2002, 2003, 2004 SSS Lab, CS, Purdue and Compilers Group, CS, UCLA 4 # 5 # please send bugfixes or comments to 6 # libextractor@cs.purdue.edu 7 8 # sanitized by Nils Philippsen <nils@redhat.de> 9 10 Summary: meta-data extraction library 11 Name: libextractor 12 Version: 0.3.0 13 Release: 0 14 License: GPL 15 Group: System Environment/Libraries 16 Requires: glibc >= 2.2.4, libvorbis, libogg, zlib 17 URL: http://www.ovmj.org/libextractor/ 18 Source: http://www.ovmj.org/libextractor/download/libextractor-%{version}.tar.gz 19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 20 21 %package devel 22 Summary: Development files for libextractor 23 Group: Development/Libraries 24 25 %description 26 27 libextractor is a simple library for meta-data extraction. 28 libextractor uses a plugin-mechanism that makes it easy to add support 29 for more file formats, allowing anybody to add new extractors quickly. 30 31 libextractor currently features meta-data extractors for HTML, PDF, PS, 32 MP3, OGG, JPEG, GIF, PNG, TIFF, RPM, ZIP, REAL, RIFF (AVI), MPEG, QT 33 and ASF. It also detects many more MIME-types in a fashion similar to 34 the well-known "file" tool. Furthermore, a generic extractor that 35 extracts dictionary words from binaries is included. Supported 36 dictionaries are currently da, en, de, it and no. 37 38 Each item of meta-data that is extracted from a file is categorized 39 into one of currently about 40 meta-data categories (e.g. title, 40 author, description or MIME-type). 41 42 This libextractor package also contains a little binary tool "extract" 43 that can be used to invoke libextractor from the command 44 line. "extract" can be used similar to "file", but while "file" 45 currently supports a wider range of file types, "extract" should be 46 able to provide more precise and more detailed information for the 47 supported types of documents. 48 49 %description devel 50 This package contains files to develop with libextractor, that is either to 51 create plugins or to compile applications with libextractor. 52 53 %prep 54 %setup -q -n libextractor-%{version} 55 56 %build 57 %configure 58 make 59 60 %install 61 %makeinstall 62 # Sanitize plugins 63 pushd $RPM_BUILD_ROOT%{_libdir} 64 rm -f libextractor_*.a 65 66 %post -p /sbin/ldconfig 67 %postun 68 if [ $1 = 0 ]; then 69 /sbin/ldconfig 70 fi 71 72 %files 73 %defattr(-, root, root) 74 %{_libdir}/libextractor.so 75 %{_libdir}/libextractor.so.* 76 %{_libdir}/libextractor_*.so 77 %{_libdir}/libextractor_*.so.* 78 %{_bindir}/extract 79 %doc %{_mandir}/man1/* 80 81 %files devel 82 %{_libdir}/libextractor.so 83 %{_libdir}/*.a 84 %{_libdir}/*.la 85 %{_includedir}/extractor.h 86 %doc %{_mandir}/man3/* 87 88 %changelog 89 * Wed Apr 14 2004 Vids Samanta <vids@cs.ucla.edu> 90 - updated description 91 - set version number to 0.3.0 92 93 * Wed Apr 7 2004 Vids Samanta <vids@cs.ucla.edu> 94 - added libextractor_*.so.* files to libdir 95 - set version number to 0.2.7 96 97 * Tue Oct 14 2003 Vids Samanta <vids@cs.ucla.edu> 98 - set version to 0.2.6 99 100 * Wed Jul 16 2003 Vids Samanta <vids@cs.purdue.edu> 101 - set version to 0.2.5 102 - removed pspell dependecy 103 104 * Mon Jun 30 2003 Christian Grothoff <grothoff@cs.purdue.edu> 105 - updated description 106 - set version to 0.2.4 107 108 * Fri Apr 18 2003 Vids Samanta <vids@cs.purdue.edu> 109 - added symlink /usr/lib/libextractor.so -> /usr/lib/libextractor.so.0.0.0 110 - set release number to 1 111 112 * Fri Apr 11 2003 Vids Samanta <vids@cs.purdue.edu> 113 - removed rpm-devel from dependecies. 114 - updated list of extractors. 115 - bumped up version to 0.2.3 116 117 * Wed Feb 26 2003 Vids Samanta <vids@cs.purdue.edu> 118 - bumped version to 0.2.2, updated list of extractors. 119 120 * Thu Feb 6 2003 Christian Grothoff <grothoff@cs.purdue.edu> 121 - bumped version to 0.2.1 122 123 * Sat Feb 1 2003 Christian Grothoff <grothoff@cs.purdue.edu> 124 - bumped version to 0.2.0 125 126 * Mon Jan 7 2003 Christian Grothoff <grothoff@cs.purdue.edu> 127 - bumped version to 0.1.4, minor adjustments to description 128 129 * Fri Jul 26 2002 Christian Grothoff <grothoff@cs.purdue.edu> 130 - bumped version to 0.1.1 131 132 * Wed Jun 19 2002 Nils Philippsen <nils@redhat.de> 133 - sanitize spec file 134 - split off devel package 135 136 * Wed Jun 5 2002 Christian Grothoff <grothoff@cs.purdue.edu> 137 - drafted spec file. No surprise here. 138