View | Details | Raw Unified | Return to bug 2601
Collapse All | Expand All

(-)../inn.spec (-46 / +50 lines)
Lines 1-13 Link Here
1
Name: inn
1
Name: inn
2
Version: 2.4.1
2
Version: 2.4.2
3
Release: alt7
3
Release: alt0
4
4
5
Summary: The InterNetNews (INN) system, an Usenet news server
5
Summary: The InterNetNews (INN) system, an Usenet news server
6
6
7
License: GPL
7
License: GPL
8
Group: System/Servers
8
Group: System/Servers
9
9
10
Source0: ftp://ftp.isc.org/isc/inn/inn-%version.tar.bz2
10
Url: http://www.isc.org/products/INN
11
Source0: ftp://ftp.isc.org/isc/inn/inn-%version.tar.gz
11
Source1: %name-default-active
12
Source1: %name-default-active
12
Source2: %name-default-distributions
13
Source2: %name-default-distributions
13
Source3: %name-default-newsgroups
14
Source3: %name-default-newsgroups
Lines 112-127 Link Here
112
%set_autoconf_version 2.13
113
%set_autoconf_version 2.13
113
114
114
%__rm -f config.cache
115
%__rm -f config.cache
115
export CFLAGS="$RPM_OPT_FLAGS"
116
export CFLAGS="%optflags"
116
%__libtoolize --copy --force
117
%__libtoolize --copy --force
117
%__autoconf
118
%__autoconf
118
./configure %_target_platform \
119
./configure %_target_platform \
119
	--prefix=%prefix  \
120
	--prefix=%prefix  \
120
	--sysconfdir=%_sysconfdir/news \
121
	--sysconfdir=%_sysconfdir/news \
121
	--mandir=%_mandir \
122
	--mandir=%_mandir \
122
	--with-log-dir=%_var/log/inn \
123
	--with-log-dir=%_logdir/inn \
123
	--with-syslog-dir=%_var/log/news \
124
	--with-syslog-dir=%_logdir/news \
124
	--with-spool-dir=%_var/spool/news\
125
	--with-spool-dir=%_spooldir/news\
125
	--with-db-dir=%_localstatedir/news \
126
	--with-db-dir=%_localstatedir/news \
126
	--with-run-dir=%_var/run/news \
127
	--with-run-dir=%_var/run/news \
127
	--with-etc-dir=%_sysconfdir/news \
128
	--with-etc-dir=%_sysconfdir/news \
Lines 149-202 Link Here
149
%make
150
%make
150
151
151
%install
152
%install
152
%make install DESTDIR=$RPM_BUILD_ROOT
153
%make install DESTDIR=%buildroot
153
154
154
# -- Install man pages needed by suck et al.
155
# -- Install man pages needed by suck et al.
155
#for f in clibrary.h config.h dbz.h libinn.h storage.h; do
156
#for f in clibrary.h config.h dbz.h libinn.h storage.h; do
156
#	%__install -pD -m644 ./include/$f "$RPM_BUILD_ROOT%_includedir/%name/$f"
157
#	%__install -pD -m644 ./include/$f "%buildroot%_includedir/%name/$f"
157
#done
158
#done
158
159
159
touch $RPM_BUILD_ROOT%_localstatedir/news/subscriptions
160
touch %buildroot%_localstatedir/news/subscriptions
160
%__chmod 644 $RPM_BUILD_ROOT%_localstatedir/news/subscriptions
161
%__chmod 644 %buildroot%_localstatedir/news/subscriptions
161
162
162
#%__install -m 644 $RPM_SOURCE_DIR/inn-default-active \
163
#%__install -m 644 $RPM_SOURCE_DIR/inn-default-active \
163
#        $RPM_BUILD_ROOT%_localstatedir/news/active
164
#        %buildroot%_localstatedir/news/active
164
%__install -m 644 $RPM_SOURCE_DIR/inn-default-distributions \
165
%__install -m 644 $RPM_SOURCE_DIR/inn-default-distributions \
165
        $RPM_BUILD_ROOT%_localstatedir/news/distributions
166
        %buildroot%_localstatedir/news/distributions
166
%__install -m 644 $RPM_SOURCE_DIR/inn-default-newsgroups \
167
%__install -m 644 $RPM_SOURCE_DIR/inn-default-newsgroups \
167
        $RPM_BUILD_ROOT%_localstatedir/news/newsgroups
168
        %buildroot%_localstatedir/news/newsgroups
168
169
169
%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/cron.hourly $RPM_BUILD_ROOT%_sysconfdir/cron.daily
170
%__mkdir_p %buildroot%_sysconfdir/cron.hourly %buildroot%_sysconfdir/cron.daily
170
%__install -m755 $RPM_SOURCE_DIR/inn-cron-expire \
171
%__install -m755 $RPM_SOURCE_DIR/inn-cron-expire \
171
        $RPM_BUILD_ROOT%_sysconfdir/cron.daily/inn-cron-expire
172
        %buildroot%_sysconfdir/cron.daily/inn-cron-expire
172
%__install -m755 $RPM_SOURCE_DIR/inn-cron-rnews \
173
%__install -m755 $RPM_SOURCE_DIR/inn-cron-rnews \
173
        $RPM_BUILD_ROOT%_sysconfdir/cron.hourly/inn-cron-rnews
174
        %buildroot%_sysconfdir/cron.hourly/inn-cron-rnews
174
%__install -m755 $RPM_SOURCE_DIR/inn-cron-nntpsend \
175
%__install -m755 $RPM_SOURCE_DIR/inn-cron-nntpsend \
175
        $RPM_BUILD_ROOT%_sysconfdir/cron.hourly/inn-cron-nntpsend
176
        %buildroot%_sysconfdir/cron.hourly/inn-cron-nntpsend
176
177
177
%__install -m440 $RPM_SOURCE_DIR/inn-etc-nnrp.access \
178
%__install -m440 $RPM_SOURCE_DIR/inn-etc-nnrp.access \
178
        $RPM_BUILD_ROOT%_sysconfdir/news/nnrp.access
179
        %buildroot%_sysconfdir/news/nnrp.access
179
180
180
%__mkdir_p $RPM_BUILD_ROOT%_initdir
181
%__mkdir_p %buildroot%_initdir
181
%__install -m 755 %SOURCE8 \
182
%__install -m 755 %SOURCE8 \
182
	$RPM_BUILD_ROOT%_initdir/innd
183
	%buildroot%_initdir/innd
183
184
184
%__rm -f $RPM_BUILD_ROOT%_localstatedir/news/history
185
%__rm -f %buildroot%_localstatedir/news/history
185
touch $RPM_BUILD_ROOT%_localstatedir/news/history
186
touch %buildroot%_localstatedir/news/history
186
%__chmod 644 $RPM_BUILD_ROOT%_localstatedir/news/*
187
%__chmod 644 %buildroot%_localstatedir/news/*
187
188
188
#Fix perms in sample directory to avoid bogus dependencies
189
#Fix perms in sample directory to avoid bogus dependencies
189
find samples -name "*.in" -exec chmod a-x {} \;
190
find samples -name "*.in" -exec chmod a-x {} \;
190
191
191
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/articles
192
%__mkdir_p %buildroot%_spooldir/news/articles
192
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/overview
193
%__mkdir_p %buildroot%_spooldir/news/overview
193
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/archive
194
%__mkdir_p %buildroot%_spooldir/news/archive
194
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/incoming/bad
195
%__mkdir_p %buildroot%_spooldir/news/incoming/bad
195
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/outgoing
196
%__mkdir_p %buildroot%_spooldir/news/outgoing
196
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/uniover
197
%__mkdir_p %buildroot%_spooldir/news/uniover
197
%__mkdir_p $RPM_BUILD_ROOT%_var/spool/news/innfeed
198
%__mkdir_p %buildroot%_spooldir/news/innfeed
198
%__mkdir_p $RPM_BUILD_ROOT%_var/log/inn
199
%__mkdir_p %buildroot%_logdir/inn
199
%__mkdir_p $RPM_BUILD_ROOT%_var/run/news/tmp
200
%__mkdir_p %buildroot%_var/run/news/tmp
200
201
201
%post
202
%post
202
#if [ `%__cat %_sysconfdir/news/inn.conf | %__grep '^server:' | wc -l` -lt 1 ]; then
203
#if [ `%__cat %_sysconfdir/news/inn.conf | %__grep '^server:' | wc -l` -lt 1 ]; then
Lines 216-231 Link Here
216
%doc doc/checklist doc/compliance-nntp doc/config-design doc/config-semantics doc/config-syntax doc/external-auth
217
%doc doc/checklist doc/compliance-nntp doc/config-design doc/config-semantics doc/config-syntax doc/external-auth
217
%doc doc/history doc/hook-perl doc/hook-python doc/hook-tcl doc/IPv6-info doc/sample-control
218
%doc doc/history doc/hook-perl doc/hook-python doc/hook-tcl doc/IPv6-info doc/sample-control
218
%defattr(3770,root,news)
219
%defattr(3770,root,news)
219
%dir %_var/spool/news
220
%dir %_spooldir/news
220
%dir %_var/spool/news/articles
221
%dir %_spooldir/news/articles
221
%dir %_var/spool/news/overview
222
%dir %_spooldir/news/overview
222
%dir %_var/spool/news/archive
223
%dir %_spooldir/news/archive
223
%dir %_var/spool/news/incoming
224
%dir %_spooldir/news/incoming
224
%dir %_var/spool/news/incoming/bad
225
%dir %_spooldir/news/incoming/bad
225
%dir %_var/spool/news/outgoing
226
%dir %_spooldir/news/outgoing
226
%dir %_var/spool/news/uniover
227
%dir %_spooldir/news/uniover
227
%dir %_var/spool/news/innfeed
228
%dir %_spooldir/news/innfeed
228
%dir %_var/log/%name
229
%dir %_logdir/%name
229
%dir %_var/run/news
230
%dir %_var/run/news
230
%dir %_var/run/news/tmp
231
%dir %_var/run/news/tmp
231
%dir %_localstatedir/news
232
%dir %_localstatedir/news
Lines 260-270 Link Here
260
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/storage.conf
261
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/storage.conf
261
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/subscriptions
262
%attr(644,root,news) %config(noreplace) %_sysconfdir/news/subscriptions
262
263
263
%defattr(-,root,root)
264
%dir %_libdir/%name
265
%_man5dir/*
264
%_man5dir/*
266
%_man8dir/*
265
%_man8dir/*
267
%_libdir/%name/*
266
%_libdir/%name/
268
%_bindir/ovdb_init
267
%_bindir/ovdb_init
269
%_bindir/ovdb_monitor
268
%_bindir/ovdb_monitor
270
%_bindir/ovdb_server
269
%_bindir/ovdb_server
Lines 379-384 Link Here
379
%_man1dir/inews*
378
%_man1dir/inews*
380
379
381
%changelog
380
%changelog
381
* Thu Oct 20 2005 Michael Shigorin <mike@altlinux.org> 2.4.2-alt0
382
- 2.4.2
383
- minor spec cleanup; Url added
384
- rebuilt so as to avoid #2601
385
382
* Sat Feb 12 2005 Konstantin Timoshenko <kt@altlinux.ru> 2.4.1-alt7
386
* Sat Feb 12 2005 Konstantin Timoshenko <kt@altlinux.ru> 2.4.1-alt7
383
- rebuild with BerkeleyDB 4.3
387
- rebuild with BerkeleyDB 4.3
384
388

Return to bug 2601