d27fad4
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
d27fad4
d27fad4
Name:           python-bugzilla
0946d77
Version:        0.6.2
b30f859
Release:        2%{?dist}
d27fad4
Summary:        A python library for interacting with Bugzilla
d27fad4
d27fad4
Group:          Development/Languages
d27fad4
License:        GPLv2+
0ce8345
URL:            https://fedorahosted.org/python-bugzilla
0946d77
Source0:        https://fedorahosted.org/releases/p/y/%{name}/%{name}-%{version}.tar.bz2
6af3b4c
d27fad4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d27fad4
d27fad4
BuildArch:      noarch
d27fad4
BuildRequires:  python-devel
d27fad4
%if 0%{?fedora} >= 8
d27fad4
BuildRequires: python-setuptools-devel
d27fad4
%else
d27fad4
BuildRequires: python-setuptools
d27fad4
%endif
d27fad4
2b7f6b3
# Only needed by the CLI - if you wanted to avoid this dep you could
2b7f6b3
# split the CLI into its own package..
2b7f6b3
Requires: python-magic
2b7f6b3
d27fad4
%description
d27fad4
python-bugzilla is a python library for interacting with bugzilla instances
3418463
over XML-RPC. This package also includes the 'bugzilla' command-line tool
3418463
for interacting with bugzilla from shell scripts.
d27fad4
0209e0b
d27fad4
%prep
31df1be
%setup -q
d27fad4
d27fad4
d27fad4
%build
d27fad4
%{__python} setup.py build
d27fad4
03d93e6
d27fad4
%install
d27fad4
rm -rf $RPM_BUILD_ROOT
d27fad4
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
d27fad4
 
03d93e6
d27fad4
%clean
d27fad4
rm -rf $RPM_BUILD_ROOT
d27fad4
d27fad4
d27fad4
%files
d27fad4
%defattr(-,root,root,-)
0946d77
%doc COPYING README THANKS TODO PKG-INFO
d27fad4
%{python_sitelib}/*
d27fad4
%{_bindir}/bugzilla
03d93e6
%{_mandir}/man1/bugzilla.1.gz
d27fad4
d27fad4
d27fad4
%changelog
b30f859
* Thu Jun 09 2011 Will Woods <wwoods@redhat.com> - 0.6.2-2
b30f859
- Add "Requires: python-magic"
b30f859
0946d77
* Tue Jun 07 2011 Will Woods <wwoods@redhat.com> - 0.6.2-1
0946d77
- add 'bugzilla attach' command (#707320)
0946d77
- update CLI --help, improve manpage a bit
0946d77
- fix --blocked and other boolean CLI options (#621601)
0946d77
- use NamedTemporaryFile for temp. cookiefiles (#625019)
0946d77
- fix openattachment() on non-ascii filenames (#663674 - thanks kklic)
0946d77
- clean up handling of unknown product names (#659331)
0946d77
- misc CLI fixes (--oneline, --qa_whiteboard), add 'modify --qa_contact'
0946d77
621b0cc
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-4
621b0cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
621b0cc
6af3b4c
* Thu Aug  5 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.1-3
6af3b4c
- add compatibility patch for python 2.7 (bug 621298)
6af3b4c
9083cc6
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.1-2
9083cc6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
9083cc6
269e4f3
* Fri Apr 16 2010 Will Woods <wwoods@redhat.com> - 0.6.1-1
269e4f3
- CLI speedup: skip version autodetection for bugzilla.redhat.com
269e4f3
- CLI: fix bug 581670 - UnicodeEncodeError crash using --outputformat
269e4f3
- CLI: fix bug 549186 - parser failure/xmlrpc Fault on 'bugzilla query'
269e4f3
- Library: fix bug 577327 - crash changing assignee without --comment
269e4f3
- Library: fix bug 580711 - crash when bug has empty CC list
269e4f3
- Library: add new Bugzilla36 class
269e4f3
- Library: export and autodetect Bugzilla34 and Bugzilla36 classes
269e4f3
3418463
* Tue Mar 2 2010 Will Woods <wwoods@redhat.com> - 0.6.0-1
3418463
- New version 0.6, with lots of improvements and fixes.
3418463
- Library: add NovellBugzilla implementation
3418463
- Library: use standardized LWPCookieJar by default
3418463
- Library: implement unicode(bug), fix Bug.__str__ unicode handling
3418463
- Library: make Bug class pickle-friendly
3418463
- Library: add flag info helper methods to Bug class
3418463
- Library: handle problems with missing fields in User class
3418463
- CLI: --oneline formatting tweaks and dramatic speed improvements
3418463
- CLI: add support for modifying private, status, assignee, flags, cc, fixed_in
3418463
- CLI: improve query: allow multiple flags, flag negation, handle booleans
3418463
- CLI: make --cc work when creating bugs
3418463
- CLI: new --raw output style
3418463
- CLI: special output format fields for flag and whiteboard
3418463
- CLI: fix broken --cc and -p flags
3418463
- CLI: fix problem where bz comments default to being private
3418463
- CLI: improve 'info --product' output
3418463
- CLI: handle socket/network failure cleanly
3418463
- CLI: allow adding comments when updating whiteboards
3418463
ac29521
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
ac29521
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ac29521
0ce8345
* Tue Apr 14 2009 Will Woods <wwoods@redhat.com> - 0.5.1-2
0ce8345
- Fix missing util.py
0ce8345
36fed7b
* Thu Apr 9 2009 Will Woods <wwoods@redhat.com> - 0.5.1-1
36fed7b
- CLI: fix unicode handling
36fed7b
- CLI: add --from-url flag, which parses a bugzilla query.cgi URL
36fed7b
- CLI: fix showing aliases
36fed7b
- CLI: add --comment, --private, --status, --assignee, --flag, --cc for update
36fed7b
- CLI: fix --target_milestone
36fed7b
31df1be
* Wed Mar 25 2009 Will Woods <wwoods@redhat.com> - 0.5-1
31df1be
- Fix problem where login wasn't saving the cookies to a file 
31df1be
- Fix openattachment (bug #487673)
31df1be
- Update version number for 0.5 final
31df1be
c282ea6
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5-0.rc1.1
c282ea6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c282ea6
31df1be
* Thu Feb 12 2009 Will Woods <wwoods@redhat.com> 0.5-0.rc1
6dfa806
- Improve cookie handling
6dfa806
- Add User class and associated Bugzilla methods (in Bugzilla 3.4)
6dfa806
- Add {add,edit,get}component methods
6dfa806
- Fix getbugs() so a single invalid bug ID won't abort the whole request
6dfa806
- CLI: fix -c <component>
6dfa806
446365b
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.4-0.rc4.1
446365b
- Rebuild for Python 2.6
446365b
b9e7d0f
* Wed Oct 15 2008 Will Woods <wwoods@redhat.com> 0.4-0.rc4
b9e7d0f
- CLI: fix traceback with --full (Don Zickus)
b9e7d0f
- CLI: add --oneline (Don Zickus)
b9e7d0f
- CLI: speedup when querying bugs by ID (Don Zickus)
b9e7d0f
- CLI: add --bztype
b9e7d0f
- CLI: --bug_status defaults to ALL
b9e7d0f
- Fix addcc()/deletecc()
b9e7d0f
- RHBugzilla3: raise useful error on getbug(unreadable_bug_id)
b9e7d0f
- Add adduser() (Jon Stanley)
b9e7d0f
b9e7d0f
* Fri Oct  8 2008 Will Woods <wwoods@redhat.com> 0.4-0.rc3
03d93e6
- Add updateperms() - patch courtesy of Jon Stanley
03d93e6
- Fix attachfile() for RHBugzilla3
03d93e6
- Actually install man page. Whoops.
03d93e6
298318c
* Thu Sep 18 2008 Will Woods <wwoods@redhat.com> 0.4-0.rc2
298318c
- Auto-generated man page with much more info
298318c
- Fix _attachfile()
298318c
cabcb1c
* Thu Sep  4 2008 Will Woods <wwoods@redhat.com> 0.4-0.rc1
cabcb1c
- Update to python-bugzilla 0.4-rc1
cabcb1c
- We now support upstream Bugzilla 3.x and Red Hat's Bugzilla 3.x instance
cabcb1c
- library saves login cookie in ~/.bugzillacookies
cabcb1c
- new 'bugzilla login' command to get a login cookie
cabcb1c
d50f252
* Sat Jan 12 2008 Will Woods <wwoods@redhat.com> 0.3-1
d50f252
- Update to python-bugzilla 0.3 
d50f252
- 'modify' works in the commandline-util
d50f252
- add Bug.close() and Bug.setstatus()
d50f252
d27fad4
* Thu Dec 13 2007 Will Woods <wwoods@redhat.com> 0.2-4
d27fad4
- use _bindir instead of /usr/bin and proper BR for setuptools
d27fad4
d27fad4
* Tue Dec 11 2007 Will Woods <wwoods@redhat.com> 0.2-3
d27fad4
- Fix a couple of things rpmlint complained about
d27fad4
d27fad4
* Tue Dec 11 2007 Will Woods <wwoods@redhat.com> 0.2-2
d27fad4
- Add docs
d27fad4
d27fad4
* Wed Oct 10 2007 Will Woods <wwoods@redhat.com> 0.2-1
d27fad4
- Initial packaging.