]> git.pld-linux.org Git - packages/xapian-omega.git/blob - xapian-omega.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/xapian-omega.git] / xapian-omega.spec
1 Summary:        A CGI search frontend and indexers built on Xapian
2 Summary(pl.UTF-8):      Frontend wyszukiwarki CGI oraz programy indeksujące oparte na Xapianie
3 Name:           xapian-omega
4 Version:        1.4.11
5 Release:        0.1
6 License:        GPL v2+
7 Group:          Applications/Databases
8 Source0:        https://oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
9 # Source0-md5:  8cc4ea73581b5a9c381b373d4889ea53
10 URL:            https://xapian.org/
11 BuildRequires:  help2man
12 BuildRequires:  libmagic-devel
13 BuildRequires:  libstdc++-devel >= 6:4.7
14 BuildRequires:  pcre-devel
15 BuildRequires:  perl-base
16 BuildRequires:  rpm-perlprov
17 BuildRequires:  xapian-core-devel >= 1.4.0
18 BuildRequires:  zlib-devel
19 Requires:       xapian-core-libs >= 1.4.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         cgibindir       %{_prefix}/lib/cgi-bin
23
24 %description
25 Omega is a CGI application which uses the Xapian Information Retrieval
26 library to index and search collections of documents.
27
28 %description -l pl.UTF-8
29 Omega to aplikacja CGI wykorzystująca bibliotekę uzyskiwania
30 informacji Xapian w celu indeksowania i przeszukiwania zbioru
31 dokumentów.
32
33 %prep
34 %setup -q
35
36 %build
37 %configure
38 %{__make}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} install \
44         DESTDIR=$RPM_BUILD_ROOT \
45         docdatadir=%{_docdir}/%{name}
46
47 # CGI application
48 install -d $RPM_BUILD_ROOT%{cgibindir}
49 %{__mv} $RPM_BUILD_ROOT%{_libdir}/xapian-omega/bin/omega $RPM_BUILD_ROOT%{cgibindir}/%{name}
50
51 # Create the data directory
52 install -d $RPM_BUILD_ROOT/var/lib/omega/{cdb,data}
53 install -d $RPM_BUILD_ROOT/var/log/omega
54
55 # Default templates
56 install -d $RPM_BUILD_ROOT/var/lib/omega
57 cp -a templates $RPM_BUILD_ROOT/var/lib/omega/templates
58
59 # Configuration file
60 install -d $RPM_BUILD_ROOT%{_sysconfdir}
61 cp -a omega.conf $RPM_BUILD_ROOT%{_sysconfdir}/omega.conf
62
63 # Move the scripts to the right place
64 %{__mv} $RPM_BUILD_ROOT%{_datadir}/omega $RPM_BUILD_ROOT%{_datadir}/%{name}
65
66 # Images
67 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
68 cp -a images $RPM_BUILD_ROOT%{_datadir}/%{name}/icons
69
70 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc AUTHORS ChangeLog NEWS README TODO docs/*.html
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/omega.conf
79 %attr(755,root,root) %{_bindir}/dbi2omega
80 %attr(755,root,root) %{_bindir}/htdig2omega
81 %attr(755,root,root) %{_bindir}/mbox2omega
82 %attr(755,root,root) %{_bindir}/omindex
83 %attr(755,root,root) %{_bindir}/omindex-list
84 %attr(755,root,root) %{_bindir}/scriptindex
85 %attr(755,root,root) %{cgibindir}/%{name}
86 %dir %{_libdir}/xapian-omega
87 %dir %{_libdir}/xapian-omega/bin
88 %attr(755,root,root) %{_libdir}/xapian-omega/bin/mhtml2html
89 %attr(755,root,root) %{_libdir}/xapian-omega/bin/outlookmsg2html
90 %attr(755,root,root) %{_libdir}/xapian-omega/bin/rfc822tohtml
91 %attr(755,root,root) %{_libdir}/xapian-omega/bin/vcard2text
92 %{_mandir}/man1/omindex.1*
93 %{_mandir}/man1/omindex-list.1*
94 %{_mandir}/man1/scriptindex.1*
95 %{_datadir}/%{name}
96 /var/lib/omega
97 /var/log/omega
This page took 0.097311 seconds and 3 git commands to generate.