]> git.pld-linux.org Git - SPECS.git/blob - noffle.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / noffle.spec
1 Summary:        NNTP server for small sites
2 Summary(pl.UTF-8):      Serwer NNTP przeznaczony dla niedużych serwerów
3 Name:           noffle
4 Version:        1.0.1
5 Release:        3
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://dl.sourceforge.net/noffle/%{name}-%{version}.tar.gz
9 # Source0-md5:  fe6b49a43e7fd0341b055d558e1a8202
10 Source1:        %{name}.inetd
11 Patch0:         %{name}.DESTDIR.patch
12 Patch1:         %{name}-overflows.patch
13 URL:            http://noffle.sourceforge.net/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gdbm-devel
17 BuildRequires:  libtool
18 BuildRequires:  rpmbuild(macros) >= 1.268
19 Requires(post,postun):  rc-inetd
20 Requires:       inetdaemon
21 Provides:       nntpserver
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Noffle is a Usenet news server optimized for few users and low speed
26 dial-up connections to the Internet. It acts as a server to news
27 clients running on the local host, but gets its news feed by acting as
28 a client to a remote server.
29
30 %description -l pl.UTF-8
31 Noffle to serwer grup dyskusyjnych usenet zoptymalizowany pod kątem
32 kilku użytkowników i wolnego łącza komutowanego do internetu.
33 Zachowuje się on jako serwer dla klientów uruchamianych na maszynie
34 lokalnej, a wiadomości ściąga łącząc się jako klient do zdalnego
35 serwera.
36
37 %prep
38 %setup -q
39 %patch0 -p0
40 %patch1 -p1
41
42 %build
43 rm -f missing
44 %{__libtoolize}
45 %{__aclocal}
46 %{__autoconf}
47 %{__automake}
48 %configure
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man8} \
55         $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/sysconfig/rc-inetd} \
56         $RPM_BUILD_ROOT%{_var}/spool/%{name}/{data,global,lock,outgoing,overview,requested}
57 touch $RPM_BUILD_ROOT%{_var}/spool/%{name}/{fetchlist,groupinfo.lastupdate}
58
59 %{__make} install \
60         DESTDIR=$RPM_BUILD_ROOT \
61         DOCDIR=$RPM_BUILD_ROOT%{_datadir}/doc/%{name}
62
63 install %{name}.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
64 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/nntpd
65
66 touch $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/groupinfo
67 #rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/config.example
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %post
73 %service -q rc-inetd reload
74
75 %postun
76 if [ "$1" = 0 ]; then
77         %service -q rc-inetd reload
78 fi
79
80 %files
81 %defattr(644,root,root,755)
82 %doc README TODO NEWS INSTALL AUTHORS docs/FAQ docs/INTERNALS docs/NOTES
83 %attr(770,root,news) %dir %{_sysconfdir}/noffle
84 %attr(664,news,news) %ghost %{_sysconfdir}/noffle/*
85 %attr(640,root,news) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
86 %attr(750,root,news) %{_bindir}/noffle
87 %attr(2770,news,news) %dir %{_var}/spool/%{name}/data
88 %attr(2770,news,news) %dir %{_var}/spool/%{name}/global
89 %attr(2770,news,news) %dir %{_var}/spool/%{name}/lock
90 %attr(2770,news,news) %dir %{_var}/spool/%{name}/outgoing
91 %attr(2770,news,news) %dir %{_var}/spool/%{name}/overview
92 %attr(2770,news,news) %dir %{_var}/spool/%{name}/requested
93 %attr(2770,news,news) %dir %{_var}/spool/%{name}
94 %attr(640,root,root) /etc/sysconfig/rc-inetd/nntpd
95 %{_mandir}/man1/*
96 %{_mandir}/man5/*
This page took 0.138925 seconds and 3 git commands to generate.