Name: emirror
Version: 2.1
Release: 1pre9
-Copyright: GPL
-Source: ftp://ftp.uni-klu.ac.at/pub/projects/emirror/%{name}-%{version}-pre9.tar.bz2
-Patch: emirror-cfg.patch
+License: GPL
+Source0: ftp://ftp.uni-klu.ac.at/pub/projects/emirror/%{name}-%{version}-pre9.tar.bz2
+Patch0: emirror-cfg.patch
Group: Networking/Utilities
Group(pl): Sieciowe/Narzêdzia
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%patch -p1
%build
-./configure --prefix=/usr
+./configure --prefix=%{_prefix}
%install
rm -rf $RPM_BUILD_ROOT
bindir=$RPM_BUILD_ROOT%{_bindir} \
mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
libdir=$RPM_BUILD_ROOT%{_libdir}/emirror \
- etcdir=$RPM_BUILD_ROOT/etc/emirror \
+ etcdir=$RPM_BUILD_ROOT%{_sysconfdir}/emirror \
docdir=$RPM_BUILD_ROOT%{_docdir}/emirror
(\
rm -f *.bak
)
-install general.cfg $RPM_BUILD_ROOT/etc/emirror
+install general.cfg $RPM_BUILD_ROOT%{_sysconfdir}/emirror
gzip -9nf doc/* Readme $RPM_BUILD_ROOT%{_mandir}/man1/*