[packages/python-altgraph] - init

arekm arekm at pld-linux.org
Fri Jan 18 14:23:06 CET 2013


commit 0499c072c07e42df71e78706b439b1d4a0100e47
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jan 18 14:22:54 2013 +0100

    - init

 python-altgraph.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/python-altgraph.spec b/python-altgraph.spec
new file mode 100644
index 0000000..f074c4a
--- /dev/null
+++ b/python-altgraph.spec
@@ -0,0 +1,52 @@
+# %bcond_without	tests	# do not perform "make test"
+
+%define 	module	altgraph
+Summary:	Graph (network) package
+Name:		python-%{module}
+Version:	0.10.1
+Release:	1
+License:	zlib/libpng
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/a/altgraph/altgraph-%{version}.tar.gz
+# Source0-md5:	ebef6fff05ea80c6499ac302151a026f
+URL:		http://pypi.python.org/pypi/altgraph
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+altgraph is a fork of graphlib: a graph (network) package for
+constructing graphs, BFS and DFS traversals, topological sort,
+shortest paths, etc. with graphviz output.
+
+%prep
+%setup -q -n altgraph-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-altgraph.git/commitdiff/0499c072c07e42df71e78706b439b1d4a0100e47



More information about the pld-cvs-commit mailing list