]> git.pld-linux.org Git - packages/am-utils.git/blob - am-utils.spec
- replace non-existent %chkconfig_{post,preun} macros with
[packages/am-utils.git] / am-utils.spec
1 Summary:        Automount utilities including an updated version of Amd
2 Summary(pl):    Narzêdzia do automatycznego montowania systemów plików
3 Name:           am-utils
4 Version:        6.0.3
5 Release:        1
6 License:        BSD
7 Group:          Daemons
8 Group(de):      Server
9 Group(pl):      Serwery
10 Source0:        ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/%{name}-%{version}.tar.gz
11 Source1:        %{name}.init
12 Source2:        %{name}.conf
13 Source3:        %{name}.sysconf
14 Patch0:         %{name}-6.0a16-linux.patch
15 Patch1:         %{name}-6.0a16-alpha.patch
16 Patch2:         %{name}-6.0a16-glibc21.patch
17 Requires:       portmap
18 Prereq:         /sbin/chkconfig
19 Obsoletes:      amd
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Am-utils includes an updated version of Amd, the popular BSD
24 automounter. An automounter is a program which maintains a cache of
25 mounted filesystems. Filesystems are mounted when they are first
26 referenced by the user and unmounted after a certain period of
27 inactivity. Amd supports a variety of filesystems, including NFS, UFS,
28 CD-ROMS and local drives.
29
30 You should install am-utils if you need a program for automatically
31 mounting and unmounting filesystems.
32
33 %prep
34 %setup -q
35 %patch2 -p1 -b .glibc21
36 %patch0 -p1 -b .lnx
37 %ifnarch i386
38 %patch1 -p1 -b .noauto
39 %endif
40
41 %build
42 cd aux ; autoconf ; mv -f configure .. ; cd ..
43 CFLAGS="%{rpmcflags}" ./configure \
44         --prefix=%{_prefix} \
45         --enable-shared \
46         --sysconfdir=%{_sysconfdir} \
47         --enable-libs=-lnsl
48         
49 # fun with autoconf
50 touch `find -name Makefile.in`
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
56
57 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
58 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
59 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
60 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
61
62 gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog
63
64 install -d $RPM_BUILD_ROOT/.automount
65
66 # get rid of some lame scripts
67 file $RPM_BUILD_ROOT%{_sbindir}/* | \
68         grep -v ELF | grep -v am-eject | \
69         cut -f 1 -d':' | xargs rm -f
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 /sbin/ldconfig
76 NAME=amd; %chkconfig_add
77 %fix_info_dir
78
79 %preun
80 NAME=amd; %chkconfig_del
81
82 %postun
83 %fix_info_dir
84 /sbin/ldconfig
85
86 %files
87 %defattr(644,root,root,755)
88 %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz
89 %dir /.automount
90 %config %{_sysconfdir}/amd.conf
91 %config /etc/sysconfig/amd
92 %attr(754,root,root) /etc/rc.d/init.d/amd
93 %attr(755,root,root) %{_bindir}/pawd
94 %attr(755,root,root) %{_sbindir}/*
95 %attr(755,root,root) %{_libdir}/*
96 %{_mandir}/man[158]/*
97 %{_infodir}/*
This page took 0.067281 seconds and 3 git commands to generate.