]> git.pld-linux.org Git - packages/uucp.git/blob - uucp.spec
- unified rc-inetd usage (via %service), adapterized
[packages/uucp.git] / uucp.spec
1 Summary:        GNU uucp
2 Summary(de):    GNU-uucp
3 Summary(es):    Uucp de la GNU
4 Summary(fr):    uucp de GNU
5 Summary(pl):    GNU uucp
6 Summary(pt_BR): Uucp da GNU
7 Summary(ru):    GNU uucp
8 Summary(tr):    GNU uucp sistemi
9 Summary(uk):    GNU uucp
10 Name:           uucp
11 Version:        1.07
12 Release:        3
13 License:        GPL
14 Group:          Networking
15 Source0:        ftp://ftp.gnu.org/pub/gnu/uucp/%{name}-%{version}.tar.gz
16 # Source0-md5:  64c54d43787339a7cced48390eb3e1d0
17 Source1:        %{name}.logrotate
18 Source2:        %{name}.inetd
19 Source3:        %{name}.crontab
20 Source4:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
21 # Source4-md5:  47994a0f9fc7acaadc5cfff6b01f6728
22 Patch0:         %{name}-misc.patch
23 Patch1:         %{name}-debian.patch
24 Patch2:         %{name}-ac.patch
25 Patch3:         %{name}-pipe.patch
26 Patch4:         %{name}-no_libnsl.patch
27 URL:            http://lists.cirr.com/cgi-bin/wilma/taylor-uucp/
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  rpmbuild(macros) >= 1.268
31 BuildRequires:  texinfo
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 UUCP is a Unix to Unix transfer mechanism. It is used primarily for
36 remote sites to download and upload email and news files to local
37 machines. If you didn't already know that, you probably don't need
38 this package installed. :-)
39
40 %description -l de
41 UUCP ist ein Unix-nach-Unix-Übertragungsprotokoll. Es wird vor allem
42 verwendet, um E-Mail- und News-Dateien von entfernten auf lokale
43 Rechner herunter- bzw. umgekehrt hochzuladen. Wie Sie wahrscheinlich
44 wissen, müssen Sie das Paket wahrscheinlich nicht installieren. :-)
45
46 %description -l es
47 UUCP es un mecanismo de transferencia de Unix para Unix. Se usa
48 primeramente en sitios remotos para hacer download y upload de
49 archivos de mail y news para máquinas locales. Si no lo sabias,
50 probablemente no necesitas de este paquete instalado. :-)
51
52 %description -l fr
53 UUCP est un mécanisme de transfert d'UNIX à UNIX. Il est
54 principalement utilisés par les sites de connexion pour télécharger ou
55 envoyer des courriers èlèctroniques et des nouvelles sur les machines
56 locales. Si vous ne saviez pas déja cela, vous n'avez probablement pas
57 besoin d'insatller ce package.
58
59 %description -l pl
60 UUCP (Unix to Unix Copy Protocol) jest jednym z podstawowych
61 protoko³ów systemu Linux. U¿ywany jest przede wszystkim do wysy³ania i
62 pobierania przesy³ek newsów oraz poczty elektronicznej miêdzy
63 maszynami po³±czonymi np. przez modem.
64
65 %description -l pt_BR
66 UUCP é um mecanismo de transferência de Unix para Unix. Ele é usado
67 primeiramente em sites remotos para fazer download e upload de
68 arquivos de mail e news para máquinas locais. Se você não sabia disso,
69 você provavelmente não precisa deste pacote instalado. :-)
70
71 %description -l ru
72 UUCP - ÜÔÏ ÍÅÈÁÎÉÚÍ ÐÅÒÅÄÁÞÉ ÆÁÊÌÏ× ÍÅÖÄÕ UNIX-ÓÉÓÔÅÍÁÍÉ. ÷ ÏÓÎÏ×ÎÏÍ
73 ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÏÂÍÅÎÁ ÐÏÞÔÏÊ É ÔÅÌÅËÏÎÆÅÒÅÎÃÉÑÍÉ ÍÅÖÄÕ ÍÁÛÉÎÁÍÉ.
74 åÓÌÉ ×Ù ÜÔÏÇÏ ÎÅ ÚÎÁÌÉ, ×ÁÍ ÜÔÏÔ ÐÁËÅÔ ÎÅ ÎÕÖÅΠ:-))
75
76 %description -l tr
77 UUCP bir Unix'ten Unix'e iletim mekanizmasýdýr. Uzak sitelerden yerel
78 sisteme e-posta ve haber öbekleri aktarýmý için kullanýlýr. Bunun ne
79 olduðunu bilmiyorsanýz, büyük olasýlýkla iþinize de yaramayacaktýr.
80 :-)
81
82 %description -l uk
83 UUCP - ÃÅ ÍÅÈÁΦÚÍ ÐÅÒÅÄÁÞ¦ ÆÁÊ̦נͦ֠UNIX-ÓÉÓÔÅÍÁÍÉ. úÄŦÌØÛÏÇÏ
84 ×ÉËÏÒÉÓÔÏ×Õ¤ÔØÓÑ ÄÌÑ ÏÂͦÎÕ ÐÏÛÔÏÀ ÔÁ ÔÅÌÅËÏÎÆÅÒÅÎæÑÍɠͦ֠ÍÁÛÉÎÁÍÉ.
85 ñËÝÏ ×É ÃØÏÇÏ ÎÅ ÚÎÁÌÉ, ×ÁÍ ÃÅÊ ÐÁËÅÔ ÎÅ ÐÏÔÒ¦ÂÅΠ:-))
86
87 %package server
88 Summary:        GNU uucp server
89 Summary(de):    GNU-uucp
90 Summary(fr):    uucp de GNU
91 Summary(pl):    Serwer GNU uucp
92 Group:          Networking
93 Requires:       %{name} = %{version}
94
95 %description server
96 GNU uucp server.
97
98 %description server -l pl
99 Serwer GNU uucp.
100
101 %prep
102 %setup -q
103 %patch0 -p1
104 %patch1 -p1
105 %patch2 -p1
106 %patch3 -p1
107 %patch4 -p1
108
109 find . -name "*.perlpath" | xargs rm -f
110
111 %build
112 %{__aclocal}
113 %{__autoconf}
114 %{__automake}
115 %configure \
116         --with-newconfigdir=%{_sysconfdir}/uucp \
117         --with-oldconfigdir=%{_sysconfdir}/uucp/oldconfig
118
119 %{__make}
120
121 %install
122 rm -rf $RPM_BUILD_ROOT
123
124 install -d $RPM_BUILD_ROOT/var/{lock/uucp,spool/{uucp,uucppublic}}
125 install -d $RPM_BUILD_ROOT/var/log/{uucp,archiv/uucp}
126 install -d $RPM_BUILD_ROOT/etc/{sysconfig/rc-inetd,cron.d,logrotate.d}
127 install -d $RPM_BUILD_ROOT%{_sysconfdir}/uucp/oldconfig
128
129 %{__make} install \
130         DESTDIR=$RPM_BUILD_ROOT \
131         OWNER=$(id -u)
132
133 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/uucp
134 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/uucp
135 install %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/uucp
136 bzip2 -dc %{SOURCE4} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
137
138 # Create empty files
139 for n in Log Stats Debug; do
140         touch $RPM_BUILD_ROOT/var/log/uucp/$n
141 done
142
143 for i in dial passwd port dialcode sys call ; do
144 cat > $RPM_BUILD_ROOT%{_sysconfdir}/uucp/$i <<EOF
145 # This is an example of a $i file. This file have the syntax compatible
146 # with Taylor UUCP (not HDB, not anything else). Please check uucp
147 # documentation if you are not sure how Taylor config files are supposed to
148 # look like. Edit it as appropriate for your system.
149
150 # Everything after a '#' character is a comment.
151 EOF
152 done
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %post
158 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
159
160 %post server
161 %service -q rc-inetd reload
162
163 %postun
164 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
165
166 %postun server
167 if [ "$1" = 0 ]; then
168         %service -q rc-inetd reload
169 fi
170
171 %files
172 %defattr(644,root,root,755)
173 %doc AUTHORS ChangeLog NEWS README TODO sample contrib
174
175 %attr(750,uucp,root) %dir %{_sysconfdir}/uucp
176 %attr(755,uucp,root) %dir %{_sysconfdir}/uucp/oldconfig
177
178 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uucp/ca*
179 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uucp/di*
180 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uucp/p*
181 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uucp/sys
182
183 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/uucp
184 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}
185
186 %attr(4554,uucp,uucp) %{_bindir}/cu
187 %attr(4554,uucp,uucp) %{_bindir}/uucp
188 %attr(755,root,root) %{_bindir}/uulog
189 %attr(4554,uucp,uucp) %{_bindir}/uuname
190 %attr(755,root,root) %{_bindir}/uupick
191 %attr(4554,uucp,uucp) %{_bindir}/uustat
192 %attr(755,root,root) %{_bindir}/uuto
193 %attr(4554,uucp,uucp) %{_bindir}/uux
194
195 %{_infodir}/uucp.*
196
197 %{_mandir}/man[18]/*
198 %lang(fi) %{_mandir}/fi/man[18]/*
199 %lang(ja) %{_mandir}/ja/man[18]/*
200 %lang(pl) %{_mandir}/pl/man[18]/*
201
202 %attr(755,uucp,uucp) %{_sbindir}/uuchk
203 %attr(4554,uucp,uucp) %{_sbindir}/uucico
204 %attr(755,uucp,uucp) %{_sbindir}/uuconv
205 %attr(755,root,root) %{_sbindir}/uusched
206 %attr(4554,uucp,uucp) %{_sbindir}/uuxqt
207
208 %attr(755,uucp,uucp) %dir /var/spool/uucppublic
209 %attr(755,uucp,uucp) %dir /var/spool/uucp
210
211 %attr(750,uucp,root) %dir /var/log/uucp
212 %attr(750,uucp,root) %dir /var/log/archiv/uucp
213 %attr(750,uucp,root) %dir /var/lock/uucp
214 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) /var/log/uucp/Debug
215 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) /var/log/uucp/Log
216 %attr(640,uucp,root) %config(noreplace) %verify(not md5 mtime size) /var/log/uucp/Stats
217
218 %files server
219 %defattr(644,root,root,755)
220 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/uucp
This page took 0.146341 seconds and 3 git commands to generate.