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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
1 Summary: Usenet newsserver for small sites
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
18
d23f038454d4 [svn] First version
bears
parents:
diff changeset
19 %description
d23f038454d4 [svn] First version
bears
parents:
diff changeset
20 NOFFLE is a news server optimized for low speed dialup connection to the
d23f038454d4 [svn] First version
bears
parents:
diff changeset
21 Internet and few users. It allows reading news offline with many news reader
d23f038454d4 [svn] First version
bears
parents:
diff changeset
22 programs, even if they do not support offline reading by themselves.
d23f038454d4 [svn] First version
bears
parents:
diff changeset
23
d23f038454d4 [svn] First version
bears
parents:
diff changeset
24 %prep
245
d6e02253fb76 [svn] * Makefile.am,docs/Makefile.am,packages/redhat/noffle.spec,
bears
parents: 238
diff changeset
25 %setup -q
110
d23f038454d4 [svn] First version
bears
parents:
diff changeset
26
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
30 make
d23f038454d4 [svn] First version
bears
parents:
diff changeset
31
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
44
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
47 echo >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
48 echo "noffle: ALL EXCEPT LOCAL" >> /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
49 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
52 echo
d23f038454d4 [svn] First version
bears
parents:
diff changeset
53
d23f038454d4 [svn] First version
bears
parents:
diff changeset
54 %postun
d23f038454d4 [svn] First version
bears
parents:
diff changeset
55 # The script gets 0 on uninstall, 1 on upgrade. Don't remove
d23f038454d4 [svn] First version
bears
parents:
diff changeset
56 # hosts.deny/inetd.conf lines on upgrade.
d23f038454d4 [svn] First version
bears
parents:
diff changeset
57 if [ "$1" = 0 ] ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
58 if [ -f /etc/hosts.deny ] &&
d23f038454d4 [svn] First version
bears
parents:
diff changeset
59 grep noffle /etc/hosts.deny > /dev/null 2>&1 ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
60 if grep -v noffle /etc/hosts.deny > /tmp/hosts.deny.$$ ; then
d23f038454d4 [svn] First version
bears
parents:
diff changeset
61 mv -f /tmp/hosts.deny.$$ /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
62 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
63 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
64 fi
d23f038454d4 [svn] First version
bears
parents:
diff changeset
65
d23f038454d4 [svn] First version
bears
parents:
diff changeset
66 %clean
d23f038454d4 [svn] First version
bears
parents:
diff changeset
67 [ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT
d23f038454d4 [svn] First version
bears
parents:
diff changeset
68
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
87
d23f038454d4 [svn] First version
bears
parents:
diff changeset
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
d23f038454d4 [svn] First version
bears
parents:
diff changeset
113 * Sun Jun 18 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
114 - Version 1.0pre6-3 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
115 - Changed /etc/noffle.conf mode to 0600 in case server password is required
d23f038454d4 [svn] First version
bears
parents:
diff changeset
116 - Added noffle line to /etc/hosts.deny
d23f038454d4 [svn] First version
bears
parents:
diff changeset
117 - Make inetd.conf handling match linuxconf - don't keep old files and only
d23f038454d4 [svn] First version
bears
parents:
diff changeset
118 add entries if nntp line is not already present, even if commented out,
d23f038454d4 [svn] First version
bears
parents:
diff changeset
119 and only remove conf lines on an uninstall
d23f038454d4 [svn] First version
bears
parents:
diff changeset
120
d23f038454d4 [svn] First version
bears
parents:
diff changeset
121 * Fri Jun 16 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
122 - Version 1.0pre6-2 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
123 - Added /etc/cron.daily/noffle-expire
d23f038454d4 [svn] First version
bears
parents:
diff changeset
124
d23f038454d4 [svn] First version
bears
parents:
diff changeset
125 * Thu Jun 15 2000 Jim Hague <jim.hague@am.org>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
126 - Version 1.0pre6-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
127 - Modified SPEC from 1.0pre5
d23f038454d4 [svn] First version
bears
parents:
diff changeset
128
d23f038454d4 [svn] First version
bears
parents:
diff changeset
129 * Wed May 17 2000 Soenke J. Peters <peters+rpm@simprovement.com>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
130 - Version 1.0pre5-1 RPM
d23f038454d4 [svn] First version
bears
parents:
diff changeset
131 - built SPEC from scratch
d23f038454d4 [svn] First version
bears
parents:
diff changeset
132
d23f038454d4 [svn] First version
bears
parents:
diff changeset
133 * Mon Aug 23 1999 Mario Moder <moderm@gmx.net>
d23f038454d4 [svn] First version
bears
parents:
diff changeset
134 - Version 1.0pre2-1 Binary only RPM, no SPEC available