]>
Commit | Line | Data |
---|---|---|
c095c4ae PG |
1 | # TODO: |
2 | # - move doodled to separate package (maybe some initscript?) | |
910f133f | 3 | # |
e4e16974 | 4 | # Conditional build: |
5 | %bcond_without static_libs # don't build static library | |
e5d20fa9 | 6 | # |
e4e16974 | 7 | Summary: A tool to search the meta-data in your files via a database |
1240f608 | 8 | Summary(pl.UTF-8): Narzędzie do szybkiego przeszukiwania dokumentów w specjalnej bazie danych |
e4e16974 | 9 | Name: doodle |
351e12b2 | 10 | Version: 0.6.5 |
11 | Release: 1 | |
e4e16974 | 12 | License: GPL |
13 | Group: Applications | |
14 | Source0: http://gnunet.org/doodle/download/%{name}-%{version}.tar.gz | |
351e12b2 | 15 | # Source0-md5: 2ff179e8ec2af74937681ece8cc43b68 |
e4e16974 | 16 | URL: http://gnunet.org/doodle/ |
17 | BuildRequires: autoconf >= 2.57 | |
18 | BuildRequires: automake | |
c095c4ae | 19 | BuildRequires: bzip2-devel |
910f133f | 20 | BuildRequires: fam-devel |
33d01778 | 21 | BuildRequires: gettext-tools >= 0.14.5 |
e4e16974 | 22 | BuildRequires: libextractor-devel |
910f133f | 23 | BuildRequires: libtool |
24 | Requires: %{name}-libs = %{version}-%{release} | |
e4e16974 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Doodle is a tool to quickly search the documents on a computer. Doodle | |
29 | builds an index using meta-data contained in the documents and allows | |
30 | fast searches on the resulting database. | |
31 | ||
a12ad283 JR |
32 | %description -l pl.UTF-8 |
33 | Doodle to narzędzie do szybkiego wyszukiwania dokumentów w komputerze. | |
34 | W tym celu buduje indeks, korzystając z metadanych zawartych w | |
35 | dokumentach, po czym umożliwia szybkie przeszukiwanie tak powstałej | |
e5d20fa9 | 36 | bazy danych. |
e4e16974 | 37 | |
38 | %package devel | |
39 | Summary: doodle - header files | |
1240f608 | 40 | Summary(pl.UTF-8): doodle - pliki nagłówkowe |
e4e16974 | 41 | Group: Development/Libraries |
42 | Requires: %{name}-libs = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | This is the package containing the header files for doodle. | |
46 | ||
a12ad283 JR |
47 | %description devel -l pl.UTF-8 |
48 | Ten pakiet zawiera pliki nagłówkowe doodle'a. | |
e4e16974 | 49 | |
50 | %package libs | |
51 | Summary: Doodle library | |
1240f608 | 52 | Summary(pl.UTF-8): Biblioteka doodle'a |
e5d20fa9 | 53 | Group: Libraries |
e4e16974 | 54 | |
55 | %description libs | |
56 | A doodle library. | |
57 | ||
a12ad283 | 58 | %description libs -l pl.UTF-8 |
e4e16974 | 59 | Biblioteka doodle'a. |
60 | ||
61 | %package static | |
62 | Summary: Doodle - static library | |
1240f608 | 63 | Summary(pl.UTF-8): Biblioteka statyczna doodle'a |
e4e16974 | 64 | Group: Development/Libraries |
65 | Requires: %{name}-devel = %{version}-%{release} | |
66 | ||
67 | %description static | |
68 | Static doodle library. | |
69 | ||
a12ad283 | 70 | %description static -l pl.UTF-8 |
e4e16974 | 71 | Biblioteka statyczna doodle'a. |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %{__gettextize} | |
78 | %{__libtoolize} --ltdl | |
79 | %{__aclocal} -I m4 | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
83 | %configure \ | |
84 | %{?with_static_libs:--enable-static} | |
85 | ||
86 | %{__make} | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %find_lang %{name} | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
910f133f | 99 | %post libs -p /sbin/ldconfig |
100 | %postun libs -p /sbin/ldconfig | |
101 | ||
102 | %files -f %{name}.lang | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS ChangeLog NEWS README | |
105 | %attr(755,root,root) %{_bindir}/doodle* | |
106 | %{_mandir}/man1/doodle* | |
e4e16974 | 107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
e5d20fa9 | 110 | %attr(755,root,root) %{_libdir}/lib*.so |
e4e16974 | 111 | %{_libdir}/lib*.la |
112 | %{_includedir}/* | |
113 | %{_mandir}/man3/* | |
114 | ||
115 | %files libs | |
116 | %defattr(644,root,root,755) | |
910f133f | 117 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
e4e16974 | 118 | |
119 | %files static | |
120 | %defattr(644,root,root,755) | |
910f133f | 121 | %{_libdir}/lib*.a |