From cfb16c5a071120fca8683ad7882217dc3989a000 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 19 Feb 2013 09:46:40 -0800 Subject: [PATCH] Add packaging --- packaging/createrepo.spec | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 packaging/createrepo.spec diff --git a/packaging/createrepo.spec b/packaging/createrepo.spec new file mode 100644 index 0000000..c95f8ed --- /dev/null +++ b/packaging/createrepo.spec @@ -0,0 +1,44 @@ +Name: createrepo +Version: 0.9.9 +Release: 1 +License: GPL-2.0 +Summary: Creates a common metadata repository +Url: http://createrepo.baseurl.org/ +Group: System/Base +Source: %{name}-%{version}.tar.gz +BuildRequires: python +Requires: deltarpm +Requires: pyliblzma +Requires: python >= 2.7 +Requires: rpm >= 4.11.0 +Requires: python-rpm +Requires: python-deltarpm +Requires: python-libxml2 +Requires: yum >= 3.4.3 +Requires: yum-metadata-parser +BuildArch: noarch + +%description +This utility will generate a common metadata repository from a directory of rpm +packages. + +%prep +%setup -q + +%build + +%install +make DESTDIR=%{buildroot} sysconfdir=%{_sysconfdir} install + +%files +%defattr(-, root, root,-) +%license COPYING COPYING.lib +%{_sysconfdir}/bash_completion.d/ +%{_datadir}/%{name}/ +%{_bindir}/createrepo +%{_bindir}/modifyrepo +%{_bindir}/mergerepo +%{_mandir}/*/* +%{python_sitelib}/createrepo + +%changelog -- 2.7.4