2318c09
%if 0%{?fedora} > 12 || 0%{?rhel} >= 8
2318c09
%global with_python3 1
2318c09
%endif
2318c09
2318c09
%{!?__python2:%global __python2 %{__python}}
2318c09
%{!?python2_sitelib:   %global python2_sitelib         %{python_sitelib}}
2318c09
%{!?python2_sitearch:  %global python2_sitearch        %{python_sitearch}}
2318c09
%{!?python2_version:   %global python2_version         %{python_version}}
2318c09
2318c09
2318c09
%global pypi_name XStatic
2318c09
2318c09
Name:           python-%{pypi_name}
2318c09
Version:        1.0.1
4d4eef5
Release:        14%{?dist}
2318c09
Summary:        XStatic base package with minimal support code
2318c09
2318c09
License:        MIT
2318c09
URL:            http://bitbucket.org/thomaswaldmann/xstatic
2318c09
Source0:        https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
2318c09
BuildArch:      noarch
2318c09
 
2318c09
BuildRequires:  python2-devel
b2bb626
BuildRequires:  python2-setuptools
2318c09
2318c09
2318c09
%description
2318c09
The goal of XStatic family of packages is to provide static
2318c09
file packages with minimal overhead - without selling you some 
2318c09
dependencies you don't want.
2318c09
2318c09
XStatic has some minimal support code for working with the
2318c09
XStatic-* packages.
2318c09
0b71a40
%package -n python2-%{pypi_name}
0b71a40
Summary:       XStatic base package with minimal support code
0b71a40
BuildRequires: python2-devel
0b71a40
BuildRequires: python2-setuptools
0b71a40
%{?python_provide:%python_provide python2-%{pypi_name}}
0b71a40
0b71a40
%description -n python2-%{pypi_name}
0b71a40
0b71a40
The goal of XStatic family of packages is to provide static
0b71a40
file packages with minimal overhead - without selling you some
0b71a40
dependencies you don't want.
0b71a40
0b71a40
XStatic has some minimal support code for working with the
0b71a40
XStatic-* packages.
0b71a40
0b71a40
0b71a40
2318c09
%if 0%{?with_python3}
2318c09
%package -n python3-%{pypi_name}
2318c09
Summary:       XStatic base package with minimal support code
2318c09
BuildRequires: python3-devel
2318c09
BuildRequires: python3-setuptools
0b71a40
%{?python_provide:%python_provide python3-%{pypi_name}}
2318c09
%description -n python3-%{pypi_name}
2318c09
2318c09
The goal of XStatic family of packages is to provide static
0b71a40
file packages with minimal overhead - without selling you some
2318c09
dependencies you don't want.
2318c09
2318c09
XStatic has some minimal support code for working with the
2318c09
XStatic-* packages.
2318c09
2318c09
2318c09
%endif
2318c09
2318c09
%prep
0b71a40
%autosetup -n %{pypi_name}-%{version}
2318c09
2318c09
2318c09
%build
2318c09
%if 0%{?with_python3}
0b71a40
%py3_build
2318c09
%endif # with_python3
2318c09
0b71a40
%py2_build
2318c09
2318c09
2318c09
%install
2318c09
%if 0%{?with_python3}
0b71a40
%py3_install
45ce22d
mkdir %{buildroot}/%{python3_sitelib}/xstatic/pkg
2318c09
%endif # with_python3
2318c09
0b71a40
%py2_install
45ce22d
mkdir %{buildroot}/%{python2_sitelib}/xstatic/pkg
2318c09
2318c09
0b71a40
%files -n python2-%{pypi_name}
2318c09
%doc README.txt
2318c09
%{python2_sitelib}/xstatic
2318c09
%{python2_sitelib}/XStatic-%{version}-py%{python2_version}.egg-info
2318c09
%{python2_sitelib}/XStatic-%{version}-py%{python2_version}-nspkg.pth
2318c09
2318c09
%if 0%{?with_python3}
2318c09
%files -n python3-%{pypi_name}
2318c09
%doc README.txt
2318c09
%{python3_sitelib}/xstatic
2318c09
%{python3_sitelib}/XStatic-%{version}-py%{python3_version}.egg-info
2318c09
%{python3_sitelib}/XStatic-%{version}-py%{python3_version}-nspkg.pth
2318c09
2318c09
%endif
2318c09
2318c09
2318c09
%changelog
4d4eef5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-14
4d4eef5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4d4eef5
fbeb576
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-13
fbeb576
- Rebuilt for Python 3.7
fbeb576
b2bb626
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.1-12
b2bb626
- Update Python 2 dependency declarations to new packaging standards
b2bb626
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
b2bb626
0f460d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-11
0f460d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0f460d8
21b549f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10
21b549f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
21b549f
cf1aafd
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
cf1aafd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cf1aafd
7691141
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-8
7691141
- Rebuild for Python 3.6
7691141
9416f2d
* Wed Aug 31 2016 Matthias Runge <mrunge@redhat.com> - 1.0.1-7
0b71a40
- provide python/python2
0b71a40
- spec cleanup
0b71a40
71ba5c2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
71ba5c2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
71ba5c2
d186a32
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
d186a32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
d186a32
5fe4d4c
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
5fe4d4c
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5fe4d4c
2a9babe
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
2a9babe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2a9babe
45ce22d
* Fri Oct 10 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-2
45ce22d
- include xstatic/pkg
45ce22d
2318c09
* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.0.1-1
2318c09
- Initial package.