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