commit d92fd47d3c89b898cec5c6bb714c25fb6ce4bad0
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sat Jun 18 13:38:07 2016 +0200
Initial version based on 1.23
.gitignore | 2 ++
rfpkg.spec | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 118 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cb90b19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+rfpkg-*.zip
+rfpkg-*.tar.gz
diff --git a/rfpkg.spec b/rfpkg.spec
new file mode 100644
index 0000000..924f2c9
--- /dev/null
+++ b/rfpkg.spec
@@ -0,0 +1,115 @@
+%if 0%{?rhel} && 0%{?rhel} <= 6
+%{!?__python2: %global __python2 /usr/bin/python2}
+%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from
distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
+%global python2_version 2.6
+%endif
+
+%global checkout 62a8b01494dde87116cc588b318c008499bf30ac
+%global date 20151027
+
+Name: rfpkg
+Summary: RPM Fusion utility for working with dist-git
+Version: 1.23
+Release: 1%{?dist}
+License: GPLv2+
+Group: Applications/System
+URL:
https://github.com/rpmfusion-infra/rfpkg
+Source0:
https://github.com/rpmfusion-infra/rfpkg/archive/v%{version}.zip#/%{name}...
+
+%{?python_provide:%python_provide python2-%{name}}
+BuildArch: noarch
+
+BuildRequires: python2-devel, python-setuptools, bash-completion
+
+BuildRequires: pyrpkg, fedora-cert
+BuildRequires: python-fedora, packagedb-cli > 2.2
+
+Requires: bodhi-client
+#We need rpmfusion-packager instead - but don't do circle dependency
+#Requires: fedora-cert
+Requires: koji
+Requires: packagedb-cli > 2.2
+Requires: pyrpkg >= 1.33
+Requires: python-pycurl
+Requires: redhat-rpm-config
+
+
+%description
+RPM Fusion utility for working with dist-git.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+%{__python2} setup.py build
+%{__python2} src/rfpkg_man_page.py > rfpkg.1
+
+%install
+%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
+
+sed -e 's|^#!python|#!%{__python2}|g' -i $RPM_BUILD_ROOT%{_bindir}/rfpkg
+
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+install -p -m 0644 rfpkg.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+##Make 'rfpkg' free/nonfree scripts
+cat > $RPM_BUILD_ROOT%{_bindir}/rfpkg-free <<EOF
+#!/bin/sh
+exec %{_bindir}/rfpkg -C %{_sysconfdir}/rpkg/rfpkg-free.conf "\$@"
+EOF
+
+cat > $RPM_BUILD_ROOT%{_bindir}/rfpkg-nonfree <<EOF
+#!/bin/sh
+exec %{_bindir}/rfpkg -C %{_sysconfdir}/rpkg/rfpkg-nonfree.conf "\$@"
+EOF
+
+chmod +x $RPM_BUILD_ROOT%{_bindir}/rfpkg-*free
+##
+
+%files
+%{!?_licensedir:%global license %doc}
+%doc README
+%license COPYING
+%{_bindir}/rfpkg
+%{_bindir}/rfpkg-*
+%{python2_sitelib}/rfpkg/
+%{python2_sitelib}/rfpkg-%{version}-py%{python2_version}.egg-info/
+%{_mandir}/man1/rfpkg.1*
+%if 0%{?fedora}
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/rfpkg
+%else
+%dir %{_sysconfdir}/bash_completion.d
+%{_sysconfdir}/bash_completion.d/rfpkg
+%endif
+%dir %{_sysconfdir}/rpkg
+%config(noreplace) %{_sysconfdir}/rpkg/rfpkg.conf
+%config(noreplace) %{_sysconfdir}/rpkg/rfpkg-free.conf
+%config(noreplace) %{_sysconfdir}/rpkg/rfpkg-nonfree.conf
+
+
+%changelog
+* Fri Jun 17 2016 Nicolas Chauvet <kwizart(a)gmail.com> - 1.23-1
+- Rebase on top of fedpkg 1.23
+
+* Fri Jun 17 2016 Nicolas Chauvet <kwizart(a)gmail.com> - 1.21-1
+- Update to 1.21
+
+* Mon Nov 16 2015 Antonio Trande <sagitterATfedoraproject.org>
1.20-5.20151027git62a8b0
+- Made 'rfpkg' free/nonfree scripts
+
+* Mon Nov 09 2015 Antonio Trande <sagitterATfedoraproject.org>
1.20-4.20151027git62a8b0
+- Added bash-completion as BR package
+
+* Sun Nov 08 2015 Antonio Trande <sagitterATfedoraproject.org>
1.20-3.20151027git62a8b0
+- All configuration files pushed in main package
+
+* Fri Nov 06 2015 Antonio Trande <sagitterATfedoraproject.org>
1.20-2.20151027git62a8b0
+- Cleanup of the EPEL5 tasks
+- Fixed the installation of the script file for Bash
+
+* Thu Nov 05 2015 Antonio Trande <sagitterATfedoraproject.org>
1.20-1.20151027git62a8b0
+- Initial build
+
diff --git a/sources b/sources
index e69de29..e544c27 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+13b71ce43211dccf12e45ba87e1f8144 rfpkg-1.23.zip