3b57560
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3b57560
3b57560
Name:           python-xmltramp
3b57560
Version:        2.17
b2b0c13
Release:        21%{?dist}
3b57560
Summary:        Pythonic API for XML
3b57560
3b57560
Group:          Development/Languages
3b57560
License:        GPLv2
3b57560
# License text is not present in the upstream file, though clearly marked as GPLv2
3b57560
# See https://www.redhat.com/archives/fedora-legal-list/2008-January/msg00010.html
3b57560
3b57560
URL:            http://www.aaronsw.com/2002/xmltramp/
3b57560
Source0:        http://www.aaronsw.com/2002/xmltramp/xmltramp-%{version}.py
f4bf351
Patch0:         %{name}-%{version}-nsprefixes.patch
3b57560
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3b57560
3b57560
BuildArch:      noarch
94779d9
BuildRequires:  python2-devel
3b57560
40c9822
%global _description\
3b57560
xmltramp is a simple Pythonic API for working with XML
3b57560
40c9822
%description %_description
40c9822
40c9822
%package -n python2-xmltramp
40c9822
Summary: %summary
40c9822
%{?python_provide:%python_provide python2-xmltramp}
40c9822
40c9822
%description -n python2-xmltramp %_description
40c9822
3b57560
%prep
3b57560
%setup -c -T
f4bf351
cp -p %{SOURCE0} xmltramp.py
f4bf351
%patch0 -p1 -b.nsprefixes
3b57560
3b57560
%build
3b57560
# noarch
3b57560
f4bf351
%check
f4bf351
%{__python} xmltramp.py
f4bf351
3b57560
%install
3b57560
rm -rf $RPM_BUILD_ROOT
3b57560
mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/
f4bf351
cp -p xmltramp.py $RPM_BUILD_ROOT/%{python_sitelib}/
3b57560
3b57560
 
3b57560
%clean
3b57560
rm -rf $RPM_BUILD_ROOT
3b57560
3b57560
40c9822
%files -n python2-xmltramp
3b57560
%defattr(-,root,root,-)
3b57560
%{python_sitelib}/xmltramp.py*
3b57560
3b57560
3b57560
%changelog
b2b0c13
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-21
b2b0c13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2b0c13
94779d9
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.17-20
94779d9
- Update Python 2 dependency declarations to new packaging standards
94779d9
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
94779d9
40c9822
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.17-19
40c9822
- Python 2 binary package renamed to python2-xmltramp
40c9822
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
40c9822
d80af63
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-18
d80af63
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d80af63
27a5ae0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-17
27a5ae0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
27a5ae0
e7e423f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.17-16
e7e423f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e7e423f
fa2ee16
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-15
fa2ee16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fa2ee16
1353456
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-14
1353456
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1353456
1726d6d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-13
1726d6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
1726d6d
f4bf351
* Fri Jun 07 2013 Dan Callaghan <dcallagh@redhat.com> - 2.17-12
f4bf351
- Patch for RHBZ#750694
f4bf351
ca04263
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-11
ca04263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ca04263
7f9f125
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-10
7f9f125
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7f9f125
d9a0199
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-9
d9a0199
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d9a0199
a03692d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-8
a03692d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a03692d
34dfbae
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 2.17-7
34dfbae
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
34dfbae
4ec3feb
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-6
4ec3feb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4ec3feb
1090913
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.17-5
1090913
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
1090913
43b0f28
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 2.17-4
43b0f28
- Rebuild for Python 2.6
43b0f28
3b57560
* Fri Jan 18 2008 David Malcolm <dmalcolm@redhat.com> - 2.17-3
3b57560
- add comment in specfile about the License text
3b57560
3b57560
* Tue Nov 13 2007 David Malcolm <dmalcolm@redhat.com> - 2.17-2
3b57560
- fix License tag
3b57560
- fix capitalization of Summary tag
3b57560
- preserve timestamp when installing
3b57560
3b57560
* Fri Aug  3 2007 David Malcolm <dmalcolm@redhat.com> - 2.17-1
3b57560
- initial packaging
3b57560