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