]> git.pld-linux.org Git - packages/NewsCache.git/blob - NewsCache.spec
- added
[packages/NewsCache.git] / NewsCache.spec
1 Summary:        News Cache
2 Summary(pl):    nisza dla newsów
3 Name:           NewsCache
4 Version:        1.1.92
5 Release:        1
6 Epoch:          0
7 License:        GPL
8 Group:          Applications/News
9 Source0:        http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz
10 Source1:        %{name}-init
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)
20
21 %define         _sysconfdir     /etc/%{name}
22
23 %description
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.
29
30 %description -l pl
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.
36
37 %package standalone
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
43
44 %description standalone
45 Run NewsCache in the Standalone mode
46
47 %description standalone -l pl
48 Uruchamia NewsCache w trybie Standalone
49
50 %package inetd
51 Summary:        NewsCache inetd mode
52 Summary(pl):    NewsCache w trybie inetd
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       rc-inetd
56 Conflicts:      %{name}-inetd
57
58 %description inetd
59 Run NewsCache from the inetd.
60
61 %description inetd -l pl
62 Uruchamia NewsCache pod konrol± inetd
63
64 %prep
65 %setup -q
66 %patch0 -p0
67 #%patch1 -p1
68
69 %build
70 %define specflags '-O0'
71 %{__aclocal}
72 %{__autoconf}
73 %{__autoheader}
74 %{__automake}
75 %configure      \
76 --enable-notcached
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
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
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
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}/*
98 %{_mandir}/man?/*
99 %dir %{_sysconfdir}
100 %attr(755,news,news) %dir       /var/cache/newscache
101 %attr(644,news,news) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
102
103 %files inetd
104 %defattr(644,root,root,755)
105
106 %files standalone
107 %defattr(644,root,root,755)
108 %attr(754,root,root) /etc/rc.d/init.d/newscache
109 %{_infodir}/*
110 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
This page took 0.083323 seconds and 3 git commands to generate.