2 Summary(pl): nisza dla newsów
8 Group: Applications/News
9 Source0: http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz
11 # Source0-md5: 8cd84c15429fbf70b9f24ab877387ab3
12 Patch0: %{name}-ac_no_debug_flag_hack.patch
13 # http://cmeerw.org/debian/
14 # Patch1: newscache_1.1.92-0cmeerw.diff.gz
15 # http://download.cmeerw.net/debian/newscache/source/newscache_1.1.92-0cmeerw.diff.gz
16 URL: http://members.aon.at/hstraub/linux/newscache
17 BuildRequires: socket++-devel
18 BuildRequires: libwrap-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define _sysconfdir /etc/%{name}
24 NewsCache is a free cache server for USENET News. NewsCache acts to
25 news reading clients like a news server, except that it stores only
26 those articles that have been requested by at least one client.
27 NewsCache targets problems of the current News System like network
28 bandwidth consumption or the IO load caused by news clients.
31 NewsCache to wolnodostêpny serwer keszuj±cy dla sieci USENET.
32 NewsCache jest widziany jako serwer nntp, ale przechowuje tylko te
33 artyku³y o które czya³ choæ jeden klient. NewsCache rozwi±zuje
34 problemy takie jak zajmowanie pasma czy obci±¿enie systemu We/Wy
35 spowodowane obs³ug± klientów news.
38 Summary: NewsCache standalone mode
39 Summary(pl): NewsCache w trybie samodzielnym
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Conflicts: %{name}-inetd
44 %description standalone
45 Run NewsCache in the Standalone mode
47 %description standalone -l pl
48 Uruchamia NewsCache w trybie Standalone
51 Summary: NewsCache inetd mode
52 Summary(pl): NewsCache w trybie inetd
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
56 Conflicts: %{name}-inetd
59 Run NewsCache from the inetd.
61 %description inetd -l pl
62 Uruchamia NewsCache pod konrol± inetd
70 %define specflags '-O0'
80 rm -rf $RPM_BUILD_ROOT
83 DESTDIR=$RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT{/var/cache/newscache/,{%_sysconfdir},/etc/rc.d/init.d/}
85 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/newscache
86 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.conf
87 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth-dist $RPM_BUILD_ROOT%{_sysconfdir}/newscache.auth
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
94 %doc AUTHORS ChangeLog NEWS README THANKS TODO
95 %doc %{_datadir}/info/NewsCache.info.gz
96 %attr(755,root,root) %{_bindir}/*
97 %attr(755,root,root) %{_sbindir}/*
100 %attr(755,news,news) %dir /var/cache/newscache
101 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
104 %defattr(644,root,root,755)
107 %defattr(644,root,root,755)
108 %attr(754,root,root) /etc/rc.d/init.d/newscache
110 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*