699fc5f
%global srcname glue
699fc5f
%global sum A simple command line tool to generate CSS sprites
699fc5f
699fc5f
Name:           python-%{srcname}
324be89
Version:        0.11.1
e1ff949
Release:        11%{?dist}
699fc5f
Summary:        %{sum}
a18fb00
a18fb00
License:        BSD
699fc5f
URL:            http://github.com/jorgebastida/%{srcname}
fba57c4
Source0:        https://files.pythonhosted.org/packages/source/g/%{srcname}/%{srcname}-%{version}.tar.gz
699fc5f
# https://github.com/jorgebastida/glue/pull/211
699fc5f
Patch0:         python-glue.remove-jinja2-version-restriction.patch
699fc5f
# https://github.com/jorgebastida/glue/pull/208
699fc5f
Patch1:         python-glue.python3-support-without-2to3.patch
a18fb00
a18fb00
BuildArch:      noarch
699fc5f
BuildRequires:  python3-devel
699fc5f
BuildRequires:  python3-setuptools
699fc5f
BuildRequires:  python3-sphinx
2a0d6f4
BuildRequires:  python3-pillow
699fc5f
Requires:       python3-jinja2
699fc5f
Requires:       python3-pillow
a18fb00
a18fb00
%description
a18fb00
Glue is a simple command line tool to generate CSS sprites using any kind
a18fb00
of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file
a18fb00
containing every source image and a CSS file including the necessary CSS
a18fb00
classes to use the sprite.
a18fb00
699fc5f
%package -n %{srcname}
699fc5f
Summary:        %{sum}
699fc5f
Provides:       python-%{srcname} = %{version}-%{release}
699fc5f
Obsoletes:      python-%{srcname} < 0.11.1-6
699fc5f
699fc5f
%description -n %{srcname}
699fc5f
Glue is a simple command line tool to generate CSS sprites using any kind
699fc5f
of source images like PNG, JPEG or GIF. Glue will generate a unique PNG file
699fc5f
containing every source image and a CSS file including the necessary CSS
699fc5f
classes to use the sprite.
699fc5f
a18fb00
%prep
699fc5f
%autosetup -n %{srcname}-%{version} -p 1
699fc5f
# See https://github.com/jorgebastida/glue/pull/212
652a896
rm docs/.gitignore
a18fb00
rm -rf glue.egg-info
a18fb00
# Remove the shebang that set the python executable since that's
a18fb00
# generated later
e9a94de
sed -i -e "1d" glue/bin.py
a18fb00
a18fb00
%build
699fc5f
%{__python3} setup.py build egg_info build_sphinx # build_sphinx needs egg_info
ad34a1d
rm build/sphinx/html/.buildinfo
a18fb00
a18fb00
%install
699fc5f
%py3_install
a18fb00
699fc5f
%files -n %{srcname}
699fc5f
%license COPYING
699fc5f
%doc AUTHORS build/sphinx/html
699fc5f
%{python3_sitelib}/*
699fc5f
%{_bindir}/%{srcname}
a18fb00
a18fb00
%changelog
e1ff949
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-11
e1ff949
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e1ff949
2a0d6f4
* Sat Dec 24 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.11.1-10
2a0d6f4
- Add missing build dependency
2a0d6f4
cbf5c6f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.11.1-9
cbf5c6f
- Rebuild for Python 3.6
cbf5c6f
2722b72
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-8
2722b72
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2722b72
fba57c4
* Thu May 26 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.11.1-7
fba57c4
- Fixed Source0 to point to new PyPi predictable URL format
fba57c4
699fc5f
* Sun May 15 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.11.1-6
699fc5f
- Add subpackage glue, which uses python3 and obsoletes python-glue
699fc5f
652a896
* Tue May 10 2016 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.11.1-5
652a896
- Fix crash when using Jinja2 2.8
652a896
- Remove docs/.gitignore which is include in the source distribution by mistake
652a896
- Fix some rpm lint warnings
652a896
af502c2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.1-4
af502c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
af502c2
ebf8374
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-3
ebf8374
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ebf8374
ad34a1d
* Sun May 17 2015 Ville Skyttä <ville.skytta@iki.fi> - 0.11.1-2
ad34a1d
- Build and install HTML docs instead of doc sources, mark COPYING as %%license
652a896
324be89
* Sat Apr 25 2015 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.11.1-1
324be89
- Update upstream version to 0.11.1
ebd097b
* Sun Mar 15 2015 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.4-1
ebd097b
- Update upstream version to 0.9.4
ebd097b
- Removed the patch since my changes were accepted upstream so the patch
ebd097b
  is not needed anymore.
816f455
* Wed Mar 04 2015 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.2-1
816f455
- Update upstream version to 0.9.2
ef2f7cd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
ef2f7cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ef2f7cd
e9a94de
* Thu Mar 06 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.9.1-1
e9a94de
- Update upstream version to 0.9.1
652a896
- Added check step for running the package tests
1ed55c1
* Tue Feb 11 2014 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.4.1-1
1ed55c1
- Update upstream version to 0.4.1
9c2337f
* Wed Dec 4 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.4-1
9c2337f
- Update upstream version to 0.4
23f8030
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-2
23f8030
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
58cb510
* Wed Feb 6 2013 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.3-1
58cb510
- Update upstream version to 0.3
0cc966e
* Sat Dec 15 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.2.9-1
0cc966e
- Update upstream version to 0.2.9
0cc966e
- Update the patch to remove the Pillow dependency
652a896
- Use version macro in the Source0 to avoid repetition
aba3b58
* Wed Oct 31 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.2.8.1-1
0cc966e
- Update upstream version to 0.2.8.1
a18fb00
* Tue Oct 23 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.2.7-2
a18fb00
- Remove the shebang part of the glue.py script
a18fb00
- Remove the glue.egg-info directory in the prep section
a18fb00
- Remove the 'rm -rf $RPM_BUILD_ROOT' in the install section
a18fb00
* Mon Oct 22 2012 Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> - 0.2.7-1
a18fb00
- New package.