| 1 | %{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|---|
| 2 |
|
|---|
| 3 | # disable broken /usr/lib/rpm/brp-python-bytecompile
|
|---|
| 4 | %define __os_install_post %{nil}
|
|---|
| 5 | %define compdir %(pkg-config --variable=completionsdir bash-completion)
|
|---|
| 6 | %if "%{compdir}" == ""
|
|---|
| 7 | %define compdir "/@unixroot/etc/bash_completion.d"
|
|---|
| 8 | %endif
|
|---|
| 9 |
|
|---|
| 10 | Summary: Creates a common metadata repository
|
|---|
| 11 | Name: createrepo
|
|---|
| 12 | Version: 0.10.4
|
|---|
| 13 | Release: 1%{?dist}
|
|---|
| 14 | License: GPLv2
|
|---|
| 15 | Group: System Environment/Base
|
|---|
| 16 | URL: http://createrepo.baseurl.org/
|
|---|
| 17 |
|
|---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 19 | BuildArchitectures: noarch
|
|---|
| 20 | Requires: python >= 2.1, rpm-python, rpm >= 4.1.1, libxml2-python
|
|---|
| 21 | Requires: yum-metadata-parser, yum >= 3.4.3, python-deltarpm, deltarpm, pyliblzma
|
|---|
| 22 | BuildRequires: python
|
|---|
| 23 |
|
|---|
| 24 | Vendor: bww bitwise works GmbH
|
|---|
| 25 | %scm_source svn http://svn.netlabs.org/repos/ports/createrepo/trunk 2055
|
|---|
| 26 |
|
|---|
| 27 | %description
|
|---|
| 28 | This utility will generate a common metadata repository from a directory of rpm
|
|---|
| 29 | packages.
|
|---|
| 30 |
|
|---|
| 31 | %prep
|
|---|
| 32 | %scm_setup
|
|---|
| 33 |
|
|---|
| 34 | %build
|
|---|
| 35 |
|
|---|
| 36 | %install
|
|---|
| 37 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 38 | make DESTDIR=$RPM_BUILD_ROOT sysconfdir=%{_sysconfdir} install
|
|---|
| 39 |
|
|---|
| 40 | %clean
|
|---|
| 41 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 42 |
|
|---|
| 43 | %files
|
|---|
| 44 | %defattr(-, root, root,-)
|
|---|
| 45 | %doc ChangeLog README
|
|---|
| 46 | %license COPYING COPYING.lib
|
|---|
| 47 | %(dirname %{compdir})
|
|---|
| 48 | %{_datadir}/%{name}/
|
|---|
| 49 | %{_bindir}/createrepo
|
|---|
| 50 | %{_bindir}/modifyrepo
|
|---|
| 51 | %{_bindir}/mergerepo
|
|---|
| 52 | %{_mandir}/*/*
|
|---|
| 53 | %{python_sitelib}/createrepo
|
|---|
| 54 |
|
|---|
| 55 | %changelog
|
|---|
| 56 | * Tue Dec 19 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.10.4-1
|
|---|
| 57 | - update to vendor version 0.10.4
|
|---|
| 58 |
|
|---|
| 59 | * Tue Nov 22 2011 yd
|
|---|
| 60 | - fixed /@unixroot access
|
|---|
| 61 |
|
|---|
| 62 | * Fri Sep 03 2010 yd
|
|---|
| 63 | - initial build
|
|---|