[python-cagraph] Initial import (#756443).

jorti jorti at fedoraproject.org
Thu Apr 19 12:45:14 UTC 2012


commit da93443de9642a006d979ef6cd00b1a0bb968d24
Author: Juan Orti Alcaine <j.orti.alcaine at gmail.com>
Date:   Thu Apr 19 14:45:06 2012 +0200

    Initial import (#756443).

 .gitignore          |    1 +
 python-cagraph.spec |   95 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e987f13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cagraph-1.2.tar.gz
diff --git a/python-cagraph.spec b/python-cagraph.spec
new file mode 100644
index 0000000..3400ce8
--- /dev/null
+++ b/python-cagraph.spec
@@ -0,0 +1,95 @@
+%if 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%global libname cagraph
+
+Name:           python-cagraph
+Version:        1.2
+Release:        10%{?dist}
+Summary:        A PyGTK Cairo chart widget
+
+Group:          Development/Libraries
+License:        GPLv3+
+URL:            http://code.google.com/p/cagraph/
+Source0:        http://cagraph.googlecode.com/files/%{libname}-%{version}.tar.gz
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+Requires:       pygtk2
+
+%description
+A PyGTK widget for plotting charts and graphs using Python, GTK and Cairo.
+
+
+%prep
+%setup -q -n %{libname}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot}
+# Remove shebang from libraries
+# http://code.google.com/p/cagraph/issues/detail?id=5
+for lib in `find %{buildroot}%{python_sitelib}/%{libname} -name "*.py"`; do
+ sed '/#!\/usr\/bin\/env/d' $lib > $lib.new &&
+ touch -r $lib $lib.new &&
+ mv $lib.new $lib
+done
+# Remove execution permissions from doc files
+chmod -x %{_builddir}/%{libname}-%{version}/examples/*
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING PKG-INFO README examples
+%{python_sitelib}/%{libname}-%{version}-*.egg-info
+%{python_sitelib}/%{libname}
+
+
+
+%changelog
+* Thu Apr 12 2012 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-10
+- Change libname variable to global
+- Drop FSF address patch http://code.google.com/p/cagraph/issues/detail?id=3
+- Drop support for old Fedora releases in python_sitelib definition
+- Drop cairo dependency
+- Add examples to documentation
+
+* Wed Dec 21 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-9
+- Remove python shebang from libraries
+
+* Fri Dec 09 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-8
+- Fix documentation installation
+- Change license to GPLv3+
+- Add patch to fix FSF postal address
+
+* Wed Nov 23 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-7
+- Make scripts executable to fix rpmlint errors
+
+* Mon Oct 10 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-6
+- Minor fixes
+
+* Sat Oct 08 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-5
+- Fix Suse dependencies
+
+* Sat Oct 08 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-4
+- Suse compatibility
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-3
+- noarch exception for EPEL
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-2
+- Fix BuildArch
+
+* Tue Sep 27 2011 Juan Orti Alcaine <j.orti.alcaine at gmail.com> - 1.2-1
+- First edition of the package
diff --git a/sources b/sources
index e69de29..77ad751 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4b0e024cfb4b94d80a57128d1cae82fc  cagraph-1.2.tar.gz


More information about the scm-commits mailing list