]>
Commit | Line | Data |
---|---|---|
4105a80b PZ |
1 | Summary: Rarian is a documentation meta-data library |
2 | Name: rarian | |
3 | Version: 0.5.8 | |
5ced47ce | 4 | Release: 2 |
4105a80b PZ |
5 | License: LGPL v2+ |
6 | Group: Base | |
7 | Source0: http://ftp.gnome.org/pub/GNOME/sources/rarian/0.5/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 9afee4d25a10bd5310ee21e23a09d659 | |
057d37ca | 9 | Patch0: %{name}-scrollkeeper.patch |
c6d72479 | 10 | URL: http://rarian.freedesktop.org/ |
4105a80b PZ |
11 | BuildRequires: libxslt-devel |
12 | Requires: coreutils | |
13 | Requires: gawk | |
14 | Requires: libxslt | |
15 | Requires: util-linux | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Rarian is a documentation meta-data library that allows access to | |
20 | documents, man pages and info pages. It was designed as a replacement | |
21 | for scrollkeeper. | |
22 | ||
23 | %package compat | |
24 | Summary: Extra files for compatibility with scrollkeeper | |
25 | License: GPL v2+ | |
26 | Group: Base | |
27 | Requires: %{name} = %{version}-%{release} | |
28 | Provides: scrollkeeper | |
5ced47ce | 29 | Obsoletes: scrollkeeper <= 1:0.3.14 |
4105a80b PZ |
30 | |
31 | %description compat | |
32 | This package contains files needed to maintain backward-compatibility | |
33 | with scrollkeeper. | |
34 | ||
35 | %package devel | |
36 | Summary: Development files for Rarian | |
37 | Group: Development/Languages | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | This package contains files required to develop applications that use | |
42 | the Rarian library ("librarian"). | |
43 | ||
44 | %prep | |
45 | %setup -q | |
057d37ca | 46 | %patch0 -p1 |
4105a80b PZ |
47 | |
48 | %build | |
49 | %configure \ | |
057d37ca PZ |
50 | --enable-omf-read \ |
51 | --disable-skdb-update | |
4105a80b | 52 | |
c6d72479 | 53 | %{__make} |
4105a80b PZ |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
c6d72479 MB |
57 | install -d $RPM_BUILD_ROOT%{_datadir}/omf |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
4105a80b PZ |
61 | |
62 | rm -rf $RPM_BUILD_ROOT%{_libdir}/librarian.a | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %post -p /sbin/ldconfig | |
68 | ||
69 | %post compat | |
70 | %{_bindir}/rarian-sk-update | |
71 | ||
72 | %postun -p /sbin/ldconfig | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc README COPYING COPYING.LIB COPYING.UTILS ChangeLog NEWS AUTHORS | |
77 | %attr(755,root,root) %{_bindir}/rarian-example | |
78 | %attr(755,root,root) %{_libdir}/librarian.so.*.* | |
79 | %{_datadir}/librarian | |
80 | %{_datadir}/help | |
81 | ||
82 | %files compat | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_bindir}/rarian-sk-* | |
85 | %attr(755,root,root) %{_bindir}/scrollkeeper-* | |
c6d72479 | 86 | %dir %{_datadir}/omf |
4105a80b PZ |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
90 | %{_includedir}/rarian | |
91 | %{_libdir}/librarian.so | |
92 | %{_libdir}/librarian.la | |
93 | %{_pkgconfigdir}/rarian.pc |