Mercurial > noffle
annotate packages/redhat/noffle.spec @ 337:1aa1ed030464 noffle
[svn] cleanup bugfix
author | godisch |
---|---|
date | Tue, 04 Mar 2003 20:40:26 +0000 |
parents | 94ac4c72baf7 |
children |
rev | line source |
---|---|
110 | 1 Summary: Usenet newsserver for small sites |
2 Name: noffle | |
299
94ac4c72baf7
[svn] * NEWS,configure,configure.in,packages/redhat/noffle.spec: Update for 1.1.4.
bears
parents:
297
diff
changeset
|
3 Version: 1.1.4 |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
4 Release: 1 |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
5 Group: System Environment/Daemons |
110 | 6 Copyright: GPL |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
7 Packager: Jim Hague <jim.hague@acm.org> |
238
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
8 URL: http://noffle.sourceforge.net |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
9 Buildroot: %{_tmppath}/%{name}-root |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
10 Source: http://prdownloads.sf.net/noffle/%{name}-%{version}.tar.gz |
110 | 11 Requires: gdbm |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
12 BuildRequires: gdbm-devel |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
13 Conflicts: inn |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
14 |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
15 %define spooldir %{_var}/spool/%{name} |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
16 %define cfgfiledir %{_sysconfdir} |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
17 %define cfgfilename %{cfgfiledir}/%{name}.conf |
110 | 18 |
19 %description | |
20 NOFFLE is a news server optimized for low speed dialup connection to the | |
21 Internet and few users. It allows reading news offline with many news reader | |
22 programs, even if they do not support offline reading by themselves. | |
23 | |
24 %prep | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
25 %setup -q |
110 | 26 |
27 %build | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
28 %configure --enable-debug=no --with-configfile=%{cfgfilename} \ |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
29 --with-spooldir=%{spooldir} |
110 | 30 make |
31 | |
32 %install | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
33 rm -rf $RPM_BUILD_ROOT |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
34 mkdir -p $RPM_BUILD_ROOT |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
35 make install DESTDIR=$RPM_BUILD_ROOT |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
36 |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
37 mkdir -p %{buildroot}%{_sysconfdir}{,/{cron.daily,xinetd.d}} |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
38 install packages/redhat/noffle-expire %{buildroot}%{_sysconfdir}/cron.daily/noffle |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
39 install packages/redhat/noffle-xinetd %{buildroot}%{_sysconfdir}/xinetd.d/noffle |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
40 |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
41 ln -s noffle %{buildroot}%{_bindir}/inews |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
42 |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
43 mv %{buildroot}%{_sysconfdir}/noffle.conf.example %{buildroot}%{_sysconfdir}/noffle.conf |
110 | 44 |
45 %post | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
46 if [ -f /etc/hosts.deny ] && ! grep -q '^[# \t]*noffle' /etc/hosts.deny ; then |
110 | 47 echo >> /etc/hosts.deny |
48 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny | |
49 fi | |
50 echo | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
51 echo " Don't forget to edit %{cfgfilename} !!! " |
110 | 52 echo |
53 | |
54 %postun | |
55 # The script gets 0 on uninstall, 1 on upgrade. Don't remove | |
56 # hosts.deny/inetd.conf lines on upgrade. | |
57 if [ "$1" = 0 ] ; then | |
58 if [ -f /etc/hosts.deny ] && | |
59 grep noffle /etc/hosts.deny > /dev/null 2>&1 ; then | |
60 if grep -v noffle /etc/hosts.deny > /tmp/hosts.deny.$$ ; then | |
61 mv -f /tmp/hosts.deny.$$ /etc/hosts.deny | |
62 fi | |
63 fi | |
64 fi | |
65 | |
66 %clean | |
67 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT | |
68 | |
69 %files | |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
70 |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
71 %defattr(-,root,root) |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
72 %doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
73 %doc docs/noffle.lsm |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
74 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/xinetd.d/noffle |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
75 %{_bindir}/inews |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
76 %defattr(-,news,news) |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
77 %attr(4755,news,news) %{_bindir}/noffle |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
78 %attr(0644,root,root) %doc %{_mandir}/man*/noffle* |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
79 %attr(0600,news,news) %config(noreplace) %{cfgfilename} |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
80 %attr(0755,news,news) %config(noreplace) %{_sysconfdir}/cron.daily/noffle |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
81 %attr(2755,news,news) %dir %{spooldir} |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
82 %attr(0755,news,news) %dir %{spooldir}/data |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
83 %attr(0755,news,news) %dir %{spooldir}/lock |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
84 %attr(0755,news,news) %dir %{spooldir}/requested |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
85 %attr(0755,news,news) %dir %{spooldir}/outgoing |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
86 %attr(0755,news,news) %dir %{spooldir}/overview |
110 | 87 |
88 %changelog | |
299
94ac4c72baf7
[svn] * NEWS,configure,configure.in,packages/redhat/noffle.spec: Update for 1.1.4.
bears
parents:
297
diff
changeset
|
89 * Wed Feb 12 2003 Jim Hague <jim.hague@acm.org> |
94ac4c72baf7
[svn] * NEWS,configure,configure.in,packages/redhat/noffle.spec: Update for 1.1.4.
bears
parents:
297
diff
changeset
|
90 - Bump version to 1.1.4-1. |
94ac4c72baf7
[svn] * NEWS,configure,configure.in,packages/redhat/noffle.spec: Update for 1.1.4.
bears
parents:
297
diff
changeset
|
91 |
245
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
92 * Fri Mar 15 2002 Jim Hague <jim.hague@acm.org> |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
93 - Revamp spec file, making use of the first version Mandrake spec file |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
94 by Alexander Skwar <ASkwar@Linux-Mandrake.com>. |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
95 - Make noffle-expire just plain /etc/cron.daily/noffle. |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
96 - Version 1.1.2-1 RPM |
d6e02253fb76
[svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents:
238
diff
changeset
|
97 |
238
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
98 * Sun Jan 13 2002 Jim Hague <jim.hague@acm.org> |
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
99 - Incorporate changes from Carles Arjona <nospammer@bigfoot.com> |
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
100 - Version 1.1.1-2 RPM |
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
101 - Added support for xinetd |
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
102 - Separated noffle.expire from the original tarball sources |
dbafa3954bbe
[svn] * packages/redhat/noffle.spec: Incorporate changes from Carles Arjona.
bears
parents:
225
diff
changeset
|
103 |
198
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
104 * Wed Oct 31 2001 Jim Hague <jim.hague@acm.org> |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
105 - Up version to 1.1-1, and remove inews from %files as it is created by %post. |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
106 Remove relocation prefix - it wasn't working properly. Also |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
107 RPM 4 seems to automatically compress man pages, so put man pages in |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
108 %files as /usr/man/* so we pick up whatever is there, compressed or not. |
79e324213734
[svn] * packages/redhat/noffle.spec: Update to version to 1.1-1 and fix up some
bears
parents:
150
diff
changeset
|
109 |
150
1c7303c71f66
[svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents:
110
diff
changeset
|
110 * Thu Oct 26 2000 Jim Hague <jim.hague@am.org> |
1c7303c71f66
[svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents:
110
diff
changeset
|
111 - Added inews link. |
1c7303c71f66
[svn] * src/protocol.c: Fix bug in Prt_getLn if we should read a line
bears
parents:
110
diff
changeset
|
112 |
110 | 113 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org> |
114 - Version 1.0pre6-3 RPM | |
115 - Changed /etc/noffle.conf mode to 0600 in case server password is required | |
116 - Added noffle line to /etc/hosts.deny | |
117 - Make inetd.conf handling match linuxconf - don't keep old files and only | |
118 add entries if nntp line is not already present, even if commented out, | |
119 and only remove conf lines on an uninstall | |
120 | |
121 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org> | |
122 - Version 1.0pre6-2 RPM | |
123 - Added /etc/cron.daily/noffle-expire | |
124 | |
125 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org> | |
126 - Version 1.0pre6-1 RPM | |
127 - Modified SPEC from 1.0pre5 | |
128 | |
129 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com> | |
130 - Version 1.0pre5-1 RPM | |
131 - built SPEC from scratch | |
132 | |
133 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net> | |
134 - Version 1.0pre2-1 Binary only RPM, no SPEC available |