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