1 # TODO: review i and tests (especially .inet), %%post, %%preun,
2 # %%postun scripts for NewsCache-{standalone,inet}, fix
3 # subpackages group descriptions.
6 Summary(pl): nisza dla newsów
12 Group: Applications/News
13 Source0: http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz
16 # Source0-md5: 8cd84c15429fbf70b9f24ab877387ab3
17 Patch0: %{name}-ac_no_debug_flag_hack.patch
18 # http://cmeerw.org/debian/
19 # Patch1: newscache_1.1.92-0cmeerw.diff.gz
20 # http://download.cmeerw.net/debian/newscache/source/newscache_1.1.92-0cmeerw.diff.gz
21 URL: http://members.aon.at/hstraub/linux/newscache
22 BuildRequires: socket++-devel
23 BuildRequires: libwrap-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define _sysconfdir /etc/%{name}
29 NewsCache is a free cache server for USENET News. NewsCache acts to
30 news reading clients like a news server, except that it stores only
31 those articles that have been requested by at least one client.
32 NewsCache targets problems of the current News System like network
33 bandwidth consumption or the IO load caused by news clients.
36 NewsCache to wolnodostêpny serwer keszuj±cy dla sieci USENET.
37 NewsCache jest widziany jako serwer nntp, ale przechowuje tylko te
38 artyku³y o które czya³ choæ jeden klient. NewsCache rozwi±zuje
39 problemy takie jak zajmowanie pasma czy obci±¿enie systemu We/Wy
40 spowodowane obs³ug± klientów news.
43 Summary: NewsCache standalone mode
44 Summary(pl): NewsCache w trybie samodzielnym
45 Group: Development/Libraries
46 Requires: %{name} = %{version}-%{release}
47 Obsoletes: %{name}-inetd
49 %description standalone
50 Run NewsCache in the Standalone mode
52 %description standalone -l pl
53 Uruchamia NewsCache w trybie Standalone
56 Summary: NewsCache inetd mode
57 Summary(pl): NewsCache w trybie inetd
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
61 Obsoletes: %{name}-standalone
64 Run NewsCache from the inetd.
66 %description inetd -l pl
67 Uruchamia NewsCache pod konrol± inetd.
75 %define specflags '-O0'
85 rm -rf $RPM_BUILD_ROOT
88 DESTDIR=$RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{/var/cache/newscache,{%_sysconfdir},/etc/{rc.d/init.d,sysconfig/rc-inetd}}
90 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/newscache
91 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/newscache
92 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf
93 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth
96 rm -rf $RPM_BUILD_ROOT
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README THANKS TODO
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_sbindir}/*
105 %attr(755,news,news) %dir /var/cache/newscache
107 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
110 %defattr(644,root,root,755)
111 %attr(640,root,root) /etc/sysconfig/rc-inetd/newscache
114 %defattr(644,root,root,755)
115 %attr(754,root,root) /etc/rc.d/init.d/newscache