1 %include /usr/lib/rpm/macros.perl
2 Summary: Support for compressed usenet feeds
3 Summary(pl): Obs³uga feedu kompresowanych newsów
8 Vendor: feed-pl@egroups.com /subscription required or own server/
9 Group: Applications/News
10 Source0: http://newsy.media-com.com.pl/scripts2/%{name}-%{version}.tar.gz
11 Source1: http://newsy.media-com.com.pl/scripts2/server-script/fetcher
12 # taken and rpm2cpioed from http://www.media-com.com.pl/~radecki/scripts/feeder-0.99-pre6.src.rpm
13 Source2: feeder-0.99.tar.gz
14 Source3: http://newsy.karnet.pl/sd
15 Source4: http://newsy.karnet.pl/sd.conf
16 URL: http://newsy.media-com.com.pl/
17 Patch0: %{name}-0.99-url_n_notermcap.patch
18 BuildRequires: rpm-perlprov >= 3.0.3-16
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 A set of client scripts for downloading compressed newsfeed and
24 transfering it to a local (proxy)newsserver.
27 Zestaw skryptów klienckich do ¶ci±gania i transferu do lokalnego
28 (proxy)newsserwera postów w kompresowanych paczkach.
31 Summary: Support for compressed usenet feeds - server side
32 Summary(pl): Obs³uga feedu kompresowanych newsów - skrypt serwerowy
34 Group: Applications/News
37 A set of server scripts for downloading compressed newsfeed and
38 transfering it to a local (proxy)newsserver.
40 %description server -l pl
41 Zestaw skryptów serwerowych do ¶ci±gania i transferu do lokalnego
42 (proxy)newsserwera postów w kompresowanych paczkach i udostêpniania
46 Summary: Support for compressed usenet feeds - old unauthorizing client
47 Summary(pl): Obs³uga feedu kompresowanych newsów - stary nieautryzuj±cy siê klient
49 Group: Applications/News
52 A set of client scripts for downloading compressed newsfeed and
53 transfering it to a local (proxy)newsserver, this one does not require
54 authorizing with server, but it only downloads articles, you need some
55 nttp utilities to post news. (rpost might be good start)
57 %description old -l pl
58 Zestaw skryptów klienckich do ¶ci±gania i transferu do lokalnego
59 newsserwera; skrypty te nie wymagaj± autoryzacji z serwerem news, ale
60 nie umo¿liwiaj± wysy³ania artyku³ów, konieczne s± dodatkowe narzêdzia,
61 aby wysy³aæ artyku³y do zdalnych serwerów. (rpost mo¿e byæ dobrym
65 Summary: Automagic get-news on ppp-up
66 Summary(pl): Automagiczne pobieranie paczek po podniesieniu ppp
67 Group: Applications/News
68 Requires: /usr/bin/suckem_perl
69 Requires: /usr/bin/feed2inn
72 This will automagicaly fetch news after ppp-up.
74 %description old-ppp -l pl
75 Ten pakiet automagicznie ¶ci±gnie paczki po ppp-up.
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/interfaces/up.d/ppp \
86 $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{perl_sitelib}/Feeder} \
87 $RPM_BUILD_ROOT%{_mandir}/pl/man{1,5,7} \
88 $RPM_BUILD_ROOT%{_var}/spool/{%{name}2,%{name}}/{archive,received,old,tmp}
90 install etc/feeder.conf $RPM_BUILD_ROOT%{_sysconfdir}
91 install usr/lib/perl5/site_perl/Feeder/feeder.pm $RPM_BUILD_ROOT%{perl_sitelib}/Feeder
92 install usr/local/bin/* $RPM_BUILD_ROOT%{_bindir}
93 install %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}
94 install usr/local/share/man/pl/man1/* $RPM_BUILD_ROOT%{_mandir}/pl/man1
95 install usr/local/share/man/pl/man5/* $RPM_BUILD_ROOT%{_mandir}/pl/man5
96 install usr/local/share/man/pl/man7/* $RPM_BUILD_ROOT%{_mandir}/pl/man7
97 install var/spool/feeder2/* $RPM_BUILD_ROOT%{_var}/spool/%{name}2
99 install %{name}-0.99/usr/bin/* $RPM_BUILD_ROOT%{_bindir}
100 install %{name}-0.99/var/spool/news/feeder/last $RPM_BUILD_ROOT%{_var}/spool/%{name}
101 install %{name}-0.99/var/spool/news/feeder/grupy $RPM_BUILD_ROOT%{_var}/spool/%{name}/groups
103 cat << EOF > $RPM_BUILD_ROOT/etc/sysconfig/interfaces/up.d/ppp/feeder
106 ( ( sleep 15; /usr/bin/suckem_perl -q ; /usr/bin/feed2inn -a ) 2>&1 | mail \
107 -s "feeder ppp-on, started on $(date)" news ) &
112 rm -rf $RPM_BUILD_ROOT
115 %defattr(644,root,root,755)
116 %doc ChangeLog README
117 %attr(755,root,root) %{_bindir}/*
118 %{perl_sitelib}/Feeder
119 %attr(660,root,news) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
120 %attr(755,news,news) %dir %{_var}/spool/%{name}2
121 %attr(2775,news,news) %dir %{_var}/spool/%{name}2/archive
122 %attr(2775,news,news) %dir %{_var}/spool/%{name}2/received
123 %attr(664,news,news) %config(noreplace) %verify(not md5 size mtime) %{_var}/spool/%{name}2/groups
124 %attr(664,news,news) %config(noreplace) %verify(not md5 size mtime) %{_var}/spool/%{name}2/killfile
125 %lang(pl) %{_mandir}/pl/man?/*
128 %defattr(644,root,root,755)
129 %attr(755,news,news) %{_sbindir}/*
132 %defattr(644,root,root,755)
133 %doc feeder-0.99/TODO
134 %attr(755,root,root) %{_bindir}/feed2inn
135 %attr(755,root,root) %{_bindir}/feed2slrnpull_a
136 %attr(755,root,root) %{_bindir}/feed2slrnpull_b
137 %attr(755,root,root) %{_bindir}/news.put
138 %attr(755,root,root) %{_bindir}/news.send
139 %attr(755,root,root) %{_bindir}/suckem_perl
140 %attr(755,root,root) %{_bindir}/suckem_sh
141 %attr(755,news,news) %dir %{_var}/spool/%{name}
142 %attr(2775,news,news) %dir %{_var}/spool/%{name}/old
143 %attr(2775,news,news) %dir %{_var}/spool/%{name}/received
144 %attr(2775,news,news) %dir %{_var}/spool/%{name}/tmp
145 %attr(664,news,news) %config(noreplace) %verify(not md5 size mtime) %{_var}/spool/%{name}/groups
146 %attr(664,news,news) %config(noreplace) %verify(not md5 size mtime) %{_var}/spool/%{name}/last
147 %lang(pl) %{_mandir}/pl/man?/*
150 %attr(755,root,root) %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/interfaces/up.d/ppp/feeder