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