Jesse Keating 2c910b
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
Jesse Keating 2c910b
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Jesse Keating 2c910b
Jesse Keating 2c910b
Name:           rpkg
Jesse Keating 5f2391
Version:        1.5
Jesse Keating 8181e2
Release:        1%{?dist}
Jesse Keating 2c910b
Summary:        Utility for interacting with rpm+git packaging systems
Jesse Keating 2c910b
Jesse Keating 2c910b
Group:          Applications/System
Jesse Keating 2c910b
License:        GPLv2+ and LGPLv2
Jesse Keating 2c910b
URL:            https://fedorahosted.org/rpkg
Jesse Keating 2c910b
Source0:        https://fedorahosted.org/releases/r/p/rpkg/rpkg-%{version}.tar.gz
Jesse Keating 2c910b
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Jesse Keating 2c910b
Jesse Keating 2c910b
Requires:       python-argparse
Jesse Keating 2c910b
Requires:       pyrpkg => %{name}-%{version}
Jesse Keating 2c910b
Jesse Keating 2c910b
BuildArch:      noarch
Jesse Keating 2c910b
BuildRequires:  python-devel, python-setuptools
Jesse Keating 2c910b
# We br these things for man page generation due to imports
Jesse Keating 2c910b
BuildRequires:  GitPython, koji, python-pycurl
Jesse Keating 2c910b
%if 0%{?rhel} < 7
Jesse Keating 2c910b
BuildRequires:  python-hashlib
Jesse Keating 2c910b
BuildRequires:  python-argparse
Jesse Keating 2c910b
BuildRequires:  python-kitchen
Jesse Keating 2c910b
%endif
Jesse Keating 2c910b
Jesse Keating 2c910b
%description
Jesse Keating 2c910b
A tool for managing RPM package sources in a git repository.
Jesse Keating 2c910b
Jesse Keating 2c910b
%package -n pyrpkg
Jesse Keating 2c910b
Summary:        Python library for interacting with rpm+git
Jesse Keating 2c910b
Group:          Applications/Databases
Jesse Keating 2c910b
Requires:       GitPython >= 0.2.0, python-argparse
Jesse Keating 2c910b
Requires:       python-pycurl, koji
Jesse Keating 2c910b
Requires:       rpm-build, rpm-python
Jesse Keating 2c910b
Requires:       rpmlint, mock, curl, openssh-clients, redhat-rpm-config
Jesse Keating 2c910b
%if 0%{?rhel} < 7
Jesse Keating 2c910b
Requires:       python-kitchen
Jesse Keating 2c910b
Requires:       python-hashlib
Jesse Keating 2c910b
%endif
Jesse Keating 2c910b
Jesse Keating 2c910b
%description -n pyrpkg
Jesse Keating 2c910b
A python library for managing RPM package sources in a git repository.
Jesse Keating 2c910b
Jesse Keating 2c910b
Jesse Keating 2c910b
%prep
Jesse Keating 2c910b
%setup -q
Jesse Keating 2c910b
Jesse Keating 2c910b
Jesse Keating 2c910b
%build
Jesse Keating 2c910b
%{__python} setup.py build
Jesse Keating 2c910b
%{__python} src/rpkg_man_page.py > rpkg.1
Jesse Keating 2c910b
Jesse Keating 2c910b
Jesse Keating 2c910b
%install
Jesse Keating 2c910b
rm -rf $RPM_BUILD_ROOT
Jesse Keating 2c910b
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
Jesse Keating 2c910b
%{__install} -d $RPM_BUILD_ROOT%{_mandir}/man1
Jesse Keating 2c910b
%{__install} -p -m 0644 rpkg.1 $RPM_BUILD_ROOT%{_mandir}/man1
Jesse Keating 2c910b
Jesse Keating 2c910b
 
Jesse Keating 2c910b
%clean
Jesse Keating 2c910b
rm -rf $RPM_BUILD_ROOT
Jesse Keating 2c910b
Jesse Keating 2c910b
Jesse Keating 2c910b
%files
Jesse Keating 2c910b
%config(noreplace) %{_sysconfdir}/rpkg
Jesse Keating 2c910b
%{_sysconfdir}/bash_completion.d
Jesse Keating 2c910b
%{_bindir}/%{name}
Jesse Keating 2c910b
%{_mandir}/*/*
Jesse Keating 2c910b
Jesse Keating 2c910b
%files -n pyrpkg
Jesse Keating 2c910b
%doc COPYING COPYING-koji LGPL README
Jesse Keating 2c910b
# For noarch packages: sitelib
Jesse Keating 2c910b
%{python_sitelib}/pyrpkg
Jesse Keating 2c910b
%{python_sitelib}/rpkg-%{version}-py?.?.egg-info
Jesse Keating 2c910b
Jesse Keating 2c910b
Jesse Keating 2c910b
%changelog
Jesse Keating 5f2391
* Mon Sep 19 2011 Jesse Keating <jkeating@redhat.com> - 1.5-1
Jesse Keating 5f2391
- Fix tag listing (#717528) (jkeating)
Jesse Keating 5f2391
- Revamp n-v-r property loading (#721389) (jkeating)
Jesse Keating 5f2391
- Don't use os.getlogin (jkeating)
Jesse Keating 5f2391
- Code style changes (jkeating)
Jesse Keating 5f2391
- Allow fedpkg lint to be configurable and to check spec file. (pingou)
Jesse Keating 5f2391
- Handle non-scratch srpm builds better (jkeating)
Jesse Keating 5f2391
Jesse Keating 393f69
* Wed Aug 17 2011 Jesse Keating <jkeating@redhat.com> - 1.4-1
Jesse Keating 393f69
- Be more generic when no spec file is found (jkeating)
Jesse Keating 393f69
- Hint about use of git status when dirty (jkeating)
Jesse Keating 393f69
- Don't use print when we can log.info it (jkeating)
Jesse Keating 393f69
- Don't exit from a library (jkeating)
Jesse Keating 393f69
- Do the rpm query in our module path (jkeating)
Jesse Keating 393f69
- Use git's native ability to checkout a branch (jkeating)
Jesse Keating 393f69
- Use keyword arg with clone (jkeating)
Jesse Keating 393f69
- Allow the on-demand generation of an srpm (jkeating)
Jesse Keating 393f69
- Fix up exit codes (jkeating)
Jesse Keating 393f69
Jesse Keating 8c0b16
* Mon Aug 01 2011 Jesse Keating <jkeating@redhat.com> - 1.3-1
Jesse Keating 8c0b16
- Fix a debug string (jkeating)
Jesse Keating 8c0b16
- Set the right property (jkeating)
Jesse Keating 8c0b16
- Make sure we have a default hashtype (jkeating)
Jesse Keating 8c0b16
- Use underscore for the dist tag (jkeating)
Jesse Keating 8c0b16
- Fix the kojiweburl property (jkeating)
Jesse Keating 8c0b16
Jesse Keating 8181e2
* Wed Jul 20 2011 Jesse Keating <jkeating@redhat.com> - 1.2-1
Jesse Keating 8181e2
- Fill out the krb_creds function (jkeating)
Jesse Keating 8181e2
- Fix the log message (jkeating)
Jesse Keating 8181e2
- site_setup is no longer needed (jkeating)
Jesse Keating 8181e2
- Remove some rhtisms (jkeating)
Jesse Keating 8181e2
- Wire up the patch command in client code (jkeating)
Jesse Keating 8181e2
- Add a patch command (jkeating)
Jesse Keating 8181e2
Jesse Keating 2c910b
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.1-2
Jesse Keating 2c910b
- Use version macro in files
Jesse Keating 2c910b
Jesse Keating 2c910b
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.1-1
Jesse Keating 2c910b
- New tarball release with correct license files
Jesse Keating 2c910b
Jesse Keating 2c910b
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.0-2
Jesse Keating 2c910b
- Fix up things found in review
Jesse Keating 2c910b
Jesse Keating 2c910b
* Tue Jun 14 2011 Jesse Keating <jkeating@redhat.com> - 1.0-1
Jesse Keating 2c910b
- Initial package