]> git.pld-linux.org Git - packages/am-utils.git/blob - am-utils.spec
c680ee93a79b6094e4278b5dad4e66c9d55f0616
[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 BuildRequires:  autoconf
18 Prereq:         /sbin/chkconfig
19 Requires:       portmap
20 Obsoletes:      amd
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Am-utils includes an updated version of Amd, the popular BSD
25 automounter. An automounter is a program which maintains a cache of
26 mounted filesystems. Filesystems are mounted when they are first
27 referenced by the user and unmounted after a certain period of
28 inactivity. Amd supports a variety of filesystems, including NFS, UFS,
29 CD-ROMS and local drives.
30
31 You should install am-utils if you need a program for automatically
32 mounting and unmounting filesystems.
33
34 %description -l pl
35 Pakiet am-utils zawiera uaktualnion± wersjê amd, popularnego
36 automountera z BSD. Automounter to program zarz±dzaj±cy montowaniem
37 systemów plików. Systemy plików s± montowane przy pierwszym u¿yciu
38 przez u¿ytkownika, a odmontowywane po pewnym czasie nieu¿ywania. amd
39 obs³uguje wiele systemów plików, w tym NFS, UFS, CD-ROM oraz lokalne
40 urz±dzenia.
41
42 %prep
43 %setup -q
44 %patch2 -p1
45 %patch0 -p1
46 %ifnarch i386
47 %patch1 -p1
48 %endif
49
50 %build
51 (cd aux
52 autoconf
53 mv -f configure ..
54 )
55 CFLAGS="%{rpmcflags}" ./configure \
56         --prefix=%{_prefix} \
57         --enable-shared \
58         --sysconfdir=%{_sysconfdir} \
59         --enable-libs=-lnsl
60         
61 # fun with autoconf
62 touch `find -name Makefile.in`
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
68
69 %{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
70 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
71 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
72 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
73
74 gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog
75
76 install -d $RPM_BUILD_ROOT/.automount
77
78 # get rid of some lame scripts
79 file $RPM_BUILD_ROOT%{_sbindir}/* | \
80         grep -v ELF | grep -v am-eject | \
81         cut -f 1 -d':' | xargs rm -f
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post
87 /sbin/ldconfig
88 /sbin/chkconfig --add amd
89 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
90
91 %postun
92 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
93 /sbin/ldconfig
94 if [ "$1" = "0" ]; then
95     /sbin/chkconfig --del amd
96 fi
97
98 %files
99 %defattr(644,root,root,755)
100 %doc doc/*.ps {AUTHORS,BUGS,ChangeLog,NEWS,README*,TODO}.gz
101 %dir /.automount
102 %config %{_sysconfdir}/amd.conf
103 %config /etc/sysconfig/amd
104 %attr(754,root,root) /etc/rc.d/init.d/amd
105 %attr(755,root,root) %{_bindir}/pawd
106 %attr(755,root,root) %{_sbindir}/*
107 %attr(755,root,root) %{_libdir}/*
108 %{_mandir}/man[158]/*
109 %{_infodir}/*
This page took 0.043686 seconds and 2 git commands to generate.