]> git.pld-linux.org Git - packages/am-utils.git/blob - am-utils.spec
ad684d76334976c49dfd237097dac10e997149db
[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.7
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 URL:            http://www.am-utils.org/
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 %patch0 -p1
45 %ifnarch i386
46 %patch1 -p1
47 %endif
48
49 %build
50 CFLAGS="%{rpmcflags}" 
51 %configure2_13 \
52         --prefix=%{_prefix} \
53         --enable-shared \
54         --sysconfdir=%{_sysconfdir} \
55         --enable-libs=-lnsl
56         
57 # fun with autoconf
58 touch `find -name Makefile.in`
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
64
65 %{__make} install DESTDIR=$RPM_BUILD_ROOT
66
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
68 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
69 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/amd
70
71 install -d $RPM_BUILD_ROOT/.automount
72
73 gzip -9nf AUTHORS BUGS NEWS README* ChangeLog ldap-id.txt
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post
79 /sbin/ldconfig
80 /sbin/chkconfig --add amd
81 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
82
83 %postun
84 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
85 /sbin/ldconfig
86 if [ "$1" = "0" ]; then
87     /sbin/chkconfig --del amd
88 fi
89
90 %files
91 %defattr(644,root,root,755)
92 %doc doc/*.ps *.gz
93 %dir /.automount
94 %config %{_sysconfdir}/amd.conf
95 %config /etc/sysconfig/amd
96 %attr(754,root,root) /etc/rc.d/init.d/amd
97 %attr(755,root,root) %{_bindir}/pawd
98 %attr(755,root,root) %{_sbindir}/*
99 %attr(755,root,root) %{_libdir}/*
100 %{_mandir}/man[158]/*
101 %{_infodir}/*
This page took 0.025383 seconds and 3 git commands to generate.