]> git.pld-linux.org Git - packages/inn.git/blame - inn.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/inn.git] / inn.spec
CommitLineData
8256dc31 1#
9e1f55ef 2# Conditional build:
6113bcd6 3%bcond_with lfs # enable largefiles (disables tagged hash)
4edb2079 4%bcond_without python # embedded Python module support
8256dc31 5%bcond_with python3 # Python 3.x instead of 2.x
d7f79e4a 6
62d4f04e 7Summary: INN, the InterNet News System (news server)
900e3991
ER
8Summary(de.UTF-8): das InterNet News System (News-Server)
9Summary(es.UTF-8): INN, InterNet News System (servidor news)
10Summary(fr.UTF-8): INN, le système InterNet News (serveur de news)
11Summary(pl.UTF-8): INN, serwer nowinek
12Summary(pt_BR.UTF-8): INN, InterNet News System (servidor news)
13Summary(tr.UTF-8): INN, InterNet Haber Sistemi (haber sunucu)
e762d39b 14Name: inn
8256dc31 15Version: 2.6.3
32311dc5 16Release: 3
2f46b8d0 17License: distributable
62d4f04e 18Group: Networking/Daemons
e2024cb9 19Source0: ftp://ftp.isc.org/isc/inn/%{name}-%{version}.tar.gz
8256dc31 20# Source0-md5: cbbebf4c984cd54871b25f6c649d6ad2
bac70e06 21Source1: %{name}-default-active
22Source2: %{name}-default-distributions
23Source3: %{name}-default-newsgroups
d62f835a
AA
24Source4: %{name}.crontab
25Source5: %{name}.init
26Source6: %{name}-cnfsstat.cron
27Source7: %{name}.logrotate
28Source8: getlist.1.pl
29Source9: %{name}d.8.pl
3acdca37 30Source10: %{name}.tmpfiles
45c9b47c
JB
31Patch0: %{name}-PLD.patch
32Patch1: %{name}-install.patch
6a4c3728
JB
33Patch3: %{name}-setgid.patch
34Patch4: %{name}-config.patch
35Patch5: %{name}-asneeded.patch
36Patch6: %{name}-nnrpd_no_trace.patch
00fbffab 37Patch8: %{name}-libdir.patch
5a4b775e 38URL: https://www.isc.org/software/inn/
6113bcd6 39BuildRequires: autoconf >= 2.64
1f19b0ad 40BuildRequires: automake
5ea55358 41BuildRequires: bison
4edb2079 42BuildRequires: cyrus-sasl-devel >= 2
6a4c3728 43BuildRequires: db-devel >= 4.4
db3cdf8e 44BuildRequires: flex >= 2.5.37
988e20fb 45BuildRequires: heimdal-devel
6a4c3728 46BuildRequires: libtool >= 2:2
5c9fcecc 47BuildRequires: openssl-devel >= 0.9.7d
567aad03 48BuildRequires: perl-devel >= 1:5.8.0
8256dc31
JB
49%if %{with python}
50%{!?with_python3:BuildRequires: python-devel >= 1:2.3}
51%{?with_python3:BuildRequires: python3-devel >= 1:3.3}
52%endif
47956f80 53BuildRequires: rpm-perlprov
6a4c3728 54BuildRequires: rpmbuild(macros) >= 1.663
4edb2079 55BuildRequires: zlib-devel
cba9f618 56Requires(post): /bin/kill
2217a330 57Requires(post): /usr/bin/getent
ed7425b9 58Requires(post): /usr/sbin/usermod
cba9f618 59Requires(post): fileutils
ed7425b9 60Requires(post): sed >= 4.0
2217a330 61Requires(post): textutils
ed7425b9
ER
62Requires(post,preun): /sbin/chkconfig
63Requires: %{name}-libs = %{version}-%{release}
032bb863 64Requires: awk
65Requires: cleanfeed >= 0.95.7b-4
d7f79e4a 66Requires: crondaemon
e394e0ff 67Requires: procps
032bb863 68Requires: psmisc >= 20.1
45c23cff 69Requires: rc-scripts >= 0.4.1.23
e394e0ff 70Requires: textutils
032bb863 71Requires: util-linux
721f9889 72Suggests: perl-GD
72d625a1 73Provides: nntpserver
8d78fca9
JB
74Obsoletes: leafnode
75Obsoletes: leafnode+
9f0e9d44 76Conflicts: logrotate < 3.7-4
6d6d162e 77BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62d4f04e 78
8a30a1a2 79%define _sysconfdir /etc/news
80
6a4c3728 81%define skip_post_check_so libstorage.so.*
491e5253 82# /usr/bin/pullnews doesn't provide perl(Net::NNTP) - perl-libnet does.
6a4c3728 83%define _noautoprov_perl Net::NNTP
491e5253 84# it's necessary only for sample nnrpd_auth.pl hook
6a4c3728 85%define _noautoreq_perl CDB_File
491e5253 86
62d4f04e 87%description
e762d39b 88INN is a news server, which can be set up to handle USENET news, as
89well as private "newsfeeds". There is a *LOT* of information about
5c8ecc5f 90setting up INN in %{_docdir}/%{name}-%{version} -- read it.
62d4f04e 91
689f93fc
JR
92If you want innreport to generate graphs you need perl-GD package.
93
766f00fd 94%description -l es.UTF-8
b3dfec9f 95INN es un servidor de news, que puede ser configurado para manipular
766f00fd 96USENET news bien como newsfeeds privadas. Existe un *Montón* de
47956f80 97información sobre la configuración del INN en
98%{_docdir}/%{name}-%{version} -- léela.
b3dfec9f 99
766f00fd
JR
100%description -l pl.UTF-8
101INN jest serwerem news, który można skonfigurować do obsługi USENET-u,
102jak również do obsługi ,,prywatnych'' grup w sieciach intranetowych.
103Całe mnóstwo pożytecznych informacji o konfigurowaniu INN-a znajdziesz
5c8ecc5f 104w katalogu %{_docdir}/%{name}-%{version}.
62d4f04e 105
6a4c3728 106Aby innreport generował wykresy, trzeba zainstalować pakiet perl-GD.
689f93fc 107
766f00fd
JR
108%description -l pt_BR.UTF-8
109INN é um servidor de news, que pode ser configurado para manipular
b3dfec9f 110USENET news bem como newsfeeds privadas. Existe um *MONTE* de
47956f80 111informações sobre a configuração do INN em
112%{_docdir}/%{name}-%{version} -- leia.
b3dfec9f 113
b8fd1c81
JR
114%package libs
115Summary: INN libraries
900e3991
ER
116Summary(de.UTF-8): INN-Library
117Summary(fr.UTF-8): Bibliothèque INN
118Summary(pl.UTF-8): Biblioteki do INN-a
0d5e12bf 119Group: Libraries
b8fd1c81
JR
120
121%description libs
122This library is needed by several programs that interface to INN, such
123as newsgate or tin.
124
766f00fd
JR
125%description libs -l de.UTF-8
126Diese Library wird von mehreren Programmen benötigt, die mit INN
b8fd1c81
JR
127kommunizieren, etwa newsgate oder tin.
128
766f00fd
JR
129%description libs -l fr.UTF-8
130Cette bibliothèque est nécessaire à plusieurs programmes qui
b8fd1c81
JR
131s'interfacent avec INN, comme newsgate ou tin.
132
766f00fd
JR
133%description libs -l pl.UTF-8
134Biblioteka niezbędna do działania kilku programów współpracujących z
b8fd1c81
JR
135INN-em, takich jak newsgate czy tin.
136
766f00fd
JR
137%description libs -l tr.UTF-8
138INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
139bir kitaplıktır.
b8fd1c81 140
62d4f04e 141%package devel
8ee5b158 142Summary: INN header files and development documentations
900e3991
ER
143Summary(de.UTF-8): INN-Library
144Summary(es.UTF-8): Biblioteca INN
145Summary(fr.UTF-8): Bibliothèque INN
146Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja programisty do inn-a
147Summary(pt_BR.UTF-8): Biblioteca INN
148Summary(tr.UTF-8): INN kitaplığı
1f021260 149Group: Development/Libraries
0b6509ff 150Requires: %{name}-libs = %{version}-%{release}
70fbead5 151Requires: db-devel
f7754046 152
62d4f04e 153%description devel
3630905a 154Header files and developer documentations for INN libraries.
62d4f04e 155
766f00fd
JR
156%description devel -l de.UTF-8
157Diese Library wird von mehreren Programmen benötigt, die mit INN
62d4f04e 158kommunizieren, etwa newsgate oder tin.
159
766f00fd 160%description devel -l es.UTF-8
b3dfec9f 161Esta biblioteca es requerida por varios programas que tienen interface
162con INN, como el newsgate o tin.
163
766f00fd
JR
164%description devel -l fr.UTF-8
165Cette bibliothèque est nécessaire à plusieurs programmes qui
e762d39b 166s'interfacent avec INN, comme newsgate ou tin.
62d4f04e 167
766f00fd
JR
168%description devel -l pl.UTF-8
169Pliki nagłówkowe i dokumentacja programisty do bibliotek INN-a.
62d4f04e 170
766f00fd
JR
171%description devel -l pt_BR.UTF-8
172Esta biblioteca é requerida por vários programas que tem interface com
b3dfec9f 173o INN, como o newsgate ou tin.
174
766f00fd
JR
175%description devel -l tr.UTF-8
176INN ile arayüz gerektiren programlar için (newsgate, tin gibi) gereken
177bir kitaplıktır.
62d4f04e 178
8ee5b158 179%package static
180Summary: Static INN libraries
900e3991
ER
181Summary(es.UTF-8): Static libraries for inn development
182Summary(pl.UTF-8): Biblioteki statyczne do INN
183Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com inn
8ee5b158 184Group: Development/Libraries
0b6509ff 185Requires: %{name}-devel = %{version}-%{release}
8ee5b158 186
187%description static
188Static INN libraries.
189
766f00fd 190%description static -l es.UTF-8
b3dfec9f 191Static libraries for inn development
192
766f00fd 193%description static -l pl.UTF-8
8ee5b158 194Biblioteki statyczne do INN.
62d4f04e 195
766f00fd 196%description static -l pt_BR.UTF-8
766f00fd 197Bibliotecas estáticas para desenvolvimento com inn
b3dfec9f 198
62d4f04e 199%package -n inews
1f021260 200Summary: Inews program (used for posting by inn and trn)
900e3991
ER
201Summary(de.UTF-8): Inews-Programm (für die Zustellung mit inn und trn)
202Summary(es.UTF-8): Programa Inews (usado para franqueo por inn y trn)
203Summary(fr.UTF-8): Programme inews (utilisé par inn et trn pour poster)
204Summary(pl.UTF-8): Inews - program do wysyłania artykułów (używany przez inn i trn)
205Summary(pt_BR.UTF-8): Programa Inews (usado para postagem pelo inn e trn)
206Summary(tr.UTF-8): Haber biçimlendirme programı
1f021260 207Group: Networking/News
0b6509ff 208Requires: %{name}-libs = %{version}-%{release}
62d4f04e 209
210%description -n inews
e762d39b 211The inews program is used by some news readers to post news. It does
212some consistency checking and header reformatting, and forwards the
213article on to the news server specified in inn.conf.
62d4f04e 214
766f00fd 215%description -n inews -l de.UTF-8
e762d39b 216Das Programm 'inews' wird von manchen Newsreadern zum Senden von
766f00fd 217Nachrichten verwendet. Es führt eine Konsistenzprüfung und Header-Neuf
e762d39b 218ormatierung aus und leitet die Nachricht an den in 'inn.conf'
219angegebenen News-Server weiter.
62d4f04e 220
766f00fd 221%description -n inews -l es.UTF-8
b3dfec9f 222El programa inews se usa por algunos lectores de news para postar
223mensajes. Hace alguna consistencia chequeando y reformateando headers,
766f00fd 224y enviando el artículo para el servidor de news especificado en el
b3dfec9f 225inn.conf.
226
766f00fd
JR
227%description -n inews -l fr.UTF-8
228Le programme inews est utilisé par certains lecteurs de news pour
229poster les articles. Il effectue des vérifications et un reformatage
230des en-têtes et fait suivre l'article au serveur de news spécifié dans
e762d39b 231inn.conf.
62d4f04e 232
766f00fd
JR
233%description -n inews -l pl.UTF-8
234Inews jest używany przez niektóre czytniki news do wysyłania
235artykułów. Sprawdza budowę artykułu, przepisuje nagłówek i wysyła do
236serwera news wyszczególnionego w inn.conf.
62d4f04e 237
766f00fd
JR
238%description -n inews -l pt_BR.UTF-8
239O programa inews é usado por alguns leitores de news para postar
240mensagens. Ele faz alguma consistência checando e reformatando
b3dfec9f 241headers, e enviando o artigo para o servidor de news especificado no
242inn.conf.
243
766f00fd
JR
244%description -n inews -l tr.UTF-8
245inews programı bazı haber okuyucular tarafından haber yollamak
246amacıyla kullanılır. Program bazı güvenlik denetimleri ve başlık
247biçimlendirmesi yaparak ve inn.conf dosyasında belirtilen haber
e762d39b 248sunucuya makaleyi yollar.
62d4f04e 249
250%prep
1824cb2f 251%setup -q
22cdc3ec 252%patch0 -p1
1824cb2f 253%patch1 -p1
a7951795 254%patch3 -p1
c886271f 255%patch4 -p1
1a925eab 256%patch5 -p1
6a4c3728 257%patch6 -p1
5fe706d7 258%patch8 -p1
ffaa5404 259
62d4f04e 260touch innfeed/*.[ly]
261
8fa20058 262%build
4a2f14c0 263%{__libtoolize}
6a4c3728
JB
264# not updated automatically by libtool
265cp -f /usr/share/aclocal/{libtool,lt*}.m4 m4
00fbffab 266cp -f /usr/share/automake/config.* support
3dc5b213
JB
267%{__aclocal}
268%{__autoconf}
713a2e4c 269%{__autoheader} -I include
8a30a1a2 270%configure \
8256dc31
JB
271 CPPFLAGS="%{rpmcppflags} -D_GNU_SOURCE" \
272 %{?with_python3:PYTHON=%{__python3}} \
aeef40a9
JB
273 --with-news-group=news \
274 --with-news-master=news \
6a4c3728 275 --with-news-user=news \
d62f835a 276 --with-control-dir=%{_datadir}/news/control \
aeef40a9 277 --with-db-dir=/var/lib/news \
d62f835a 278 --with-filter-dir=%{_datadir}/news/filter \
4edb2079 279 --with-http-dir=/var/lib/news/http \
6a4c3728
JB
280 --with-innlib-dir=%{_datadir}/news \
281 --with-libperl-dir=%{perl_vendorlib} \
aeef40a9
JB
282 --with-log-dir=/var/log/news \
283 --with-run-dir=/var/run/news \
284 --with-spool-dir=/var/spool/news \
d62f835a 285 --with-tmp-dir=/var/spool/news/incoming/tmp \
4edb2079 286 --with-bdb=%{_prefix} \
6a4c3728 287 --with-openssl=%{_prefix} \
aeef40a9 288 --with-perl \
4edb2079 289 %{?with_python:--with-python} \
d62f835a 290 --with-sendmail=/usr/lib/sendmail \
6113bcd6 291 %{?with_lfs:--enable-largefiles} \
4edb2079 292 --enable-reduced-depends \
6113bcd6 293 %{!?with_lfs:--enable-tagged-hash}
4f74b1e3 294
8fa20058
JB
295%{__make} all \
296 PATHFILTER=%{_datadir}/news/filter \
b1d87e42 297 PATHCONTROL=%{_datadir}/news/control
62d4f04e 298
5da4f037 299%install
e762d39b 300rm -rf $RPM_BUILD_ROOT
481a5379
JB
301install -d $RPM_BUILD_ROOT/etc/{cron.d,logrotate.d,news/pgp,rc.d/init.d} \
302 $RPM_BUILD_ROOT%{_libdir}/news/auth/generic \
303 $RPM_BUILD_ROOT%{_datadir}/news/auth \
304 $RPM_BUILD_ROOT%{_mandir}/pl/man{1,8} \
305 $RPM_BUILD_ROOT/var/lib/news/backoff \
306 $RPM_BUILD_ROOT/var/log/archive/news \
307 $RPM_BUILD_ROOT/var/spool/news/{cycbuffs,uniover} \
3acdca37 308 $RPM_BUILD_ROOT/home/services/news \
d7f79e4a 309 $RPM_BUILD_ROOT%{systemdtmpfilesdir}
1824cb2f 310
65158df2 311%{__make} install \
04fde985 312 DESTDIR=$RPM_BUILD_ROOT \
6a4c3728 313 BACKUP_OPTION= \
8a30a1a2 314 PATHFILTER=%{_datadir}/news/filter \
1824cb2f 315 PATHCONTROL=%{_datadir}/news/control \
b1d87e42
JR
316 PATHRNEWS=%{_libdir}/news/rnews \
317 PATHAUTHPASSWD=%{_libdir}/news/auth/passwd \
318 PATHAUTHRESOLV=%{_libdir}/news/auth/resolv
319
d7f79e4a 320cp -p samples/readers.conf $RPM_BUILD_ROOT%{_sysconfdir}/readers.conf
210f2d9d 321touch $RPM_BUILD_ROOT%{_sysconfdir}/motd.{innd,nnrpd}
1824cb2f 322
d7f79e4a
ER
323cp -p %{SOURCE1} $RPM_BUILD_ROOT/var/lib/news/active
324cp -p %{SOURCE2} $RPM_BUILD_ROOT/var/lib/news/distributions
325cp -p %{SOURCE3} $RPM_BUILD_ROOT/var/lib/news/newsgroups
326cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/inn
327install -p %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/inn
328install -p %{SOURCE6} $RPM_BUILD_ROOT%{_bindir}/cnfsstat.cron
329cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/logrotate.d/inn
330cp -p %{SOURCE8} $RPM_BUILD_ROOT%{_mandir}/pl/man1/getlist.1
331cp -p %{SOURCE9} $RPM_BUILD_ROOT%{_mandir}/pl/man8/innd.8
332cp -p %{SOURCE10} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf
43b69da4 333
6a4c3728 334%{__rm} $RPM_BUILD_ROOT/var/lib/news/history
4f74b1e3 335
336umask 002
519ae65b 337:> $RPM_BUILD_ROOT%{_sysconfdir}/subscriptions
fb162469
JR
338touch $RPM_BUILD_ROOT/var/lib/news/.news.daily
339touch $RPM_BUILD_ROOT/var/lib/news/active.times
519ae65b 340touch $RPM_BUILD_ROOT/var/lib/news/history
4f74b1e3 341
45c9b47c 342LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} $RPM_BUILD_ROOT%{_bindir}/makehistory \
fb162469 343 -a $RPM_BUILD_ROOT/var/lib/news/active \
6a4c3728 344 -r -f $RPM_BUILD_ROOT/var/lib/news/history || :
bac70e06 345
5c8ecc5f 346# Fix perms in sample directory to avoid bogus dependencies
4f74b1e3 347find samples -name "*.in" -exec chmod a-x {} \;
348
71d10459 349# remove files in conflict with cleanfeed
6a4c3728 350%{__rm} $RPM_BUILD_ROOT%{_datadir}/news/filter/filter_innd.*
71d10459 351
8341cf3e 352# remove unpackaged files
6a4c3728
JB
353%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc
354%{__rm} $RPM_BUILD_ROOT%{_bindir}/rc.news
8341cf3e 355
62d4f04e 356%clean
357rm -rf $RPM_BUILD_ROOT
358
359%post
5c8ecc5f 360if [ "`getent passwd news | cut -d: -f6`" = "/var/spool/news" ]; then
aeef40a9
JB
361 /usr/sbin/usermod -d /home/services/news news
362fi
f6dd3bef 363
cba9f618 364umask 022
e7713629
PG
365
366%{_bindir}/innupgrade %{_sysconfdir}
367
f6dd3bef
TP
368cd /var/lib/news
369if [ ! -f /var/lib/news/history ]; then
713a2e4c 370 # makehistory fails on uninitialized spool(?) - create empty history in such case
f6dd3bef
TP
371 %{_bindir}/makehistory || { echo "Creating empty history"; :> history; }
372 chown news:news history
519ae65b 373 chmod 664 history
5a4b775e
PG
374 %{_bindir}/makedbz -s `wc -l < history` -f history
375 for i in dir hash index pag; do
376 [ -f history.n.$i ] && mv history.n.$i history.$i
377 done
378 chown news:news history.*
379 chmod 644 history.*
62d4f04e 380fi
5c8ecc5f 381
5c8ecc5f 382if [ ! -f /var/lib/news/.news.daily ]; then
f6dd3bef 383 :> /var/lib/news/.news.daily
5c8ecc5f
ER
384 chown news:news /var/lib/news/.news.daily
385 chmod 664 /var/lib/news/.news.daily
386fi
387
822b13cf 388/sbin/chkconfig --add inn
5c8ecc5f 389%service inn restart "inn news server"
62d4f04e 390
391%preun
822b13cf 392if [ "$1" = "0" ]; then
5c8ecc5f 393 %service inn stop
822b13cf 394 /sbin/chkconfig --del inn
395fi
62d4f04e 396
45c9b47c
JB
397%triggerpostun -- inn < 2.4.0
398cp -af %{_sysconfdir}/inn.conf{,.rpmorig}
399sed -e 's/^\(listenonipv6\)/#\1/;s/^bindipv6address/bindaddress6/;s/^sourceipv6address/sourceaddress6/' \
400 %{_sysconfdir}/inn.conf.rpmorig > %{_sysconfdir}/inn.conf
401
aeef40a9
JB
402%post libs -p /sbin/ldconfig
403%postun libs -p /sbin/ldconfig
43b69da4 404
62d4f04e 405%files
a1468b80 406%defattr(644,root,root,755)
45c9b47c 407%doc CONTRIBUTORS ChangeLog INSTALL LICENSE NEWS README TODO doc/[Icehs]*
18b96901 408%attr(700,news,news) %dir /home/services/news
a1468b80 409
1824cb2f 410# DB
8a9401bf
JK
411%attr(770,root,news) %dir /var/lib/news
412%attr(770,root,news) %dir /var/lib/news/backoff
ed7425b9 413%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active
519ae65b 414%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/active.times
ed7425b9
ER
415%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/distributions
416%attr(664,root,news) %config(noreplace) %verify(not md5 mtime size) /var/lib/news/newsgroups
fb162469 417%attr(664,news,news) %ghost /var/lib/news/.news.daily
b1d87e42 418%attr(664,news,news) %ghost /var/lib/news/history
1824cb2f 419
420# LOGS
ed7425b9 421%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/inn
6a4c3728
JB
422# note: innd (and maybe others) creates files in this directory
423%attr(771,root,news) %dir /var/log/news
0ed888d2 424%attr(770,news,news) %dir /var/run/news
4edb2079
JB
425%{systemdtmpfilesdir}/%{name}.conf
426# http status pages
427%attr(775,root,news) %dir /var/lib/news/http
428/var/lib/news/http/innreport.css
1824cb2f 429
430# SPOOL
44489064 431%attr(771,root,news) %dir /var/spool/news
b1d87e42
JR
432%attr(770,root,news) %dir /var/spool/news/archive
433%attr(770,root,news) %dir /var/spool/news/articles
8a9401bf 434%attr(770,root,news) %dir /var/spool/news/cycbuffs
8a9401bf
JK
435%attr(770,root,news) %dir /var/spool/news/incoming
436%attr(770,root,news) %dir /var/spool/news/incoming/bad
437%attr(770,root,news) %dir /var/spool/news/incoming/tmp
b1d87e42 438%attr(770,root,news) %dir /var/spool/news/innfeed
8a9401bf 439%attr(770,root,news) %dir /var/spool/news/outgoing
8a9401bf
JK
440%attr(770,root,news) %dir /var/spool/news/overview
441%attr(770,root,news) %dir /var/spool/news/uniover
1824cb2f 442
443# CRON PARTS
ed7425b9 444%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/inn
1824cb2f 445
446# RC-SCRIPT
bac70e06 447%attr(754,root,root) /etc/rc.d/init.d/inn
1824cb2f 448
449# CONFIGS (INN is a one big config ;-)
8a9401bf 450%attr(755,root,news) %dir %{_sysconfdir}
ed7425b9
ER
451%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.cfg
452%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/actsync.ign
453%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/buffindexed.conf
454%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/control.ctl
6a4c3728 455%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/control.ctl.local
ed7425b9
ER
456%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cycbuff.conf
457%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/distrib.pats
6a4c3728 458%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/distributions
ed7425b9
ER
459%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/expire.ctl
460%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/incoming.conf
461%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inn.conf
210f2d9d 462%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/inn-radius.conf
ed7425b9
ER
463%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innfeed.conf
464%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innreport.conf
6a4c3728
JB
465%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innshellvars.local
466%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innshellvars.pl.local
467%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innshellvars.tcl.local
ed7425b9 468%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/innwatch.ctl
6a4c3728 469%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/localgroups
ed7425b9 470%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/moderators
6a4c3728 471%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motd.innd
210f2d9d 472%{_sysconfdir}/motd.innd.sample
6a4c3728 473%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/motd.nnrpd
210f2d9d 474%{_sysconfdir}/motd.nnrpd.sample
ed7425b9
ER
475%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/news2mail.cf
476%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/newsfeeds
477%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nnrpd.track
478%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nntpsend.ctl
6a4c3728 479%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nocem.ctl
ed7425b9 480%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ovdb.conf
ed7425b9 481%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/passwd.nntp
ed7425b9 482%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readers.conf
6a4c3728 483%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/send-uucp.cf
ed7425b9
ER
484%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/storage.conf
485%attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/subscriptions
7aaadf48 486%attr(755,root,news) %dir %{_sysconfdir}/pgp
1526c35e 487
0a8e57f3 488%attr(755,root,news) %dir %{_datadir}/news
47956f80 489%dir %{_datadir}/news/control
490%dir %{_datadir}/news/filter
8a30a1a2 491
ed7425b9
ER
492%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innreport_inn.pm
493%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars
494%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.pl
495%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/innshellvars.tcl
496
497%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/INN.py
498%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/filter_nnrpd.pl
6a4c3728
JB
499%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd.py
500%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_access.pl
501%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_access.py
ed7425b9
ER
502%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.pl
503%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_auth.py
6a4c3728 504%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/nnrpd_dynamic.py
ed7425b9 505%config(noreplace) %verify(not md5 mtime size) %{_datadir}/news/filter/startup_innd.pl
8a30a1a2 506
bac70e06 507%attr(755,root,root) %{_datadir}/news/control/checkgroups.pl
bac70e06 508%attr(755,root,root) %{_datadir}/news/control/ihave.pl
bac70e06 509%attr(755,root,root) %{_datadir}/news/control/newgroup.pl
bac70e06 510%attr(755,root,root) %{_datadir}/news/control/rmgroup.pl
bac70e06 511%attr(755,root,root) %{_datadir}/news/control/sendme.pl
bac70e06 512%attr(755,root,root) %{_datadir}/news/control/sendsys.pl
bac70e06 513%attr(755,root,root) %{_datadir}/news/control/senduuname.pl
bac70e06 514%attr(755,root,root) %{_datadir}/news/control/version.pl
1824cb2f 515
6a4c3728
JB
516%dir %{perl_vendorlib}/INN
517%{perl_vendorlib}/INN/Config.pm
518%dir %{perl_vendorlib}/INN/Utils
519%{perl_vendorlib}/INN/Utils/Shlock.pm
520
b1d87e42 521%attr(755,root,news) %dir %{_libdir}/news
47956f80 522%dir %{_libdir}/news/auth
523%dir %{_libdir}/news/auth/generic
524%dir %{_libdir}/news/auth/passwd
525%dir %{_libdir}/news/auth/resolv
526%dir %{_libdir}/news/rnews
b1d87e42
JR
527
528%attr(755,root,root) %{_libdir}/news/auth/passwd/*
529%attr(755,root,root) %{_libdir}/news/auth/resolv/*
530%attr(755,root,root) %{_libdir}/news/rnews/*
531
1824cb2f 532# BINARIES
7e183975 533%attr(755,root,root) %{_bindir}/actmerge
534%attr(755,root,root) %{_bindir}/actsync
535%attr(755,root,root) %{_bindir}/actsyncd
536%attr(755,root,root) %{_bindir}/archive
537%attr(755,root,root) %{_bindir}/batcher
538%attr(755,root,root) %{_bindir}/buffchan
6a4c3728 539%attr(755,root,root) %{_bindir}/buffindexed_d
b1d87e42 540%attr(755,root,root) %{_bindir}/cnfsheadconf
7e183975 541%attr(755,root,root) %{_bindir}/cnfsstat
4445c2d2 542%attr(755,root,root) %{_bindir}/cnfsstat.cron
7e183975 543%attr(755,root,root) %{_bindir}/controlbatch
544%attr(755,root,root) %{_bindir}/controlchan
545%attr(755,root,root) %{_bindir}/convdate
7e183975 546%attr(755,root,root) %{_bindir}/ctlinnd
547%attr(755,root,root) %{_bindir}/cvtbatch
45c9b47c 548%attr(755,root,root) %{_bindir}/docheckgroups
7e183975 549%attr(755,root,root) %{_bindir}/expire
7e183975 550%attr(755,root,root) %{_bindir}/expireover
551%attr(755,root,root) %{_bindir}/expirerm
552%attr(755,root,root) %{_bindir}/fastrm
553%attr(755,root,root) %{_bindir}/filechan
7e183975 554%attr(755,root,root) %{_bindir}/getlist
555%attr(755,root,root) %{_bindir}/grephistory
45c9b47c 556%attr(755,root,root) %{_bindir}/imapfeed
6a4c3728
JB
557# suid root to bind sockets
558%attr(4754,root,news) %{_bindir}/innbind
7e183975 559%attr(755,root,root) %{_bindir}/inncheck
560%attr(755,root,root) %{_bindir}/innconfval
561%attr(755,root,root) %{_bindir}/innd
562%attr(755,root,root) %{_bindir}/inndf
1824cb2f 563%attr(755,root,root) %{_bindir}/innfeed
7e183975 564%attr(755,root,root) %{_bindir}/innmail
1824cb2f 565%attr(755,root,root) %{_bindir}/innreport
7e183975 566%attr(755,root,root) %{_bindir}/innstat
45c9b47c 567%attr(755,root,root) %{_bindir}/innupgrade
7e183975 568%attr(755,root,root) %{_bindir}/innwatch
569%attr(755,root,root) %{_bindir}/innxbatch
570%attr(755,root,root) %{_bindir}/innxmit
571%attr(755,root,root) %{_bindir}/mailpost
b1d87e42 572%attr(755,root,root) %{_bindir}/makedbz
7e183975 573%attr(755,root,root) %{_bindir}/makehistory
574%attr(755,root,root) %{_bindir}/mod-active
1824cb2f 575%attr(755,root,root) %{_bindir}/news.daily
b1d87e42 576%attr(755,root,root) %{_bindir}/news2mail
45c9b47c 577%attr(755,root,root) %{_bindir}/ninpaths
1824cb2f 578%attr(755,root,root) %{_bindir}/nnrpd
7e183975 579%attr(755,root,root) %{_bindir}/nntpget
580%attr(755,root,root) %{_bindir}/nntpsend
b1d87e42 581%attr(755,root,root) %{_bindir}/ovdb_*
7e183975 582%attr(755,root,root) %{_bindir}/overchan
6de37b8a 583%attr(755,root,root) %{_bindir}/perl-nocem
1824cb2f 584%attr(755,root,root) %{_bindir}/pgpverify
7e183975 585%attr(755,root,root) %{_bindir}/procbatch
586%attr(755,root,root) %{_bindir}/prunehistory
587%attr(755,root,root) %{_bindir}/pullnews
6a4c3728 588%attr(755,root,root) %{_bindir}/rnews
7e183975 589%attr(755,root,root) %{_bindir}/scanlogs
590%attr(755,root,root) %{_bindir}/scanspool
1824cb2f 591%attr(755,root,root) %{_bindir}/send-ihave
592%attr(755,root,root) %{_bindir}/send-nntp
593%attr(755,root,root) %{_bindir}/send-uucp
45c9b47c 594%attr(755,root,root) %{_bindir}/sendinpaths
7e183975 595%attr(755,root,root) %{_bindir}/sendxbatches
596%attr(755,root,root) %{_bindir}/shlock
597%attr(755,root,root) %{_bindir}/shrinkfile
b1d87e42 598%attr(755,root,root) %{_bindir}/signcontrol
7e183975 599%attr(755,root,root) %{_bindir}/simpleftp
600%attr(755,root,root) %{_bindir}/sm
7e183975 601%attr(755,root,root) %{_bindir}/tally.control
45c9b47c 602%attr(755,root,root) %{_bindir}/tdx-util
6a4c3728 603%attr(755,root,root) %{_bindir}/tinyleaf
7e183975 604%attr(755,root,root) %{_bindir}/writelog
62d4f04e 605
1824cb2f 606# MAN
8ee5b158 607%{_mandir}/man1/convdate.1*
3dc5b213 608%{_mandir}/man1/fastrm.1*
8ee5b158 609%{_mandir}/man1/getlist.1*
610%{_mandir}/man1/grephistory.1*
611%{_mandir}/man1/innconfval.1*
3dc5b213 612%{_mandir}/man1/innmail.1*
8ee5b158 613%{_mandir}/man1/nntpget.1*
45c9b47c 614%{_mandir}/man1/pgpverify.1*
04fde985 615%{_mandir}/man1/pullnews.1*
8ee5b158 616%{_mandir}/man1/rnews.1*
617%{_mandir}/man1/shlock.1*
618%{_mandir}/man1/shrinkfile.1*
b1d87e42 619%{_mandir}/man1/simpleftp.1*
45c9b47c 620%{_mandir}/man1/sm.1*
6a4c3728
JB
621%{_mandir}/man3/INN::Config.3pm*
622%{_mandir}/man3/INN::Utils::Shlock.3pm*
623%{_mandir}/man5/active.5*
624%{_mandir}/man5/active.times.5*
625%{_mandir}/man5/buffindexed.conf.5*
626%{_mandir}/man5/control.ctl.5*
627%{_mandir}/man5/cycbuff.conf.5*
628%{_mandir}/man5/distrib.pats.5*
629%{_mandir}/man5/distributions.5*
630%{_mandir}/man5/expire.ctl.5*
631%{_mandir}/man5/history.5*
632%{_mandir}/man5/incoming.conf.5*
633%{_mandir}/man5/inn.conf.5*
210f2d9d 634%{_mandir}/man5/inn-radius.conf.5*
6a4c3728
JB
635%{_mandir}/man5/innfeed.conf.5*
636%{_mandir}/man5/innwatch.ctl.5*
637%{_mandir}/man5/localgroups.5*
638%{_mandir}/man5/moderators.5*
639%{_mandir}/man5/motd.innd.5*
640%{_mandir}/man5/motd.news.5*
641%{_mandir}/man5/motd.nnrpd.5*
642%{_mandir}/man5/newsfeeds.5*
643%{_mandir}/man5/newsgroups.5*
644%{_mandir}/man5/newslog.5*
645%{_mandir}/man5/nnrpd.track.5*
646%{_mandir}/man5/nntpsend.ctl.5*
647%{_mandir}/man5/nocem.ctl.5*
648%{_mandir}/man5/ovdb.5*
649%{_mandir}/man5/passwd.nntp.5*
6a4c3728
JB
650%{_mandir}/man5/readers.conf.5*
651%{_mandir}/man5/storage.conf.5*
652%{_mandir}/man5/subscriptions.5*
653%{_mandir}/man8/actsync.8*
654%{_mandir}/man8/actsyncd.8*
655%{_mandir}/man8/archive.8*
4edb2079 656%{_mandir}/man8/auth_krb5.8*
6a4c3728
JB
657%{_mandir}/man8/batcher.8*
658%{_mandir}/man8/buffchan.8*
659%{_mandir}/man8/ckpasswd.8*
660%{_mandir}/man8/cnfsheadconf.8*
661%{_mandir}/man8/cnfsstat.8*
662%{_mandir}/man8/controlchan.8*
663%{_mandir}/man8/ctlinnd.8*
664%{_mandir}/man8/cvtbatch.8*
665%{_mandir}/man8/docheckgroups.8*
666%{_mandir}/man8/domain.8*
667%{_mandir}/man8/expire.8*
668%{_mandir}/man8/expireover.8*
669%{_mandir}/man8/expirerm.8*
670%{_mandir}/man8/filechan.8*
671%{_mandir}/man8/ident.8*
672%{_mandir}/man8/imapfeed.8*
673%{_mandir}/man8/innbind.8*
674%{_mandir}/man8/inncheck.8*
675%{_mandir}/man8/innd.8*
676%{_mandir}/man8/inndf.8*
677%{_mandir}/man8/innfeed.8*
678%{_mandir}/man8/innreport.8*
679%{_mandir}/man8/innstat.8*
680%{_mandir}/man8/innupgrade.8*
681%{_mandir}/man8/innwatch.8*
682%{_mandir}/man8/innxbatch.8*
683%{_mandir}/man8/innxmit.8*
684%{_mandir}/man8/inpaths.8*
685%{_mandir}/man8/mailpost.8*
686%{_mandir}/man8/makedbz.8*
687%{_mandir}/man8/makehistory.8*
688%{_mandir}/man8/mod-active.8*
689%{_mandir}/man8/news.daily.8*
690%{_mandir}/man8/news2mail.8*
691%{_mandir}/man8/ninpaths.8*
692%{_mandir}/man8/nnrpd.8*
693%{_mandir}/man8/nntpsend.8*
694%{_mandir}/man8/ovdb_*.8*
695%{_mandir}/man8/overchan.8*
696%{_mandir}/man8/perl-nocem.8*
697%{_mandir}/man8/procbatch.8*
698%{_mandir}/man8/prunehistory.8*
699%{_mandir}/man8/radius.8*
700%{_mandir}/man8/rc.news.8*
701%{_mandir}/man8/scanlogs.8*
702%{_mandir}/man8/scanspool.8*
703%{_mandir}/man8/send-nntp.8*
704%{_mandir}/man8/send-uucp.8*
705%{_mandir}/man8/sendinpaths.8*
706%{_mandir}/man8/tally.control.8*
707%{_mandir}/man8/tdx-util.8*
708%{_mandir}/man8/tinyleaf.8*
709%{_mandir}/man8/writelog.8*
8428426c 710%lang(pl) %{_mandir}/pl/man1/getlist.1*
711%lang(pl) %{_mandir}/pl/man8/innd.8*
bac70e06 712
b8fd1c81 713%files libs
5b590a3d 714%defattr(644,root,root,755)
713a2e4c 715%attr(755,root,root) %{_libdir}/libinn.so.*.*.*
8256dc31 716%attr(755,root,root) %ghost %{_libdir}/libinn.so.6
713a2e4c 717%attr(755,root,root) %{_libdir}/libinnhist.so.*.*.*
4edb2079 718%attr(755,root,root) %ghost %{_libdir}/libinnhist.so.3
713a2e4c 719%attr(755,root,root) %{_libdir}/libstorage.so.*.*.*
4edb2079 720%attr(755,root,root) %ghost %{_libdir}/libstorage.so.3
b8fd1c81 721
62d4f04e 722%files devel
a1468b80 723%defattr(644,root,root,755)
713a2e4c
JB
724%attr(755,root,root) %{_libdir}/libinn.so
725%attr(755,root,root) %{_libdir}/libinnhist.so
726%attr(755,root,root) %{_libdir}/libstorage.so
727%{_libdir}/libinn.la
728%{_libdir}/libinnhist.la
729%{_libdir}/libstorage.la
481a5379 730%{_includedir}/inn
6a4c3728
JB
731%{_mandir}/man3/clientlib.3*
732%{_mandir}/man3/dbz.3*
733%{_mandir}/man3/inndcomm.3*
734%{_mandir}/man3/libauth.3*
735%{_mandir}/man3/libinn.3*
736%{_mandir}/man3/libinnhist.3*
737%{_mandir}/man3/libstorage.3*
738# XXX: too generic name?
739%{_mandir}/man3/list.3*
740%{_mandir}/man3/qio.3*
741# XXX: too generic name?
742%{_mandir}/man3/tst.3*
743%{_mandir}/man3/uwildmat.3*
62d4f04e 744
8ee5b158 745%files static
e762d39b 746%defattr(644,root,root,755)
713a2e4c
JB
747%{_libdir}/libinn.a
748%{_libdir}/libinnhist.a
749%{_libdir}/libstorage.a
8ee5b158 750
62d4f04e 751%files -n inews
f7754046 752%defattr(644,root,root,755)
366a13e8 753%attr(755,root,news) %{_bindir}/inews
8ee5b158 754%{_mandir}/man1/inews.1*
This page took 0.186338 seconds and 4 git commands to generate.