Hi,
Code:
Name: banner
Summary: The 'banner' program prints a "banner" on the screen.
Version: 1.2.1
Release: 1
Copyright: GPL
Group: Applications/System
Source: %{name}-%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-root
%description
The 'banner' program prints a "banner" on the screen that corresponds to the
first X characters of a string entered on the command line.
%prep
%setup
%build
./configure --prefix=/usr
make
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/{bin}
make DESTDIR=%{buildroot}/ install
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%doc AUTHORS COPYING README
/usr/bin/banner
Die Datei nach /usr/src/packages/SPECS/banner.spec und die banner-1.2.1.tar.gz nach /usr/src/packages/SOURCES/ packen, danach rpm -ba /usr/src/packages/banner.spec eingeben.
Gruß micha
Lesezeichen