]> git.pld-linux.org Git - packages/genromfs.git/blobdiff - genromfs.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/genromfs.git] / genromfs.spec
index 50e2186912180755f3513a2f0af2dd2b7328a5a6..5d3571423313c61cec289a277cf92e14451b2823 100644 (file)
@@ -1,40 +1,58 @@
-Summary: Tool for creating romfs filesystems.
-Name: genromfs
-Version: 0.3
-Release: 4
-Copyright: GPL
-Group: System Environment/Base
-Source: ftp://ftp.banki.hu/pub/linux/local/genromfs-0.3.tar.gz
-Patch: genromfs-0.3.patch
-BuildRoot: /var/tmp/%{name}-root
-ExclusiveOS: Linux
+Summary:       Utility for creating romfs filesystems
+Summary(pl):   Narzêdzie do tworzenia systemów plików romfs
+Name:          genromfs
+Version:       0.5.1
+Release:       1
+License:       GPL
+Group:         Applications/System
+Source0:       ftp://ftp.banki.hu/pub/linux/local/%{name}-%{version}.tar.gz
+Patch0:                %{name}-ac_am.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+ExclusiveOS:   Linux
+
+%define                _sbindir        /sbin
 
 %description
-Genromfs is a tool for creating romfs filesystems, which are
-lightweight, read-only filesystems supported by the Linux
-kernel.
+genromfs is a tool for creating romfs filesystems, which are
+lightweight, read-only filesystems supported by the Linux kernel.
+Romfs filesystems are mainly used for the initial RAM disks used
+during installation.
 
 %description -l pl
-genromfs jest narzêdziem s³u¿±cym do tworzenia systemów plików romfs, które
-s± lekkimi systemami plików tylko do odczytu, obs³ugiwanymi przez j±dro Linuksa.
+genromfs jest narzêdziem s³u¿±cym do tworzenia systemów plików romfs,
+które s± lekkimi systemami plików tylko do odczytu, obs³ugiwanymi
+przez j±dro Linuksa. Romfs jest g³ównie u¿ywany na inicjalnym
+ramdysku, u¿ywanym w trakcie startu systemu.
 
 %prep
 %setup -q
 %patch -p1
 
 %build
-make
+rm -f missing
+%{__libtoolize}
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-mkdir -p $RPM_BUILD_ROOT/usr/man/man8
-make install PREFIX=$RPM_BUILD_ROOT
-strip $RPM_BUILD_ROOT/usr/bin/genromfs
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf ChangeLog genromfs.lsm romfs.txt NEWS
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
-/usr/bin/*
-/usr/man/man8/*
+%defattr(644,root,root,755)
+%doc *.gz
+%attr(755,root,root) %{_sbindir}/*
+%{_mandir}/man8/*
This page took 0.090834 seconds and 4 git commands to generate.