1 |
unnilennium |
1.1 |
# $Id: libextractor.spec 8921 2010-06-24 12:39:00Z dag $ |
2 |
|
|
# Authority: dag |
3 |
|
|
# Upstream: Christian Grothoff <libextractor$cs,purdue,edu> |
4 |
|
|
|
5 |
|
|
%{?el4:%define _without_libtoolltdl 1} |
6 |
|
|
%{?el3:%define _without_libtoolltdl 1} |
7 |
|
|
|
8 |
|
|
%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') |
9 |
|
|
|
10 |
|
|
Summary: Meta-data extraction library |
11 |
|
|
Name: libextractor |
12 |
|
|
Version: 0.6.2 |
13 |
unnilennium |
1.2 |
Release: 2%{?dist} |
14 |
unnilennium |
1.1 |
License: GPL |
15 |
|
|
Group: System Environment/Libraries |
16 |
|
|
URL: http://www.gnu.org/software/libextractor/ |
17 |
|
|
|
18 |
|
|
Packager: Dag Wieers <dag@wieers.com> |
19 |
|
|
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ |
20 |
|
|
|
21 |
|
|
Source: http://ftpmirror.gnu.org/libextractor/libextractor-%{version}.tar.gz |
22 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
23 |
|
|
|
24 |
|
|
BuildRequires: bzip2-devel |
25 |
|
|
BuildRequires: exiv2-devel |
26 |
|
|
BuildRequires: gcc-c++ |
27 |
|
|
BuildRequires: gettext |
28 |
|
|
BuildRequires: glib2-devel |
29 |
|
|
BuildRequires: gtk2-devel |
30 |
|
|
BuildRequires: ImageMagick |
31 |
|
|
BuildRequires: ImageMagick-c++-devel |
32 |
|
|
BuildRequires: ImageMagick-devel |
33 |
|
|
BuildRequires: intltool |
34 |
|
|
BuildRequires: libogg-devel |
35 |
|
|
BuildRequires: libvorbis-devel |
36 |
|
|
BuildRequires: mpeg2dec-devel |
37 |
|
|
BuildRequires: pkgconfig |
38 |
|
|
BuildRequires: python-devel |
39 |
|
|
%{!?_without_libtoolltdl:BuildRequires: libtool-ltdl-devel} |
40 |
|
|
Requires: /sbin/install-info |
41 |
|
|
|
42 |
|
|
%description |
43 |
|
|
libextractor is a simple library for meta-data extraction. |
44 |
|
|
libextractor uses a plugin-mechanism that makes it easy to add support |
45 |
|
|
for more file formats, allowing anybody to add new extractors quickly. |
46 |
|
|
|
47 |
|
|
libextractor currently features meta-data extractors for HTML, PDF, PS, |
48 |
|
|
MP3, OGG, JPEG, GIF, PNG, TIFF, RPM, ZIP, REAL, RIFF (AVI), MPEG, QT |
49 |
|
|
and ASF. It also detects many more MIME-types in a fashion similar to |
50 |
|
|
the well-known "file" tool. Furthermore, a generic extractor that |
51 |
|
|
extracts dictionary words from binaries is included. Supported |
52 |
|
|
dictionaries are currently da, en, de, it and no. |
53 |
|
|
|
54 |
|
|
%package devel |
55 |
|
|
Summary: Header files, libraries and development documentation for %{name}. |
56 |
|
|
Group: Development/Libraries |
57 |
|
|
Requires: %{name} = %{version}-%{release} |
58 |
|
|
|
59 |
|
|
%description devel |
60 |
|
|
This package contains the header files, static libraries and development |
61 |
|
|
documentation for %{name}. If you like to develop programs using %{name}, |
62 |
|
|
you will need to install %{name}-devel. |
63 |
|
|
|
64 |
|
|
%package -n python-extractor |
65 |
|
|
Summary: Python bindings to libextractor |
66 |
|
|
Group: Development/Libraries |
67 |
|
|
Requires: %{name} = %{version}-%{release} |
68 |
|
|
|
69 |
|
|
%description -n python-extractor |
70 |
|
|
Python bindings to libextractor. |
71 |
|
|
|
72 |
|
|
%prep |
73 |
|
|
%setup |
74 |
|
|
|
75 |
|
|
%build |
76 |
|
|
%configure \ |
77 |
|
|
--disable-static \ |
78 |
|
|
--with-pic \ |
79 |
|
|
CFLAGS="-I/usr/include/exiv2" |
80 |
|
|
%{__make} %{?_smp_mflags} datadir="%{_datadir}" pkgconfigdatadir="%{_libdir}/pkgconfig" |
81 |
|
|
|
82 |
|
|
%install |
83 |
|
|
%{__rm} -rf %{buildroot} |
84 |
|
|
%{__make} install DESTDIR="%{buildroot}" datadir="%{_datadir}" pkgconfigdatadir="%{_libdir}/pkgconfig" |
85 |
|
|
%find_lang %{name} |
86 |
|
|
|
87 |
|
|
### Clean up buildroot |
88 |
|
|
%{__rm} -rf %{buildroot}%{_infodir}/dir |
89 |
|
|
|
90 |
|
|
%post |
91 |
|
|
/sbin/ldconfig |
92 |
|
|
/sbin/install-info %{_infodir}/extract.info %{_infodir}/dir || : |
93 |
|
|
|
94 |
|
|
|
95 |
|
|
%preun |
96 |
|
|
if [ $1 -eq 0 ]; then |
97 |
|
|
/sbin/install-info --delete %{_infodir}/extract.info %{_infodir}/dir || : |
98 |
|
|
fi |
99 |
|
|
|
100 |
|
|
%postun -p /sbin/ldconfig |
101 |
|
|
|
102 |
|
|
%clean |
103 |
|
|
%{__rm} -rf %{buildroot} |
104 |
|
|
|
105 |
|
|
%files -f %{name}.lang |
106 |
|
|
%defattr(-, root, root, 0755) |
107 |
|
|
%doc %{_infodir}/extractor.info* |
108 |
|
|
%doc %{_mandir}/man1/extract.1* |
109 |
|
|
%{_bindir}/extract |
110 |
|
|
%{_libdir}/libextractor.so.* |
111 |
|
|
%{_libdir}/libextractor_common.so.* |
112 |
|
|
%{_libdir}/libextractor/ |
113 |
|
|
#%exclude %{_libdir}/libextractor/libextractor_*.a |
114 |
|
|
%exclude %{_libdir}/libextractor/libextractor_*.la |
115 |
|
|
|
116 |
|
|
%files devel |
117 |
|
|
%defattr(-, root, root, 0755) |
118 |
|
|
%doc %{_mandir}/man3/libextractor.3* |
119 |
|
|
%{_includedir}/extractor.h |
120 |
|
|
#%{_libdir}/libextractor.a |
121 |
|
|
%{_libdir}/libextractor.so |
122 |
|
|
%{_libdir}/libextractor_common.so |
123 |
|
|
%{_libdir}/pkgconfig/libextractor.pc |
124 |
|
|
%exclude %{_libdir}/libextractor.la |
125 |
|
|
%exclude %{_libdir}/libextractor_common.la |
126 |
|
|
|
127 |
|
|
#%files -n python-extractor |
128 |
|
|
#%defattr(-, root, root, 0755) |
129 |
|
|
#%{python_sitearch}/extractor.so |
130 |
|
|
|
131 |
|
|
%changelog |
132 |
unnilennium |
1.2 |
* Sun Apr 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.6.2-2.sme |
133 |
|
|
- first import in SMe buildsys |
134 |
|
|
|
135 |
unnilennium |
1.1 |
* Mon Jun 14 2010 Dag Wieers <dag@wieers.com> - 0.6.2-1 - 8921+/dag |
136 |
|
|
- Updated to release 0.6.2. |
137 |
|
|
|
138 |
|
|
* Thu Jun 03 2010 Dag Wieers <dag@wieers.com> - 0.6.0-2 |
139 |
|
|
- Rebuild against exiv2-0.20. |
140 |
|
|
|
141 |
|
|
* Wed Jan 20 2010 Dag Wieers <dag@wieers.com> - 0.6.0-1 |
142 |
|
|
- Updated to release 0.6.0. |
143 |
|
|
|
144 |
|
|
* Sun Feb 22 2009 Dag Wieers <dag@wieers.com> - 0.5.22-1 |
145 |
|
|
- Updated to release 0.5.22. |
146 |
|
|
|
147 |
|
|
* Mon Nov 03 2008 Dag Wieers <dag@wieers.com> - 0.5.21-1 |
148 |
|
|
- Updated to release 0.5.21. |
149 |
|
|
|
150 |
|
|
* Mon Jul 14 2008 Dag Wieers <dag@wieers.com> - 0.5.20c-1 |
151 |
|
|
- Updated to release 0.5.20c. |
152 |
|
|
|
153 |
|
|
* Sun Apr 27 2008 Dag Wieers <dag@wieers.com> - 0.5.20b-1 |
154 |
|
|
- Updated to release 0.5.20b. |
155 |
|
|
|
156 |
|
|
* Sun Jan 13 2008 Dag Wieers <dag@wieers.com> - 0.5.19a-1 |
157 |
|
|
- Updated to release 0.5.19a. |
158 |
|
|
|
159 |
|
|
* Mon Jan 07 2008 Dag Wieers <dag@wieers.com> - 0.5.19-1 |
160 |
|
|
- Updated to release 0.5.19. |
161 |
|
|
|
162 |
|
|
* Thu Dec 06 2007 Dag Wieers <dag@wieers.com> - 0.5.18a-1 |
163 |
|
|
- Updated to release 0.5.18a. |
164 |
|
|
|
165 |
|
|
* Sun Mar 18 2007 Dag Wieers <dag@wieers.com> - 0.5.18-1 |
166 |
|
|
- Updated to release 0.5.18. |
167 |
|
|
|
168 |
|
|
* Wed Jan 10 2007 Dag Wieers <dag@wieers.com> - 0.5.17a-1 |
169 |
|
|
- Updated to release 0.5.17a. |
170 |
|
|
|
171 |
|
|
* Mon Jan 08 2007 Dries Verachtert <dries@ulyssis.org> - 0.5.17-1 |
172 |
|
|
- Updated to release 0.5.17. |
173 |
|
|
|
174 |
|
|
* Sun Nov 12 2006 Dag Wieers <dag@wieers.com> - 0.5.16-1 |
175 |
|
|
- Updated to release 0.5.16. |
176 |
|
|
|
177 |
|
|
* Tue Sep 12 2006 Dag Wieers <dag@wieers.com> - 0.5.15-1 |
178 |
|
|
- Updated to release 0.5.15. |
179 |
|
|
|
180 |
|
|
* Fri May 19 2006 Dries Verachtert <dries@ulyssis.org> - 0.5.14-1 |
181 |
|
|
- Updated to release 0.5.14. |
182 |
|
|
|
183 |
|
|
* Sun Apr 30 2006 Dag Wieers <dag@wieers.com> - 0.5.13-1 |
184 |
|
|
- Updated to release 0.5.13. |
185 |
|
|
|
186 |
|
|
* Sat Apr 22 2006 Dries Verachtert <dries@ulyssis.org> - 0.5.12-1 |
187 |
|
|
- Updated to release 0.5.12. |
188 |
|
|
|
189 |
|
|
* Sun Mar 12 2006 Dag Wieers <dag@wieers.com> - 0.5.11-1 |
190 |
|
|
- Updated to release 0.5.11. |
191 |
|
|
|
192 |
|
|
* Sun Dec 25 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.9-1 |
193 |
|
|
- Updated to release 0.5.9. |
194 |
|
|
|
195 |
|
|
* Thu Dec 08 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.8-1 |
196 |
|
|
- Updated to release 0.5.8. |
197 |
|
|
|
198 |
|
|
* Thu Sep 08 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.5-1 |
199 |
|
|
- Updated to release 0.5.5. |
200 |
|
|
|
201 |
|
|
* Mon Aug 15 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.3-1 |
202 |
|
|
- Updated to release 0.5.3. |
203 |
|
|
|
204 |
|
|
* Thu Jul 21 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.2-1 |
205 |
|
|
- Updated to release 0.5.2. |
206 |
|
|
|
207 |
|
|
* Wed Jul 06 2005 Dries Verachtert <dries@ulyssis.org> - 0.5.1-1 |
208 |
|
|
- Updated to release 0.5.1. |
209 |
|
|
|
210 |
|
|
* Sun May 22 2005 Dag Wieers <dag@wieers.com> - 0.5.0-1 |
211 |
|
|
- Updated to release 0.5.0. |
212 |
|
|
|
213 |
|
|
* Fri Feb 25 2005 Dag Wieers <dag@wieers.com> - 0.4.2-1 |
214 |
|
|
- Updated to release 0.4.2. |
215 |
|
|
|
216 |
|
|
* Fri Jan 28 2005 Dag Wieers <dag@wieers.com> - 0.4.1-1 |
217 |
|
|
- Updated to release 0.4.1. |
218 |
|
|
|
219 |
|
|
* Tue Jan 04 2005 Dag Wieers <dag@wieers.com> - 0.4-1 |
220 |
|
|
- Updated to release 0.4. |
221 |
|
|
|
222 |
|
|
* Sun Nov 14 2004 Dag Wieers <dag@wieers.com> - 0.3.11-1 |
223 |
|
|
- Updated to release 0.3.11. |
224 |
|
|
|
225 |
|
|
* Sun Oct 03 2004 Dag Wieers <dag@wieers.com> - 0.3.8-1 |
226 |
|
|
- Updated to release 0.3.8. |
227 |
|
|
|
228 |
|
|
* Fri Sep 24 2004 Dag Wieers <dag@wieers.com> - 0.3.7-1 |
229 |
|
|
- Updated to release 0.3.7. |
230 |
|
|
|
231 |
|
|
* Wed Sep 22 2004 Dag Wieers <dag@wieers.com> - 0.3.6-1 |
232 |
|
|
- Updated to release 0.3.6. |
233 |
|
|
|
234 |
|
|
* Sat Jul 24 2004 Dag Wieers <dag@wieers.com> - 0.3.3-1 |
235 |
|
|
- Initial package. (using DAR) |