6274695
%global pkgname cagraph
da93443
6274695
Name:           python-%{pkgname}
da93443
Version:        1.2
af38f77
Release:        22%{?dist}
da93443
Summary:        A PyGTK Cairo chart widget
da93443
License:        GPLv3+
da93443
URL:            http://code.google.com/p/cagraph/
6274695
Source0:        http://cagraph.googlecode.com/files/%{pkgname}-%{version}.tar.gz
da93443
da93443
BuildArch:      noarch
da93443
BuildRequires:  python2-devel
da93443
Requires:       pygtk2
da93443
da93443
%description
da93443
A PyGTK widget for plotting charts and graphs using Python, GTK and Cairo.
da93443
6274695
%package -n python2-%{pkgname}
6274695
Summary:        A PyGTK Cairo chart widget
6274695
%{?python_provide:%python_provide python2-%{pkgname}}
da93443
6274695
%description -n python2-%{pkgname}
6274695
A PyGTK widget for plotting charts and graphs using Python, GTK and Cairo.
da93443
6274695
%prep
6274695
%autosetup -n %{pkgname}-%{version}
da93443
da93443
%build
6274695
%py2_build
da93443
da93443
%install
6274695
%py2_install
da93443
# Remove shebang from libraries
da93443
# http://code.google.com/p/cagraph/issues/detail?id=5
6274695
for lib in `find %{buildroot}%{python2_sitelib}/%{pkgname} -name "*.py"`; do
da93443
 sed '/#!\/usr\/bin\/env/d' $lib > $lib.new &&
da93443
 touch -r $lib $lib.new &&
da93443
 mv $lib.new $lib
da93443
done
da93443
# Remove execution permissions from doc files
6274695
chmod -x %{_builddir}/%{pkgname}-%{version}/examples/*
da93443
da93443
6274695
%files -n python2-%{pkgname}
Juan Orti Alcaine 84c1300
%doc PKG-INFO README examples
Juan Orti Alcaine 84c1300
%license COPYING
6274695
%{python2_sitelib}/%{pkgname}-%{version}-*.egg-info
6274695
%{python2_sitelib}/%{pkgname}
da93443
da93443
da93443
%changelog
af38f77
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-22
af38f77
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
af38f77
8446052
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-21
8446052
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8446052
27726bb
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-20
27726bb
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
27726bb
06808fa
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-19
06808fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06808fa
6274695
* Wed Nov 25 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2-18
6274695
- Create python2-cagraph subpackage and modernize spec file
6274695
a8e198e
* Thu Nov 19 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2-17
a8e198e
- Use versioned python macros
a8e198e
7010568
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-16
7010568
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7010568
Juan Orti Alcaine 84c1300
* Thu Apr 09 2015 Juan Orti Alcaine <jorti@fedoraproject.org> - 1.2-15
Juan Orti Alcaine 84c1300
- Use license macro
Juan Orti Alcaine 84c1300
489d7fe
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-14
489d7fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
489d7fe
445b8fd
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-13
445b8fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
445b8fd
5ac2f64
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-12
5ac2f64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5ac2f64
09299b7
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-11
09299b7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
09299b7
da93443
* Thu Apr 12 2012 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-10
da93443
- Change libname variable to global
da93443
- Drop FSF address patch http://code.google.com/p/cagraph/issues/detail?id=3
da93443
- Drop support for old Fedora releases in python_sitelib definition
da93443
- Drop cairo dependency
da93443
- Add examples to documentation
da93443
da93443
* Wed Dec 21 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-9
da93443
- Remove python shebang from libraries
da93443
da93443
* Fri Dec 09 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-8
da93443
- Fix documentation installation
da93443
- Change license to GPLv3+
da93443
- Add patch to fix FSF postal address
da93443
da93443
* Wed Nov 23 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-7
da93443
- Make scripts executable to fix rpmlint errors
da93443
da93443
* Mon Oct 10 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-6
da93443
- Minor fixes
da93443
da93443
* Sat Oct 08 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-5
da93443
- Fix Suse dependencies
da93443
da93443
* Sat Oct 08 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-4
da93443
- Suse compatibility
da93443
da93443
* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-3
da93443
- noarch exception for EPEL
da93443
da93443
* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-2
da93443
- Fix BuildArch
da93443
da93443
* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine@gmail.com> - 1.2-1
da93443
- First edition of the package