]> git.pld-linux.org Git - packages/am-utils.git/blobdiff - am-utils.spec
- outdated
[packages/am-utils.git] / am-utils.spec
index ea9f6551a8f661649ae02587c7026b009cbd252b..c680ee93a79b6094e4278b5dad4e66c9d55f0616 100644 (file)
@@ -1,19 +1,22 @@
-Summary:       Automount utilities including an updated version of Amd.
+Summary:       Automount utilities including an updated version of Amd
+Summary(pl):   Narzêdzia do automatycznego montowania systemów plików
 Name:          am-utils
 Version:       6.0.3
 Release:       1
 License:       BSD
 Group:         Daemons
+Group(de):     Server
 Group(pl):     Serwery
 Source0:       ftp://shekel.mcl.cs.columbia.edu/pub/am-utils/%{name}-%{version}.tar.gz
-Source1:       am-utils.init
-Source2:       am-utils.conf
-Source3:       am-utils.sysconf
-Patch0:                am-utils-6.0a16-linux.patch
-Patch1:                am-utils-6.0a16-alpha.patch
-Patch2:                am-utils-6.0a16-glibc21.patch
-Requires:      portmap
+Source1:       %{name}.init
+Source2:       %{name}.conf
+Source3:       %{name}.sysconf
+Patch0:                %{name}-6.0a16-linux.patch
+Patch1:                %{name}-6.0a16-alpha.patch
+Patch2:                %{name}-6.0a16-glibc21.patch
+BuildRequires: autoconf
 Prereq:                /sbin/chkconfig
+Requires:      portmap
 Obsoletes:     amd
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,17 +31,28 @@ CD-ROMS and local drives.
 You should install am-utils if you need a program for automatically
 mounting and unmounting filesystems.
 
+%description -l pl
+Pakiet am-utils zawiera uaktualnion± wersjê amd, popularnego
+automountera z BSD. Automounter to program zarz±dzaj±cy montowaniem
+systemów plików. Systemy plików s± montowane przy pierwszym u¿yciu
+przez u¿ytkownika, a odmontowywane po pewnym czasie nieu¿ywania. amd
+obs³uguje wiele systemów plików, w tym NFS, UFS, CD-ROM oraz lokalne
+urz±dzenia.
+
 %prep
 %setup -q
-%patch2 -p1 -b .glibc21
-%patch0 -p1 -b .lnx
+%patch2 -p1
+%patch0 -p1
 %ifnarch i386
-%patch1 -p1 -b .noauto
+%patch1 -p1
 %endif
 
 %build
-cd aux ; autoconf ; mv -f configure .. ; cd ..
-CFLAGS="$RPM_OPT_FLAGS" ./configure \
+(cd aux
+autoconf
+mv -f configure ..
+)
+CFLAGS="%{rpmcflags}" ./configure \
        --prefix=%{_prefix} \
        --enable-shared \
        --sysconfdir=%{_sysconfdir} \
@@ -46,22 +60,18 @@ CFLAGS="$RPM_OPT_FLAGS" ./configure \
        
 # fun with autoconf
 touch `find -name Makefile.in`
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
 
-make install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
+%{__make} install prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=`pwd`%{_sysconfdir}
 install $RPM_SOURCE_DIR/am-utils.conf $RPM_BUILD_ROOT%{_sysconfdir}/amd.conf
 install $RPM_SOURCE_DIR/am-utils.sysconf $RPM_BUILD_ROOT/etc/sysconfig/amd
 install $RPM_SOURCE_DIR/am-utils.init $RPM_BUILD_ROOT/etc/rc.d/init.d/amd
 
-strip $RPM_BUILD_ROOT%{_sbindir}/* $RPM_BUILD_ROOT%{_bindir}/*
-
-gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog \
-       $RPM_BUILD_ROOT%{_mandir}/*
-       $RPM_BUILD_ROOT%{_infodir}/*
+gzip -9nf AUTHORS TODO BUGS NEWS README* ChangeLog
 
 install -d $RPM_BUILD_ROOT/.automount
 
@@ -76,12 +86,12 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/ldconfig
 /sbin/chkconfig --add amd
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 /sbin/ldconfig
-if [ $1 = 0 ]; then
+if [ "$1" = "0" ]; then
     /sbin/chkconfig --del amd
 fi
 
This page took 0.02822 seconds and 4 git commands to generate.