/[smeserver]/rpms/netatalk/sme7/netatalk.spec
ViewVC logotype

Contents of /rpms/netatalk/sme7/netatalk.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Wed Apr 9 13:51:51 2008 UTC (16 years, 1 month ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -0 lines
Add Id to top of spec

1 # $Id$
2
3 %define initdir /etc/rc.d/init.d
4
5 Summary: AppleTalk networking programs
6 Name: netatalk
7 Version: 2.0.3
8 Release: 6%{?dist}
9 License: GPL
10 Group: System Environment/Daemons
11 Source0: http://download.sourceforge.net/netatalk/netatalk-%{version}.tar.bz2
12 #Source1: atalk.init
13 #Source2: netatalk.config
14 #Source3: AppleVolumes.system
15 Source4: ICDumpSuffixMap
16 Patch0: netatalk-%{version}.rh.init.patch
17
18 Epoch: 3
19 Obsoletes: netatalk-1.5.5
20 Url: http://netatalk.sourceforge.net/
21 Prereq: /sbin/chkconfig, /sbin/service
22 Requires: pam >= 0.56, /etc/pam.d/system-auth, tcp_wrappers, openssl, cracklib
23 BuildRequires: cracklib openssl-devel pam quota libtool automake autoconf db4-devel
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%(id -u -n)root
25
26 %description
27 This package enables Linux to talk to Macintosh computers via the
28 AppleTalk networking protocol. It includes a daemon to allow Linux
29 to act as a file server over EtherTalk or IP for Mac's.
30
31 %package devel
32 Summary: Headers and static libraries for Appletalk development
33 Group: Development/Libraries
34
35 %description devel
36 This package contains the header files, and static libraries for building
37 Appletalk networking programs.
38
39 %prep
40 %setup -q
41 %patch0 -p 0
42
43 %build
44 touch AUTHORS
45 #libtoolize --force
46 #aclocal -I macros
47 #automake --add-missing
48 #autoconf
49 #autoheader
50 CFLAGS="$RPM_OPT_FLAGS" %configure \
51 --enable-redhat \
52 --disable-cups \
53 --with-mutex="x86/gcc-assembly" \
54 --infodir=%{_infodir} \
55 --mandir=%{_mandir} \
56 --sysconfdir=/etc \
57 --with-uams-path=%{_libdir} \
58 --with-pkgconfdir=/etc/atalk/
59
60 # --with-pkgconfdir=/etc/atalk/ --with-cracklib --with-pam \
61 # --with-shadow --with-tcp-wrappers --with-ssl --with-flock-locksi \
62 # --with-uams-path=%{_libdir}
63
64 # Grrrr. Fix broken libtool/autoFOO Makefiles.
65 #if [ "%{_lib}" != lib ]; then
66 # find . -name Makefile | xargs perl -pi \
67 # -e 's,-L/usr/lib,-L%{_libdir},g'
68 # find . -name Makefile | xargs perl -pi \
69 # -e 's,-L/lib,-L/%{_lib},g'
70 #fi
71
72 make all
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 mkdir -p $RPM_BUILD_ROOT/etc/atalk/{uams,nls}
78 mkdir -p $RPM_BUILD_ROOT/etc/pam.d
79 mkdir -p $RPM_BUILD_ROOT%{initdir}
80 mkdir -p $RPM_BUILD_ROOT/usr/include/{netatalk,atalk}
81
82 make DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install
83
84 install -m644 config/AppleVolumes.default $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.default
85 install -m644 config/afpd.conf $RPM_BUILD_ROOT/etc/atalk/afpd.conf
86 install -m644 config/atalkd.conf $RPM_BUILD_ROOT/etc/atalk/atalkd.conf
87 install -m644 config/papd.conf $RPM_BUILD_ROOT/etc/atalk/papd.conf
88 install -m644 config/netatalk.pamd $RPM_BUILD_ROOT/etc/pam.d/netatalk
89 install -m644 %{SOURCE4} .
90 #install -m644 %{SOURCE3} $RPM_BUILD_ROOT/etc/atalk/AppleVolumes.system
91 #install -m644 %{SOURCE2} $RPM_BUILD_ROOT/etc/atalk/netatalk.conf
92 install -m755 distrib/initscripts/rc.atalk.redhat $RPM_BUILD_ROOT%{initdir}/atalk
93 cp include/atalk/*.h $RPM_BUILD_ROOT/usr/include/atalk/
94 cp sys/netatalk/*.h $RPM_BUILD_ROOT/usr/include/netatalk/
95
96 rm -f $RPM_BUILD_ROOT/usr/include/netatalk/at.h || :
97
98 cd $RPM_BUILD_ROOT/etc/atalk/nls
99 $RPM_BUILD_ROOT/usr/bin/makecode || true
100
101 # Remove .la files in buildroot
102 rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
103 rm -f $RPM_BUILD_ROOT%{_bindir}/acleandir.rc \
104 $RPM_BUILD_ROOT%{_mandir}/man1/acleandir.1*
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post
110 /sbin/chkconfig --add atalk
111
112 %preun
113 if [ "$1" = "0" ] ; then
114 /sbin/service atalk stop > /dev/null 2>&1
115 /sbin/chkconfig --del atalk
116 fi
117
118 %postun
119 if [ "$1" -ge "1" ]; then
120 /sbin/service atalk condrestart > /dev/null 2>&1 || :
121 fi
122
123 %files
124 %defattr(-,root,root)
125 %doc AUTHORS CONTRIBUTORS COPYING COPYRIGHT README TODO VERSION NEWS
126 %doc ICDumpSuffixMap doc
127 %dir /etc/atalk
128 %dir /etc/atalk/nls
129 #%config /etc/atalk/nls/*
130 %{_libdir}/*.so
131 %config(noreplace) /etc/atalk/AppleVolumes.default
132 %config(noreplace) /etc/atalk/AppleVolumes.system
133 %config(noreplace) /etc/atalk/netatalk.conf
134 %config(noreplace) /etc/atalk/afpd.conf
135 %config(noreplace) /etc/atalk/atalkd.conf
136 %config(noreplace) /etc/atalk/papd.conf
137 %attr(755,root,root) %config %{initdir}/atalk
138 %config(noreplace) /etc/pam.d/netatalk
139 %{_sbindir}/*
140 %{_bindir}/*
141 %{_mandir}/man*/*
142 %{_datadir}/netatalk
143 %{_libexecdir}/*
144
145 %files devel
146 %defattr(-,root,root)
147 %dir %{_includedir}/atalk
148 %{_libdir}/*.a
149 %attr(0644,root,root) %{_includedir}/atalk/*
150 %attr(0644,root,root) %{_includedir}/netatalk/*
151 %{_datadir}/aclocal/netatalk.m4
152
153 %changelog
154 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
155 - Clean up spec so package can be built by koji/plague
156
157 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
158 - Update to new release naming. No functional changes.
159 - Make Packager generic
160
161 * Tue Jun 21 2005 Charlie Brady <charlieb@e-smith.com> 2.0.3-5es
162 - Bump release for CentOS 4 rebuild.
163
164 * Wed Jun 15 2005 Charlie Brady <charlieb@e-smith.com> 2.0.3-4es
165 - Bump Epoch to trump version from 6.x.
166
167 * Fri May 27 2005 Charlie Brady <charlieb@e-smith.com> 2.0.3-3es
168 - A few small fixes to init script.
169
170 * Thu May 19 2005 Charlie Brady <charlieb@e-smith.com> 2.0.3-2es
171 - Use bundled init script rather than 1.6.x version.
172 - Remove norc patch - IOW, include acleandir.rc file.
173
174 * Thu May 19 2005 Charlie Brady <charlieb@e-smith.com>
175 - Update to version 2.0.3.
176
177 * Sat Apr 30 2005 Charlie Brady <charlieb@e-smith.com>
178 - Remove "-fsigned-char" from configure call.
179
180 * Tue Apr 12 2005 Charlie Brady <charlieb@e-smith.com>
181 - Change configure options to those used with better success by Roger
182 Buck (but with a few small changes, for better backwards compatibility.
183
184 * Wed Jan 12 2005 Charlie Brady <charlieb@e-smith.com>
185 - Update to 2.0.2.
186 - Delete /etc/atalk/nls/* from filelist.
187 - Add %{_libexecdir}/* to filelist
188
189 * Thu Nov 4 2004 Charles Bennett <ccb@xxy.boston.redhat.com> 2:1.6.4-4
190 - patch security vulnerability in e2ps
191 - see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137966
192
193 * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
194 - rebuilt
195
196 * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
197 - rebuilt
198
199 * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
200 - rebuilt
201
202 * Wed Jan 07 2004 Florian La Roche <Florian.LaRoche@redhat.de>
203 - 1.6.4
204
205 * Fri Aug 1 2003 Charlie Bennett <ccb@redhat.com>
206 - Update with 1.6.3 upstream sources
207
208 * Tue Jul 29 2003 Elliot Lee <sopwith@redhat.com>
209 - Rebuild
210 - Fix perl multilib path editing
211 - Add pathcat patch
212
213 * Thu May 1 2003 Elliot Lee <sopwith@redhat.com> 1.5.5-7
214 - Make multilib generic
215 - Add builddep on quota (for rpcsvc/rquota.h)
216
217 * Wed Feb 18 2003 Bill Nottingham <notting@redhat.com> 1.5.5-5
218 - fix initscript error (#82118)
219
220 * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
221 - rebuilt
222
223 * Tue Jan 7 2003 Nalin Dahyabhai <nalin@redhat.com> 1.5.5-3
224 - patch for compile errors with new ssl libs
225 - rebuild
226
227 * Mon Dec 02 2002 Florian La Roche <Florian.LaRoche@redhat.de>
228 - postun should never fail
229
230 * Thu Nov 28 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.5-1
231 - Updated to 1.5.5
232
233 * Tue Jun 25 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.3.1-4
234 - Fixed dependancy problem on /usr/bin/rc by removing acleandir.[1|rc] (#67243)
235 - Fixed missing /usr/share/netatalk dir (#67222)
236
237 * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.5.3.1-2
238 - automated rebuild
239
240 * Tue Jun 18 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.3.1-1
241 - Updated to latest version 1.5.3.1.
242 - Fixed bug for nls file lookup (#66300).
243
244 * Mon May 27 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.2-4
245 - Fixed initscript bug where you can't use blanks inside of names (#64926).
246
247 * Wed Apr 10 2002 Phil Knirsch <pknirsch@redhat.com> 1.5.2-3
248 - Fixed initscript to use correct config files from /etc/atalk (#62803)
249 - Changed initscript to use $0 instead of direct string (#61734)
250 - Change Copyright to Licencse and switch from BSD to GPL (#61746)
251
252 * Thu Mar 14 2002 Bill Nottingham <notting@redhat.com>
253 - don't run by default
254
255 * Wed Mar 13 2002 Bill Nottingham <notting@redhat.com>
256 - it's back
257
258 * Fri Mar 2 2001 Tim Powers <timp@redhat.com>
259 - rebuilt against openssl-0.9.6-1
260
261 * Sun Feb 25 2001 Tim Powers <timp@redhat.com>
262 - fixed bug 29370. This package is trying to include a file glibc already includes
263
264 * Tue Jan 23 2001 Tim Powers <timp@redhat.com>
265 - updated initscript
266
267 * Thu Jan 04 2001 Than Ngo <than@redhat.com>
268 - fixed uams-path
269 - added noreplace to %config
270
271 * Mon Nov 20 2000 Tim Powers <timp@redhat.com>
272 - rebuilt to fix bad dir perms
273
274 * Fri Nov 10 2000 Than Ngo <than@redhat.com>
275 - update to 1.5pre2 (bug #19737, #20397)
276 - update Url and ftp site
277 - clean up specfile
278 - netatalk-1.4b2+asun obsolete
279
280 * Mon Aug 07 2000 Than Ngo <than@redhat.de>
281 - fix dependency with glibc-devel (Bug #15589)
282 - fix typo in description (Bug #15479)
283
284 * Wed Aug 2 2000 Tim Powers <timp@redhat.com>
285 - fix symlinks not being relative.
286
287 * Fri Jul 28 2000 Than Ngo <than@redhat.de>
288 - add missing restart function in startup script
289
290 * Fri Jul 28 2000 Tim Powers <timp@redhat.com>
291 - fixed initscripts so that condrestart doesn't return 1 when the test fails
292
293 * Mon Jul 24 2000 Prospector <prospector@redhat.com>
294 - rebuilt
295
296 * Sun Jul 23 2000 Tim Powers <timp@redhat.com>
297 - rebuilt
298
299 * Mon Jul 17 2000 Tim Powers <timp@redhat.com>
300 - inits back to rc.d/init.d, using service to start inits
301
302 * Wed Jul 12 2000 Than Ngo <than@redhat.de>
303 - rebuilt
304
305 * Thu Jul 06 2000 Tim Powers <timp@redhat.com>
306 - fixed broken PreReq, now PreReq's /etc/init.d
307
308 * Tue Jun 27 2000 Than Ngo <than@redhat.de>
309 - remove prereq initscripts, add requires initscripts
310 - clean up specfile
311
312 * Mon Jun 26 2000 Than Ngo <than@redhat.de>
313 - /etc/rc.d/init.d -> /etc/init.d
314 - add condrestart directive
315 - fix post/preun/postun scripts
316 - prereq initscripts >= 5.20
317
318 * Tue Jun 20 2000 Tim Powers <timp@redhat.com>
319 - fixed bug 11420 concerning the building with -O2.
320
321 * Thu Jun 8 2000 Tim Powers <timp@redhat.com>
322 - fix bug #11978
323 - fix man page locations to be FHS compliant
324
325 * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
326 - modify PAM setup to use system-auth
327
328 * Thu Dec 16 1999 Tim Powers <timp@redhat.com>
329 - renewed source so it is pristine, delete the problematic files in spec file
330 instead
331 - general spec file cleanups, create buildroot and dirs in the %%install
332 section
333 - strip binaries
334 - gzip man pages
335 - fixed netatalk-asun.librpcsvc.patch, -lnss_nis too
336 - changed group
337 - added %defattr to %files section
338
339 * Tue Aug 3 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
340 - rpm-3.0 needs to remove vogus files from source.
341 Removed files: etc/papd/.#magics.c, etc/.#diff
342 * Fri Jul 30 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
343 - Change Copyright tag to BSD.
344 Add /usr/bin/adv1tov2.
345 * Thu Apr 22 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
346 - Correct librpcsvc.patch. Move %changelog section last.
347 Uncomment again -DNEED_QUOTA_WRAPPER in sys/linux/Makefile since
348 LinuxPPC may need.
349 * Wed Mar 31 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
350 - Comment out -DNEED_QUOTA_WRAPPER in sys/linux/Makefile.
351 * Sat Mar 20 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
352 - Correct symbolic links to psf.
353 Remove asciize function from nbplkup so as to display Japanese hostname.
354 * Thu Mar 11 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
355 - Included MacPerl 5 script ICDumpSuffixMap which dumps suffix mapping
356 containd in Internet Config Preference.
357 * Tue Mar 2 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
358 - [asun2.1.3]
359 * Mon Feb 15 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
360 - [pre-asun2.1.2-8]
361 * Sun Feb 7 1999 iNOUE Koich! <inoue@ma.ns.musashi-tech.ac.jp>
362 - [pre-asun2.1.2-6]
363 * Mon Jan 25 1999 iNOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
364 - [pre-asun2.1.2-3]
365 * Thu Dec 17 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
366 - [pre-asun2.1.2]
367 Remove crlf patch. It is now a server's option.
368 * Thu Dec 3 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
369 - Use stable version source netatalk-1.4b2+asun2.1.1.tar.gz
370 Add uams directory
371 * Sat Nov 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
372 - Use pre-asun2.1.1-3 source.
373 * Mon Nov 23 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
374 - Use pre-asun2.1.1-2 source.
375 * Mon Nov 16 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
376 - Fix rcX.d's symbolic links.
377 * Wed Oct 28 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
378 - Use pre-asun2.1.0a-2 source. Remove '%exclusiveos linux' line.
379 * Sat Oct 24 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
380 - Use stable version source netatalk-1.4b2+asun2.1.0.tar.gz.
381 * Mon Oct 5 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
382 - Use pre-asun2.1.0-10a source.
383 * Thu Sep 19 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
384 - Use pre-asun2.1.0-8 source. Add chkconfig support.
385 * Sat Sep 12 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
386 - Comment out -DCRLF. Use RPM_OPT_FLAGS.
387 * Mon Sep 8 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
388 - Use pre-asun2.1.0-7 source. Rename atalk.init to atalk.
389 * Mon Aug 22 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
390 - Use pre-asun2.1.0-6 source.
391 * Mon Jul 27 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
392 - Use pre-asun2.1.0-5 source.
393 * Tue Jul 21 1998 INOUE Koichi <inoue@ma.ns.musashi-techa.c.jp>
394 - Use pre-asun2.1.0-3 source.
395 * Tue Jul 7 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
396 - Add afpovertcp entries to /etc/services
397 - Remove BuildRoot in man8 pages
398 * Mon Jun 29 1998 INOUE Koichi <inoue@ma.ns.musashi-tech.ac.jp>
399 - Use modified sources 1.4b2+asun2.1.0 produced by Adrian Sun
400 <asun@saul9.u.washington.edu> to provide an AppleShareIP file server
401 - Included AppleVolumes.system file maintained by Johnson
402 <johnson@stpt.usf.edu>
403 * Mon Aug 25 1997 David Gibson <D.Gibson@student.anu.edu.au>
404 - Used a buildroot
405 - Use RPM_OPT_FLAGS
406 - Moved configuration parameters/files from atalk.init to /etc/atalk
407 - Separated devel package
408 - Built with shared libraries
409 * Sun Jul 13 1997 Paul H. Hargrove <hargrove@sccm.Stanford.EDU>
410 - Updated sources from 1.3.3 to 1.4b2
411 - Included endian patch for Linux/SPARC
412 - Use all the configuration files supplied in the source. This has the
413 following advantages over the ones in the previous rpm release:
414 + The printer 'lp' isn't automatically placed in papd.conf
415 + The default file conversion is binary rather than text.
416 - Automatically add and remove DDP services from /etc/services
417 - Placed the recommended /etc/services in the documentation
418 - Changed atalk.init to give daemons a soft kill
419 - Changed atalk.init to make configuration easier
420
421 * Wed May 28 1997 Mark Cornick <mcornick@zorak.gsfc.nasa.gov>
422 Updated for /etc/pam.d

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed