]> git.pld-linux.org Git - packages/emirror.git/blobdiff - emirror.spec
- updated to 2.1.21
[packages/emirror.git] / emirror.spec
index c20d2a46fe3f9df6b6222c177a5f378ef250bf2a..7cf293289e069f8dd3c47c07fcbfcf49db1d80a8 100644 (file)
@@ -1,16 +1,18 @@
-Summary:       FTP mirroring program.
-Summary(pl):   Program do mirrorowania FTP.
+Summary:       FTP mirroring program
+Summary(pl):   Program do mirrorowania FTP
 Name:          emirror
-Version:       2.1
-Release:       1pre9
+Version:       2.1.21
+Release:       1
 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)
-Requires:      python
+Source0:       ftp://eclipt.uni-klu.ac.at/pub/projects/emirror/%{name}-%{version}.tar.gz
+Patch0:                %{name}-pld.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: python-devel >= 2.1
+Requires:      python >= 2.1
 BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 FTP mirroring program.
@@ -19,41 +21,32 @@ FTP mirroring program.
 Program do mirrorowania FTP.
 
 %prep
-%setup -q -n %{name}-%{version}-pre9
-%patch -p1
+%setup -q
+%patch0 -p1
 
 %build
-./configure --prefix=%{_prefix}
+aclocal
+autoconf
+%configure \
+       --with-htmldir=/home/httpd/html/mirrors
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install \
-       prefix=$RPM_BUILD_ROOT%{_prefix} \
-       bindir=$RPM_BUILD_ROOT%{_bindir} \
-       mandir=$RPM_BUILD_ROOT%{_mandir}/man1 \
-       libdir=$RPM_BUILD_ROOT%{_libdir}/emirror \
-       etcdir=$RPM_BUILD_ROOT%{_sysconfdir}/emirror \
-       docdir=$RPM_BUILD_ROOT%{_docdir}/emirror
-
-(\
-cd $RPM_BUILD_ROOT%{_bindir}; \
-mv -f mirror mirror.bak; \
-sed 's#@OUTPUTDIRECTORY@#/home/httpd/htdocs/mirrors#' mirror.bak > mirror; \
-mv -f updateindex updateindex.bak; \
-sed 's#@OUTPUTDIRECTORY@#/home/httpd/htdocs/mirrors#' updateindex.bak > updateindex;\
-rm -f *.bak
-)
-
-install general.cfg $RPM_BUILD_ROOT%{_sysconfdir}/emirror
-
-gzip -9nf doc/* Readme $RPM_BUILD_ROOT%{_mandir}/man1/*
+install -d $RPM_BUILD_ROOT/home/httpd/html/mirrors
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+gzip -9nf doc/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/* Readme.gz
+%doc doc/*
+%dir /home/httpd/html/mirrors
+/home/httpd/html/mirrors/*
+%config(noreplace) %{_sysconfdir}/emirror
 %attr(755,root,root) %{_bindir}/*
 %{_libdir}/emirror
 %{_mandir}/man1/*
This page took 0.128753 seconds and 4 git commands to generate.