]> git.pld-linux.org Git - packages/createrepo.git/blobdiff - createrepo.spec
- updated to fit 0.9.6
[packages/createrepo.git] / createrepo.spec
index 4f66026de2c3245c7e60b1e8de9fb25a3a93f2e2..0092147a83a50a311164a1aa9a9a5bcbdd2ec5dc 100644 (file)
@@ -1,20 +1,22 @@
 Summary:       Creates a common metadata repository
 Summary(pl.UTF-8):     Tworzenie wspólnego repozytorium metadanych
 Name:          createrepo
-Version:       0.9.1
-Release:       0.1
+Version:       0.9.6
+Release:       1
 License:       GPL
 Group:         Applications/System
 Source0:       http://linux.duke.edu/createrepo/download/%{name}-%{version}.tar.gz
-# Source0-md5: 2a903c9f33c8a56dbfb89c2875d9978d
-#Patch0:               %{name}-missingok.patch
+# Source0-md5: d8b11b3b38205fe351497c7e10ae5500
+Patch0:                %{name}-typo.patch
 URL:           http://linux.duke.edu/metadata/
-BuildRequires: python-devel > 1:2.5
+BuildRequires: python-devel
 BuildRequires: python-modules
 BuildRequires: rpm-pythonprov
+BuildRequires: sed >= 4.0
 %pyrequires_eq  python
 Requires:      python-libxml2
 Requires:      python-rpm
+Requires:      yum >= 3.2.11-1
 Requires:      yum-metadata-parser >= 1.1.1-3
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -29,11 +31,14 @@ pakietów RPM.
 
 %prep
 %setup -q
-#%patch0 -p1
+%patch0 -p1
+
+%{__sed} -i -e '1s,#!.*python,#!%{__python},' modifyrepo.py
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
+       PKGDIR=%{py_sitescriptdir}/%{name} \
        DESTDIR=$RPM_BUILD_ROOT
 
 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
@@ -47,12 +52,15 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc ChangeLog README
 %attr(755,root,root) %{_bindir}/createrepo
+%attr(755,root,root) %{_bindir}/mergerepo
 %attr(755,root,root) %{_bindir}/modifyrepo
 %dir %{_datadir}/%{name}
 # note that these DO NEED executable bit set!
 %attr(755,root,root) %{_datadir}/%{name}/genpkgmetadata.py*
+%attr(755,root,root) %{_datadir}/%{name}/mergerepo.py*
 %attr(755,root,root) %{_datadir}/%{name}/modifyrepo.py*
-%dir %{py_sitedir}/createrepo
-%{py_sitedir}/createrepo/*.py[co]
+%dir %{py_sitescriptdir}/createrepo
+%{py_sitescriptdir}/createrepo/*.py[co]
+%{_mandir}/man1/mergerepo.1*
 %{_mandir}/man1/modifyrepo.1*
 %{_mandir}/man8/createrepo.8*
This page took 0.088518 seconds and 4 git commands to generate.