]> git.pld-linux.org Git - packages/emirror.git/blobdiff - emirror.spec
- move %{_libdir} to %{_prefix}/lib - it's noarch archive
[packages/emirror.git] / emirror.spec
index c20d2a46fe3f9df6b6222c177a5f378ef250bf2a..79886e10cbca515dd386affd6e904a74883e6c22 100644 (file)
@@ -1,16 +1,19 @@
-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:       2
 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
+# Source0-md5: 4223966e49284e70a8eeabe9603d1ae3
+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 +22,31 @@ 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/services/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/services/httpd/html/mirrors
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/* Readme.gz
+%doc doc/*
+%dir /home/services/httpd/html/mirrors
+/home/services/httpd/html/mirrors/*
+%config(noreplace) %{_sysconfdir}/emirror
 %attr(755,root,root) %{_bindir}/*
-%{_libdir}/emirror
+%{_prefix}/lib/emirror
 %{_mandir}/man1/*
This page took 0.041226 seconds and 4 git commands to generate.