1 | %define xmlcatalog %{_sysconfdir}/xml/catalog |
---|
2 | |
---|
3 | Summary: ScrollKeeper is a cataloging system for documentation on open systems. |
---|
4 | Name: scrollkeeper |
---|
5 | Version: 0.3.11 |
---|
6 | Release: 1 |
---|
7 | Source0: http://download.sourceforge.net/scrollkeeper/%{name}-%{version}.tar.gz |
---|
8 | Copyright: LGPL |
---|
9 | Group: System Environment/Base |
---|
10 | BuildRoot: %{_tmppath}/%{name}-buildroot |
---|
11 | URL: http://scrollkeeper.sourceforge.net/ |
---|
12 | Requires: libxml2 >= 2.4.19 |
---|
13 | Requires: intltool >= 0.8.4 |
---|
14 | Requires: libxslt |
---|
15 | Requires: docbook-dtd412-xml |
---|
16 | BuildRequires: libxml2-devel |
---|
17 | BuildRequires: libxslt-devel |
---|
18 | |
---|
19 | |
---|
20 | %description |
---|
21 | ScrollKeeper is a cataloging system for documentation. It manages |
---|
22 | documentation metadata, as specified by the Open Source Metadata |
---|
23 | Framework (OMF), as well as metadata which it extracts directly |
---|
24 | from DocBook documents. It provides a simple API to allow help |
---|
25 | browsers to find, sort, and search the document catalog. Some |
---|
26 | day it may also be able to communicate with catalog servers on |
---|
27 | the Net to search for documents which are not on the local system. |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup |
---|
31 | |
---|
32 | %build |
---|
33 | %configure |
---|
34 | make %{?_smp_mflags} |
---|
35 | |
---|
36 | %install |
---|
37 | if [ ! $RPM_BUILD_ROOT = "/" ]; then rm -rf $RPM_BUILD_ROOT; fi |
---|
38 | %makeinstall |
---|
39 | |
---|
40 | %find_lang %{name} |
---|
41 | |
---|
42 | %clean |
---|
43 | if [ ! $RPM_BUILD_ROOT = "/" ]; then rm -rf $RPM_BUILD_ROOT; fi |
---|
44 | |
---|
45 | %pre |
---|
46 | rm -rf %{_datadir}/scrollkeeper/Templates || true |
---|
47 | |
---|
48 | %files -f %{name}.lang |
---|
49 | %defattr(-,root,root) |
---|
50 | %doc COPYING COPYING-DOCS AUTHORS README ChangeLog NEWS INSTALL |
---|
51 | %config %{_sysconfdir}/* |
---|
52 | %{_datadir}/omf/scrollkeeper |
---|
53 | %{_bindir}/* |
---|
54 | %{_libdir}/* |
---|
55 | %{_mandir}/*/* |
---|
56 | %{_datadir}/xml/scrollkeeper |
---|
57 | %{_datadir}/scrollkeeper |
---|
58 | %{_datadir}/locale/*/* |
---|
59 | |
---|
60 | |
---|
61 | %post |
---|
62 | if [ $1 = 2 ]; then |
---|
63 | # Upgrading |
---|
64 | echo "`date +"%b %d %X"` Upgrading to ScrollKeeper `scrollkeeper-config --version`..." >> %{_localstatedir}/log/scrollkeeper.log |
---|
65 | fi |
---|
66 | if [ $1 = 1 ]; then |
---|
67 | # Installing |
---|
68 | echo "`date +"%b %d %X"` Installing ScrollKeeper `scrollkeeper-config --version`..." >> %{_localstatedir}/log/scrollkeeper.log |
---|
69 | fi |
---|
70 | /usr/bin/xmlcatalog --noout --add "public" \ |
---|
71 | "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \ |
---|
72 | "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog |
---|
73 | scrollkeeper-rebuilddb -q -p %{_localstatedir}/lib/scrollkeeper || true |
---|
74 | /sbin/ldconfig |
---|
75 | |
---|
76 | %postun |
---|
77 | if [ $1 = 0 ]; then |
---|
78 | # SK is being removed, not upgraded. |
---|
79 | # Remove all generated files |
---|
80 | rm -rf %{_localstatedir}/lib/scrollkeeper |
---|
81 | rm -rf %{_localstatedir}/log/scrollkeeper.log |
---|
82 | rm -rf %{_localstatedir}/log/scrollkeeper.log.1 |
---|
83 | /usr/bin/xmlcatalog --noout --del \ |
---|
84 | "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %xmlcatalog |
---|
85 | fi |
---|
86 | |
---|
87 | |
---|
88 | %changelog |
---|
89 | * Sun Apr 7 2002 Dan Mueth <muet@alumni.uchicago.edu> |
---|
90 | - Adding DTD to %files and xmlcatalog registration scripts to %post and %postun |
---|
91 | |
---|
92 | * Thu Apr 4 2002 Dan Mueth <muet@alumni.uchicago.edu> |
---|
93 | - Integrating some of Red Hat's modifications |
---|
94 | |
---|
95 | * Sun Feb 17 2002 Dan Mueth <muet@alumni.uchicago.edu> |
---|
96 | - Making sysconfdir files as %config |
---|
97 | |
---|
98 | * Fri Feb 8 2002 Dan Mueth <d-mueth@uchicago.edu> |
---|
99 | - Small updates to keep from blowing away / by accident, thanks to Paul |
---|
100 | - Heinlein <heinlein@measurecast.com> |
---|
101 | |
---|
102 | * Tue Jan 15 2002 Dan Mueth <d-mueth@uchicago.edu> |
---|
103 | - Having variable files only removed by %postun on an rpm removal, not on an upgrade. |
---|
104 | - Changing the three manual lines for database rebuildding with scrollkeeper-rebuilddb |
---|
105 | - Adding logging lines for upgrading/installing |
---|
106 | - Note: From SK 0.2 to 0.3.1, we had a badly written %postun which blows away |
---|
107 | - the rebuilt database after an upgrade :( |
---|
108 | |
---|
109 | * Sun Jan 13 2002 Dan Mueth <d-mueth@uchicago.edu> |
---|
110 | - Added BuildRequires for libxml2-devel |
---|
111 | |
---|
112 | * Sat Jan 12 2002 Dan Mueth <d-mueth@uchicago.edu> |
---|
113 | - Added %postun to remove log files. |
---|
114 | |
---|
115 | * Mon Mar 5 2001 Dan Mueth <dan@eazel.com> |
---|
116 | - Added %postun to remove $datadir/scrollkeeper/templates |
---|
117 | to compensate for breakage in upgrade from 0.1.1 to 0.1.2 |
---|
118 | |
---|
119 | * Sun Mar 4 2001 Dan Mueth <dan@eazel.com> |
---|
120 | - Added cleaner symbolic link section suggested by Karl |
---|
121 | Eichwalder <keichwa@users.sourceforge.net> |
---|
122 | - Have it blow away the database dir on first install, just |
---|
123 | in case an old tarball version had been installed |
---|
124 | - Fixing the Source0 line at the top |
---|
125 | |
---|
126 | * Tue Feb 15 2001 Dan Mueth <dan@eazel.com> |
---|
127 | - added line to include the translations .mo file |
---|
128 | |
---|
129 | * Tue Feb 06 2001 Dan Mueth <dan@eazel.com> |
---|
130 | - fixed up pre and post installation scripts |
---|
131 | |
---|
132 | * Tue Feb 06 2001 Laszlo Kovacs <laszlo.kovacs@sun.com> |
---|
133 | - added all the locale directories and links for the template |
---|
134 | content list files |
---|
135 | |
---|
136 | * Wed Jan 17 2001 Gregory Leblanc <gleblanc@cu-portland.edu> |
---|
137 | - converted to scrollkeeper.spec.in |
---|
138 | |
---|
139 | * Sat Dec 16 2000 Laszlo Kovacs <laszlo.kovacs@sun.com> |
---|
140 | - help files added |
---|
141 | |
---|
142 | * Fri Dec 8 2000 Laszlo Kovacs <laszlo.kovacs@sun.com> |
---|
143 | - various small fixes added |
---|
144 | |
---|
145 | * Thu Dec 7 2000 Laszlo Kovacs <laszlo.kovacs@sun.com> |
---|
146 | - fixing localstatedir problem |
---|
147 | - adding postinstall and postuninstall scripts |
---|
148 | |
---|
149 | * Tue Dec 5 2000 Gregory Leblanc <gleblanc@cu-portland.edu> |
---|
150 | - adding COPYING, AUTHORS, etc |
---|
151 | - fixed localstatedir for the OMF files |
---|
152 | |
---|
153 | * Fri Nov 10 2000 Gregory Leblanc <gleblanc@cu-portland.edu> |
---|
154 | - Initial spec file created. |
---|
155 | |
---|
156 | |
---|