Jesse Keating 2c910bd
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
Jesse Keating 2c910bd
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Name:           rpkg
86c40d0
Version:        1.27
af93f2d
Release:        1%{?dist}
Jesse Keating 2c910bd
Summary:        Utility for interacting with rpm+git packaging systems
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Group:          Applications/System
Jesse Keating 2c910bd
License:        GPLv2+ and LGPLv2
Jesse Keating 2c910bd
URL:            https://fedorahosted.org/rpkg
Jesse Keating 2c910bd
Source0:        https://fedorahosted.org/releases/r/p/rpkg/rpkg-%{version}.tar.gz
Jesse Keating 2c910bd
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Requires:       python-argparse
4bd419b
Requires:       pyrpkg >= %{version}-%{release}
Jesse Keating 2c910bd
Jesse Keating 8dd0e8e
# Use this to force plugins to update
Jesse Keating 8dd0e8e
Conflicts:      fedpkg <= 1.7
Jesse Keating 8dd0e8e
Jesse Keating 2c910bd
BuildArch:      noarch
Jesse Keating 2c910bd
BuildRequires:  python-devel, python-setuptools
Jesse Keating 2c910bd
# We br these things for man page generation due to imports
Jesse Keating 2c910bd
BuildRequires:  GitPython, koji, python-pycurl
Jesse Keating 2c910bd
BuildRequires:  python-hashlib
Jesse Keating 2c910bd
BuildRequires:  python-argparse
Jesse Keating 2c910bd
BuildRequires:  python-kitchen
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%description
Jesse Keating 2c910bd
A tool for managing RPM package sources in a git repository.
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%package -n pyrpkg
Jesse Keating 2c910bd
Summary:        Python library for interacting with rpm+git
Jesse Keating 2c910bd
Group:          Applications/Databases
Jesse Keating 2c910bd
Requires:       GitPython >= 0.2.0, python-argparse
Jesse Keating 2c910bd
Requires:       python-pycurl, koji
Jesse Keating 2c910bd
Requires:       rpm-build, rpm-python
Jesse Keating 2c910bd
Requires:       rpmlint, mock, curl, openssh-clients, redhat-rpm-config
Jesse Keating 2c910bd
Requires:       python-kitchen
Jesse Keating 2c910bd
Requires:       python-hashlib
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%description -n pyrpkg
Jesse Keating 2c910bd
A python library for managing RPM package sources in a git repository.
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%prep
Jesse Keating 2c910bd
%setup -q
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%build
Jesse Keating 2c910bd
%{__python} setup.py build
Jesse Keating 2c910bd
%{__python} src/rpkg_man_page.py > rpkg.1
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%install
Jesse Keating 2c910bd
rm -rf $RPM_BUILD_ROOT
Jesse Keating 2c910bd
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
Jesse Keating 2c910bd
%{__install} -d $RPM_BUILD_ROOT%{_mandir}/man1
Jesse Keating 2c910bd
%{__install} -p -m 0644 rpkg.1 $RPM_BUILD_ROOT%{_mandir}/man1
Jesse Keating 2c910bd
Jesse Keating 2c910bd
 
Jesse Keating 2c910bd
%clean
Jesse Keating 2c910bd
rm -rf $RPM_BUILD_ROOT
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%files
Jesse Keating 2c910bd
%config(noreplace) %{_sysconfdir}/rpkg
Jesse Keating 2c910bd
%{_sysconfdir}/bash_completion.d
Jesse Keating 2c910bd
%{_bindir}/%{name}
Jesse Keating 2c910bd
%{_mandir}/*/*
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%files -n pyrpkg
Jesse Keating 2c910bd
%doc COPYING COPYING-koji LGPL README
Jesse Keating 2c910bd
# For noarch packages: sitelib
Jesse Keating 2c910bd
%{python_sitelib}/pyrpkg
Jesse Keating 2c910bd
%{python_sitelib}/rpkg-%{version}-py?.?.egg-info
Jesse Keating 2c910bd
Jesse Keating 2c910bd
Jesse Keating 2c910bd
%changelog
86c40d0
* Fri Sep 26 2014 Pavol Babincak <pbabinca@redhat.com> - 1.27-1
86c40d0
- Explicitly define pyrpkg's client name for man pages (pbabinca)
86c40d0
- Refactor mock results dir to property (pbabinca)
86c40d0
- Add skip-diffs option for import_srpms (lars)
86c40d0
- Properly remove possible .py when creating man pages (lars)
86c40d0
- Process srpm imports to empty repositories more explicitly (pbabinca)
86c40d0
- Make UPLOADEXTS a class variable that can be extended (lars)
86c40d0
- Introduce self.default_branch_remote for fresh clones (pbabinca)
86c40d0
- On self.path change reset properties which could used old value (pbabinca)
86c40d0
- Remove empty entry from git ls-files to not confuse following code (pbabinca)
86c40d0
- Remove file names during srpm import in more extensible way (pbabinca)
86c40d0
- Fix issue causing all current local builds via fedpkg to use md5 rather than
86c40d0
  sha256 (spot)
86c40d0
- License replaced with official GPL 2.0 license from gnu.org (pbabinca)
86c40d0
- Allow "rpkg commit -s" (pjones)
86c40d0
2c1f55c
* Tue Jul 29 2014 Pavol Babincak <pbabinca@redhat.com> - 1.26-1
2c1f55c
- rpkg doesn't have a python module so use pyrpkg instead (pbabinca)
2c1f55c
9fc2936
* Tue Jul 29 2014 Pavol Babincak <pbabinca@redhat.com> - 1.25-1
9fc2936
- 1.25 release (pbabinca)
9fc2936
- Note to do_imports() doc. (pbabinca)
9fc2936
- Change default option for switch-branch from --no-fetch to --fetch (pbabinca)
9fc2936
- Allow default name of the library to be set by subclasses (pbabinca)
9fc2936
- Use name attribute of cliClient to get configuration (pbabinca)
9fc2936
- Make setup.py executable (pbabinca)
9fc2936
- Use direct git call for fetches (pbabinca)
9fc2936
- Print reason for failed switch-branch (pbabinca)
9fc2936
- Match whole branch with remote name when switching branch (pbabinca)
9fc2936
- Refactor: deduplicate remote & branch_merge (pbabinca)
9fc2936
- De-hardcode 'origin' as the remote name (bochecha)
9fc2936
- Fallback the remote on 'origin' (bochecha)
9fc2936
af93f2d
* Mon Jun 09 2014 Pavol Babincak <pbabinca@redhat.com> - 1.24-1
af93f2d
- 1.24 release (pbabinca)
af93f2d
- Work around signed srpms (Till Maas)
af93f2d
- Properly raise the error (bochecha)
af93f2d
- Ability to skip NVR construction altogether for builds (pbabinca)
af93f2d
- If we failed to parse NVRE from rpm output use better error message
af93f2d
  (pbabinca)
af93f2d
- If command to get NVRE printed anything to stderr log that command (pbabinca)
af93f2d
- Refactor: correctly split string on multi lines (pbabinca)
af93f2d
- Use nvr_check as an optional argument for build (pbabinca)
af93f2d
- 1.23 release (pbabinca)
af93f2d
- Use module_name setter instead of constructor parameter (pbabinca)
af93f2d
- Set pushurl & branch_remote by default (pbabinca)
af93f2d
- 1.22 release (pbabinca)
af93f2d
- Define module name from command line, git url and lastly from spec (pbabinca)
af93f2d
- Revert "Define module name from command line, git url and lastly from spec"
af93f2d
  (pbabinca)
af93f2d
a27b3ad
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.21-2
a27b3ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a27b3ad
94bc02f
* Mon Mar 24 2014 Pavol Babincak <pbabinca@redhat.com> - 1.21-1
94bc02f
- Refactor: split strings on multi lines without spaces from indentation
94bc02f
  (pbabinca)
94bc02f
- Refactor: remove spaces at the end of lines (pbabinca)
94bc02f
- Define module name from command line, git url and lastly from spec (pbabinca)
94bc02f
- Option to skip NVR existence check in build system before build (pbabinca)
94bc02f
- Add an 'epoch' property to pyrpkg.Commands (bochecha)
94bc02f
- Fetch remotes before switch-branch by default (pbabinca)
94bc02f
- Protect rhpkg's --arches argument (pbabinca)
94bc02f
cb5758d
* Tue Feb 18 2014 Dennis Gilmore <dennis@ausil.us> - 1.20-1
cb5758d
- read krbservice from the koji config file (dennis)
cb5758d
- We can assume that rpkg is installed if the (ville.skytta)
cb5758d
- clog: Don't require empty line between changelog entries. (ville.skytta)
cb5758d
- Spelling fixes. (ville.skytta)
cb5758d
- expand %%{name} and %%{verion} macros when checking for unused_patches check
cb5758d
  for .patch and .diff files as patches (dennis)
cb5758d
- clean up some language ambiguities (dennis)
cb5758d
- clog: Support %changelog tag written in non-lowercase. (ville.skytta)
cb5758d
- add spkg as a binary file extention rhbz#972903 (dennis)
cb5758d
- Fixed version to 1.19 (pbabinca)
cb5758d
- Don't track spec file here (pbabinca)
cb5758d
- 1.20 (pbabinca)
cb5758d
- Mock config temp dir in the form $(target)-$(localarch).$(mktemp)mockconfig
cb5758d
  (pbabinca)
cb5758d
36defc8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.19-2
36defc8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
36defc8
f9c823c
* Mon Apr 08 2013 Pavol Babincak <pbabinca@redhat.com> - 1.19-1
f9c823c
- Generate mock-config for mockbuild if needed (rhbz#856928) (pbabinca)
f9c823c
2a14c6e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-4
2a14c6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2a14c6e
4bd419b
* Fri Aug 10 2012 Robert Scheck <robert@fedoraproject.org> - 1.18-3
4bd419b
- Require %%{version}-%%{release} rather %%{name}-%%{version}
4bd419b
db38ffe
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18-2
db38ffe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
db38ffe
Jesse Keating 7b390f8
* Mon Apr 16 2012 Jesse Keating <jkeating@redhat.com> - 1.18-1
Jesse Keating 7b390f8
- Use rpmdefines when querying for package name
Jesse Keating 7b390f8
Jesse Keating 0cd195a
* Mon Apr 09 2012 Jesse Keating <jkeating@redhat.com> - 1.17-1
Jesse Keating 0cd195a
- Don't assume master branch for chain builds (jkeating)
Jesse Keating 0cd195a
Jesse Keating fa5faff
* Mon Mar 26 2012 Jesse Keating <jkeating@redhat.com> - 1.16-1
Jesse Keating fa5faff
- Only read from .koji/config (jkeating)
Jesse Keating fa5faff
Jesse Keating c5d4be7
* Wed Mar 21 2012 Jesse Keating <jkeating@redhat.com> - 1.15-1
Jesse Keating c5d4be7
- Fix branch push warning (jkeating)
Jesse Keating c5d4be7
- Handle CVS based builds when getting build hash (jkeating)
Jesse Keating c5d4be7
Jesse Keating d2090b9
* Mon Mar 12 2012 Jesse Keating <jkeating@redhat.com> - 1.14-1
Jesse Keating d2090b9
- Warn if the checked out branch cannot be pushed (jkeating)
Jesse Keating d2090b9
- Warn if commit or tag fails and we don't push (#21) (jkeating)
Jesse Keating d2090b9
- Honor ~/.koji/config (rhbz#785776) (jkeating)
Jesse Keating d2090b9
- Update help output for switch-branch (rhbz#741742) (jkeating)
Jesse Keating d2090b9
Jesse Keating 8dd0e8e
* Thu Mar 01 2012 Jesse Keating <jkeating@redhat.com> - 1.13-1
Jesse Keating 8dd0e8e
- Return proper exit code from builds (#20) (jkeating)
Jesse Keating 8dd0e8e
- Fix md5 option in the build parser (jkeating)
Jesse Keating 8dd0e8e
- More completion fixes (jkeating)
Jesse Keating 8dd0e8e
- Add mock-config and mockbuild completion (jkeating)
Jesse Keating 8dd0e8e
- Simplify test for rpkg availability. (ville.skytta)
Jesse Keating 8dd0e8e
- Fix ~/... path completion. (ville.skytta (jkeating)
Jesse Keating 8dd0e8e
- Add a --raw option to clog (#15) (jkeating)
Jesse Keating 8dd0e8e
- Make things quiet when possible (jkeating)
Jesse Keating 8dd0e8e
- Fix up figuring out srpm hash type (jkeating)
Jesse Keating 8dd0e8e
- Allow defining an alternative builddir (jkeating)
Jesse Keating 8dd0e8e
- Conflict with older fedpkg (jkeating)
Jesse Keating 8dd0e8e
- Attempt to automatically set the md5 flag (jkeating)
Jesse Keating 8dd0e8e
- Use -C not -c for config.  (#752411) (jkeating)
Jesse Keating 8dd0e8e
- Don't check gpg sigs when importing srpms (ticket #16) (jkeating)
Jesse Keating 8dd0e8e
- Enable md5 option in mockbuild (twaugh) (jkeating)
Jesse Keating 8dd0e8e
Jesse Keating 8b61b01
* Tue Jan 24 2012 Jesse Keating <jkeating@redhat.com> - 1.12-1
Jesse Keating 8b61b01
- Fix mock-config (ticket #13) (jkeating)
Jesse Keating 8b61b01
- Make md5 a common build argument (jkeating)
Jesse Keating 8b61b01
- Move arches to be a common build argument (ticket #3) (jkeating)
Jesse Keating 8b61b01
- Find remote branch to track better (jkeating)
Jesse Keating 8b61b01
Jesse Keating 7a42065
* Fri Jan 13 2012 Jesse Keating <jkeating@redhat.com> - 1.11-1
Jesse Keating 7a42065
- Change clog output to be more git-like (sochotnicky)
Jesse Keating 7a42065
- Fix mockconfig property (bochecha)
Jesse Keating 7a42065
- Use only new-style classes everywhere. (bochecha)
Jesse Keating 7a42065
- Testing for access before opening a file is unsafe (bochecha)
Jesse Keating 7a42065
- Add a gitbuildhash command (jkeating)
Jesse Keating 7a42065
- Always make sure you have a absolute path (aj) (jkeating)
Jesse Keating 7a42065
- don't try to import brew, just do koji (jkeating)
3b75759
Jesse Keating 1f9a119
* Mon Nov 21 2011 Jesse Keating <jkeating@redhat.com> - 1.10-1
Jesse Keating 1f9a119
- Use -C for --config shortcut (jkeating)
Jesse Keating 1f9a119
- Don't leave a directory on failure (#754082) (jkeating)
Jesse Keating 1f9a119
- Fix chain build (#754189) (jkeating)
Jesse Keating 1f9a119
- Don't hardcode brew here (jkeating)
Jesse Keating 1f9a119
Jesse Keating 91f81c5
* Mon Nov 07 2011 Jesse Keating <jkeating@redhat.com> - 1.9-1
Jesse Keating 91f81c5
- Don't upload if there is nothing to upload. (jkeating)
Jesse Keating 91f81c5
- --branch option for import is not supported yet (jkeating)
Jesse Keating 91f81c5
- Add epilog about mock-config generation (jkeating)
Jesse Keating 91f81c5
- Don't assume we can create a folder named after the module. (bochecha)
Jesse Keating 91f81c5
- Fix passing the optional mock root to mockbuild (bochecha)
Jesse Keating 91f81c5
- Add missing registration for mockbuild target (bochecha)
Jesse Keating 91f81c5
- Make the clean target work with --path. (bochecha)
Jesse Keating 91f81c5
- Fix typo in a comment. (bochecha)
Jesse Keating 91f81c5
- Fix syntax error in main script. (bochecha)
Jesse Keating 91f81c5
- Fix typo. (bochecha)
Jesse Keating 91f81c5
Jesse Keating 25b4695
* Fri Oct 28 2011 Jesse Keating <jkeating@redhat.com> - 1.8-1
Jesse Keating 25b4695
- Get more detailed error output from lookaside (jkeating)
Jesse Keating 25b4695
- Move the curl call out to it's own function (jkeating)
Jesse Keating 25b4695
- Hide build_common from help/usage (jkeating)
Jesse Keating 25b4695
- Fix the help command (jkeating)
Jesse Keating 25b4695
Jesse Keating 1dba350
* Tue Oct 25 2011 Jesse Keating <jkeating@redhat.com> - 1.7-1
Jesse Keating 1dba350
- Support a manually specified mock root (jkeating)
Jesse Keating 1dba350
- Add a mock-config subcommand (jkeating)
Jesse Keating 1dba350
- Fix a traceback on error. (jkeating)
Jesse Keating 1dba350
- Remove debugging code (jkeating)
Jesse Keating 1dba350
- More git api updates (jkeating)
Jesse Keating 1dba350
- Add topurl as a koji config and property (jkeating)
Jesse Keating 1dba350
- Add a mockconfig property (jkeating)
Jesse Keating 1dba350
- Turn the latest commit into a property (jkeating)
Jesse Keating 1dba350
Jesse Keating a439dca
* Tue Sep 20 2011 Jesse Keating <jkeating@redhat.com> - 1.6-1
Jesse Keating a439dca
- Allow name property to load by itself (jkeating)
Jesse Keating a439dca
Jesse Keating 5f23912
* Mon Sep 19 2011 Jesse Keating <jkeating@redhat.com> - 1.5-1
Jesse Keating 5f23912
- Fix tag listing (#717528) (jkeating)
Jesse Keating 5f23912
- Revamp n-v-r property loading (#721389) (jkeating)
Jesse Keating 5f23912
- Don't use os.getlogin (jkeating)
Jesse Keating 5f23912
- Code style changes (jkeating)
Jesse Keating 5f23912
- Allow fedpkg lint to be configurable and to check spec file. (pingou)
Jesse Keating 5f23912
- Handle non-scratch srpm builds better (jkeating)
Jesse Keating 5f23912
Jesse Keating 393f694
* Wed Aug 17 2011 Jesse Keating <jkeating@redhat.com> - 1.4-1
Jesse Keating 393f694
- Be more generic when no spec file is found (jkeating)
Jesse Keating 393f694
- Hint about use of git status when dirty (jkeating)
Jesse Keating 393f694
- Don't use print when we can log.info it (jkeating)
Jesse Keating 393f694
- Don't exit from a library (jkeating)
Jesse Keating 393f694
- Do the rpm query in our module path (jkeating)
Jesse Keating 393f694
- Use git's native ability to checkout a branch (jkeating)
Jesse Keating 393f694
- Use keyword arg with clone (jkeating)
Jesse Keating 393f694
- Allow the on-demand generation of an srpm (jkeating)
Jesse Keating 393f694
- Fix up exit codes (jkeating)
Jesse Keating 393f694
Jesse Keating 8c0b16c
* Mon Aug 01 2011 Jesse Keating <jkeating@redhat.com> - 1.3-1
Jesse Keating 8c0b16c
- Fix a debug string (jkeating)
Jesse Keating 8c0b16c
- Set the right property (jkeating)
Jesse Keating 8c0b16c
- Make sure we have a default hashtype (jkeating)
Jesse Keating 8c0b16c
- Use underscore for the dist tag (jkeating)
Jesse Keating 8c0b16c
- Fix the kojiweburl property (jkeating)
Jesse Keating 8c0b16c
Jesse Keating 8181e2e
* Wed Jul 20 2011 Jesse Keating <jkeating@redhat.com> - 1.2-1
Jesse Keating 8181e2e
- Fill out the krb_creds function (jkeating)
Jesse Keating 8181e2e
- Fix the log message (jkeating)
Jesse Keating 8181e2e
- site_setup is no longer needed (jkeating)
Jesse Keating 8181e2e
- Remove some rhtisms (jkeating)
Jesse Keating 8181e2e
- Wire up the patch command in client code (jkeating)
Jesse Keating 8181e2e
- Add a patch command (jkeating)
Jesse Keating 8181e2e
Jesse Keating 2c910bd
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.1-2
Jesse Keating 2c910bd
- Use version macro in files
Jesse Keating 2c910bd
Jesse Keating 2c910bd
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.1-1
Jesse Keating 2c910bd
- New tarball release with correct license files
Jesse Keating 2c910bd
Jesse Keating 2c910bd
* Fri Jun 17 2011 Jesse Keating <jkeating@redhat.com> - 1.0-2
Jesse Keating 2c910bd
- Fix up things found in review
Jesse Keating 2c910bd
Jesse Keating 2c910bd
* Tue Jun 14 2011 Jesse Keating <jkeating@redhat.com> - 1.0-1
Jesse Keating 2c910bd
- Initial package