1e2159b
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
1e2159b
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
1e2159b
%endif
1e2159b
c028b16
Name:           fedora-packager
Jesse Keating 35493ee
Version:        0.5.5.0
Jesse Keating 0999987
Release:        1%{?dist}
c028b16
Summary:        Tools for setting up a fedora maintainer environment
c028b16
c028b16
Group:          Applications/Productivity
c028b16
License:        GPLv2+
e58ac0c
URL:            https://fedorahosted.org/fedora-packager
4dc8524
Source0:        https://fedorahosted.org/releases/f/e/fedora-packager/fedora-packager-%{version}.tar.bz2
c028b16
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
c028b16
1e2159b
BuildRequires:  python-devel
4dc8524
Requires:       koji bodhi-client 
c028b16
Requires:       rpm-build rpmdevtools rpmlint
31b371b
Requires:       mock curl openssh-clients
674ab33
Requires:       pyOpenSSL
d3199a7
Requires:       redhat-rpm-config
31b371b
Requires:       fedpkg = %{version}-%{release}
5a39cde
Requires:       fedora-cert = %{version}-%{release}
5a39cde
Requires:       ykpers
c028b16
c028b16
BuildArch:      noarch
c028b16
c028b16
%description
c028b16
Set of utilities useful for a fedora packager in setting up their environment.
c028b16
31b371b
%package     -n fedpkg
31b371b
Summary:        fedora utility for working with dist-git
31b371b
Group:          Applications/Databases
674ab33
Requires:       GitPython >= 0.2.0, python-argparse
2c95577
Requires:       python-pycurl, koji, python-fedora
5a39cde
Requires:       fedora-cert = %{version}-%{release}
7637f08
Requires:       python-offtrac
31b371b
%if 0%{?rhel} == 5 || 0%{?rhel} == 4
31b371b
Requires:       python-kitchen
31b371b
%endif
31b371b
31b371b
%description -n fedpkg
31b371b
Provides the fedpkg command for working with dist-git
31b371b
Jesse Keating a5060f3
5a39cde
%package     -n fedora-cert
5a39cde
Summary:        fedora-cert tool and python library
5a39cde
Group:          Applications/Databases
5a39cde
Requires:       pyOpenSSL
dfbd01b
Requires:       python-pycurl
5a39cde
%if 0%{?rhel} == 5 || 0%{?rhel} == 4
5a39cde
Requires:       python-kitchen
5a39cde
%endif
5a39cde
5a39cde
%description -n fedora-cert
5a39cde
Provides fedora-cert and the fedora_cert python library
5a39cde
5a39cde
c028b16
%prep
c028b16
%setup -q
c028b16
c028b16
%build
c028b16
%configure
c028b16
make %{?_smp_mflags}
c028b16
c028b16
%install
c028b16
rm -rf $RPM_BUILD_ROOT
c028b16
make install DESTDIR=$RPM_BUILD_ROOT
c028b16
c028b16
c028b16
%clean
c028b16
rm -rf $RPM_BUILD_ROOT
c028b16
c028b16
c028b16
%files
c028b16
%defattr(-,root,root,-)
c028b16
%doc COPYING TODO AUTHORS ChangeLog
b3996a7
%{_bindir}/*
5a39cde
%{_sbindir}/*
31b371b
%exclude %{_bindir}/fedpkg
5a39cde
%exclude %{_bindir}/fedora-cert
5a39cde
5a39cde
%files -n fedora-cert
5a39cde
%defattr(-,root,root,-)
d609523
%doc COPYING TODO AUTHORS ChangeLog
5a39cde
%{_bindir}/fedora-cert
1e2159b
%{python_sitelib}/fedora_cert
c028b16
31b371b
%files -n fedpkg
31b371b
%defattr(-,root,root,-)
d609523
%doc COPYING TODO AUTHORS ChangeLog
31b371b
%{_bindir}/fedpkg
31b371b
%{python_sitelib}/pyfedpkg
Jesse Keating a5060f3
%{_sysconfdir}/bash_completion.d
Jesse Keating 0999987
%{_mandir}/*/*
Jesse Keating a5060f3
31b371b
c028b16
%changelog
Jesse Keating 35493ee
* Wed Feb 09 2011 Jesse Keating <jkeating@redhat.com> - 0.5.5.0-1
Jesse Keating 35493ee
- Re-add 'lint' command hookup into argparse magic (hun)
Jesse Keating 35493ee
- Catch errors parsing spec to get name. (#676383) (jkeating)
Jesse Keating 35493ee
Jesse Keating 0999987
* Wed Feb 09 2011 Jesse Keating <jkeating@redhat.com> - 0.5.4.0-1
Jesse Keating 0999987
- Re-arrange verify-files and slight fixups (jkeating)
Jesse Keating 0999987
- Add "fedpkg verify-files" command (hun)
Jesse Keating 0999987
- Provide feedback about new-ticket. (ticket 91) (jkeating)
Jesse Keating 0999987
- Add the new pull options to bash completion (jkeating)
Jesse Keating 0999987
- Add a --rebase and --no-rebase option to pull (jkeating)
Jesse Keating 0999987
- Update the documentation for a lot of commands (jkeating)
Jesse Keating 0999987
- Handle working from a non-existent path (#675398) (jkeating)
Jesse Keating 0999987
- Fix an traceback when failing to watch a build. (jkeating)
Jesse Keating 0999987
- Handle arches argument for scratch builds (#675285) (jkeating)
Jesse Keating 0999987
- Trim the "- " out of clogs.  (#675892) (jkeating)
Jesse Keating 0999987
- Exit with an error when appropriate (jkeating)
Jesse Keating 0999987
- Add build time man page generator (hun)
Jesse Keating 0999987
- Add help text for global --user option (hun)
Jesse Keating 0999987
- Move argparse setup into parse_cmdline function (hun)
Jesse Keating 0999987
- Require python-hashlib on EL5 and 4 (jkeating)
Jesse Keating 0999987
- Catch a traceback when trying to build from local branch (jkeating)
8dcac89
Jesse Keating 7cae2c6
* Mon Jan 31 2011 Jesse Keating <jkeating@redhat.com> 0.5.3.0-1
Jesse Keating 7cae2c6
- Catch the case where there is no branch merge point (#622592) (jkeating)
Jesse Keating 7cae2c6
- Fix whitespace (jkeating)
Jesse Keating 7cae2c6
- Add an argument to override the "distribution" (jkeating)
Jesse Keating 7cae2c6
- upload to lookaside cache tgz files (dennis)
Jesse Keating 7cae2c6
- Handle traceback if koji is down or unreachable. (jkeating)
Jesse Keating 7cae2c6
- If we don't have a remote branch, query koji (#619979) (jkeating)
Jesse Keating 7cae2c6
- Add a method to create an anonymous koji session (jkeating)
Jesse Keating 7cae2c6
- Make sure we have sources for mockbuild (#665555) (jwboyer) (jkeating)
Jesse Keating 7cae2c6
- Revert "Make sure we have an srpm when doing a mockbuild (#665555)" (jkeating)
Jesse Keating 7cae2c6
- Regenerate the srpm if spec file is newer (ticket #84) (jkeating)
Jesse Keating 7cae2c6
- Improve cert failure message (Ticket 90) (jkeating)
Jesse Keating 7cae2c6
- Get package name from the specfile. (Ticket 75) (jkeating)
Jesse Keating 7cae2c6
- Handle anonymous clones in clone_with_dirs. (#660183) (ricky)
Jesse Keating 7cae2c6
- Make sure we have an srpm when doing a mockbuild (#665555) (jkeating)
Jesse Keating 7cae2c6
- Catch all errors from watching tasks. (#670305) (jkeating)
Jesse Keating 7cae2c6
- Fix a traceback when koji goes offline (#668889) (jkeating)
Jesse Keating 7cae2c6
- Fix traceback with lint (ticket 89) (jkeating)
Jesse Keating 7cae2c6
f6a3472
* Wed Jan 05 2011 Dennis Gilmore <dennis@ausil.us> - 0.5.2.0-1
Jesse Keating 0999987
- new release see ChangeLog
5a39cde
Jesse Keating e2a17c0
* Tue Aug 24 2010 Jesse Keating <jkeating@redhat.com> - 0.5.1.4-1
Jesse Keating e2a17c0
- Fix setting push.default when cloning with dirs
Jesse Keating e2a17c0
- Remove build --test option in bash completion
Jesse Keating e2a17c0
Jesse Keating a5060f3
* Mon Aug 23 2010 Jesse Keating <jkeating@redhat.com> - 0.5.1.3-1
Jesse Keating a5060f3
- Error check the update call.  #625679
Jesse Keating a5060f3
- Use the correct remote when listing revs
Jesse Keating a5060f3
- Add the bash completion file
Jesse Keating a5060f3
- make fedora-cvs only do anonymous chackouts since cvs is read only now.
Jesse Keating a5060f3
- re-fix dist defines.
Jesse Keating a5060f3
- Short cut the failure on repeated builds
Jesse Keating a5060f3
- Allow passing srpms to the build command
Jesse Keating a5060f3
- clone: set repo's push.default to tracking
Jesse Keating a5060f3
- pull the username from fedora_cert to pass to bodhi
Jesse Keating a5060f3
- Catch double ^c's from build.  RHBZ #620465
Jesse Keating a5060f3
- Fix up chain building
Jesse Keating a5060f3
- Add missing process call for non-pipe no tty.
c122716
8415c56
* Thu Aug 12 2010 Dennis Gilmore <dennis@asuil.us> - 0.5.1.2-1
8415c56
- fix rh bz 619733 619879 619935 620254 620465 620595 620648
8415c56
- 620653 620750 621148 621808 622291 622716
8415c56
31b371b
* Fri Jul 30 2010 Dennis Gilmore <dennis@ausil.us> -0.5.1.0-2
31b371b
- split fedpkg out on its own
31b371b
Jesse Keating a5060f3
* Thu Jul 29 2010 Dennis Gilmore <dennis@ausil.us> - 0.5.1.0-1
5578c9d
- wrap fedora-cert in try except 
5578c9d
- fedpkg fixes
5578c9d
- require python-kitchen on EL-4 and 5
5578c9d
0eb956c
* Wed Jul 28 2010 Dennis Gilmore <dennis@ausil.us> - 0.5.0.1-1
0eb956c
- Fix checking for unpushed changes on a branch
0eb956c
Jesse Keating a5060f3
* Wed Jul 28 2010 Dennis Gilmore <dennis@ausil.us> - 0.5.0-1
Jesse Keating a5060f3
- update to 0.5.0 with the switch to dist-git
7303ac3
90f6f02
* Thu Jul 08 2010 Dennis Gilmore <dennis@ausil.us> - 0.4.2.2-1
90f6f02
- new release with lost of fedpkg fixes
90f6f02
00e773e
* Mon Jun 14 2010 Dennis Gilmore <dennis@ausil.us> - 0.4.2.1-1
00e773e
- set devel for F-14
00e773e
- point builds to koji.stg
00e773e
- correctly create a git url for koji
00e773e
1fd40aa
* Tue Mar 23 2010 Dennis Gilmore <dennis@ausil.us> - 0.4.2-1
1fd40aa
- update to 0.4.2
1fd40aa
- adds missing fedora_cert. in fedora-packager-setup bz#573941
1fd40aa
- Require python-argparse for fedpkg bz#574206
1fd40aa
- Require make and openssh-clients bz#542209
1fd40aa
- Patch to make cvs checkouts more robust bz#569954
1fd40aa
e989f7b
* Wed Mar 03 2010 Dennis Gilmore <dennis@ausil.us> - 0.4.1-1
e989f7b
- update to 0.4.1 
e989f7b
- adds a missing "import sys" from fedora-cert bz#570370
e989f7b
- Require GitPython for fedpkg
e989f7b
1e2159b
* Fri Feb 26 2010 Dennis Gilmore <dennis@ausil.us> - 0.4.0-1
1e2159b
- update to 0.4.0 adds fedpkg 
1e2159b
- make a fedora_cert python library 
1e2159b
- add basic date check for certs 
1e2159b
0986e20
* Tue Aug 04 2009 Jesse Keating <jkeating@redhat.com> - 0.3.8-1
0986e20
- Add fedora-hosted and require offtrac
0986e20
6485dc6
* Thu Jul 30 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.7-1
6485dc6
- define user_cert in fedora-cvs before refrencing it 
6485dc6
f6b2e6b
* Tue Jul 28 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.6-1
f6b2e6b
- use anon checkout when a fedora cert doesnt exist bz#514108
f6b2e6b
- quote arguments passed onto rpmbuild bz#513269
f6b2e6b
81b9f20
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.5-2
81b9f20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
81b9f20
444c4cc
* Mon Jul 13 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.5-1
444c4cc
- add new rpmbuild-md5 script to build old style hash srpms
444c4cc
- it is a wrapper around rpmbuild
444c4cc
d3199a7
* Mon Jul  6 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3.4-3
d3199a7
- add Requires: redhat-rpm-config to be sure fedora packagers are using all available macros
d3199a7
f82ce85
* Wed Jun 24 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.4-2
f82ce85
- minor bump
f82ce85
56a23a0
* Mon Jun 22 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.4-1
56a23a0
- update to 0.3.4 
56a23a0
- bugfix release with some new scripts
56a23a0
4dc8524
* Mon Mar 02 2009 Dennis Gilmore <dennis@ausil.us> - 0.3.3-1
4dc8524
- update to 0.3.3
4dc8524
9531c7d
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-2
9531c7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9531c7d
1e82930
* Mon Aug 18 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.1-1
1e82930
- update to 0.3.1 fedora-cvs allows anonymous checkout
1e82930
- fix some Requires  add cvs curl and wget 
1e82930
7516a86
* Sun Mar 30 2008 Dennis Gilmore <dennis@ausil.us> - 0.3.0-1
7516a86
- update to 0.3.0 fedora-cvs uses pyOpenSSL to work out username
7516a86
- remove Requires on RCS's for fedora-hosted
7516a86
- rename fedora-packager-setup.sh to fedora-packager-setup
7516a86
e58ac0c
* Fri Feb 22 2008 Dennis Gilmore <dennis@ausil.us> - 0.2.0-1
e58ac0c
- new upstream release
e58ac0c
- update for fas2
e58ac0c
- fedora-cvs  can now check out multiple modules at once
7516a86
- only require git-core
e58ac0c
c028b16
* Mon Dec 03 2007 Dennis Gilmore <dennis@ausil.us> - 0.1.1-1
c028b16
- fix typo in description 
c028b16
- update to 0.1.1  fixes typo in fedora-cvs
c028b16
c028b16
* Sun Nov 11 2007 Dennis Gilmore <dennis@ausil.us> - 0.1-1
c028b16
- initial build