]> git.pld-linux.org Git - packages/NewsCache.git/blob - NewsCache.spec
- removed one duplicated %%changelog section.
[packages/NewsCache.git] / NewsCache.spec
1 # TODO: review i and tests (especially .inet), %%post, %%preun,
2 #       %%postun scripts for NewsCache-{standalone,inet}, fix 
3 #       subpackages group descriptions.
4 #
5 Summary:        News Cache
6 Summary(pl):    nisza dla newsów
7 Name:           NewsCache
8 Version:        1.1.92
9 Release:        1
10 Epoch:          0
11 License:        GPL
12 Group:          Applications/News
13 Source0:        http://www.hstraub.at/linux/downloads/src/%{name}-%{version}.tar.gz
14 Source1:        %{name}.init
15 Source2:        %{name}.inet
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)
25
26 %define         _sysconfdir     /etc/%{name}
27
28 %description
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.
34
35 %description -l pl
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.
41
42 %package standalone
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
48
49 %description standalone
50 Run NewsCache in the Standalone mode
51
52 %description standalone -l pl
53 Uruchamia NewsCache w trybie Standalone
54
55 %package inetd
56 Summary:        NewsCache inetd mode
57 Summary(pl):    NewsCache w trybie inetd
58 Group:          Development/Libraries
59 Requires:       %{name} = %{version}-%{release}
60 Requires:       rc-inetd
61 Obsoletes:      %{name}-standalone
62
63 %description inetd
64 Run NewsCache from the inetd.
65
66 %description inetd -l pl
67 Uruchamia NewsCache pod konrol± inetd.
68
69 %prep
70 %setup -q
71 %patch0 -p0
72 #%patch1 -p1
73
74 %build
75 %define specflags '-O0'
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure      \
81         --enable-notcached
82 %{__make}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
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
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %files
99 %defattr(644,root,root,755)
100 %doc AUTHORS ChangeLog NEWS README THANKS TODO
101 %doc %{_infodir}/*
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_sbindir}/*
104 %{_mandir}/man?/*
105 %attr(755,news,news) %dir       /var/cache/newscache
106 %dir %{_sysconfdir}
107 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*
108
109 %files inetd
110 %defattr(644,root,root,755)
111 %attr(640,root,root) /etc/sysconfig/rc-inetd/newscache
112
113 %files standalone
114 %defattr(644,root,root,755)
115 %attr(754,root,root) /etc/rc.d/init.d/newscache
This page took 0.066964 seconds and 3 git commands to generate.