]> git.pld-linux.org Git - packages/python-objgraph.git/commitdiff
- Initial 1.7.1-1. auto/th/python-objgraph-1_7_1-1
authorMateusz Korniak <matkor@pld-linux.org>
Fri, 13 Apr 2012 10:15:46 +0000 (10:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-objgraph.spec -> 1.1

python-objgraph.spec [new file with mode: 0644]

diff --git a/python-objgraph.spec b/python-objgraph.spec
new file mode 100644 (file)
index 0000000..4b39049
--- /dev/null
@@ -0,0 +1,78 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
+%define        module  objgraph
+Summary:       Draws Python object reference graphs with graphviz
+Summary(pl.UTF-8):     Rysuje referencje pomiedzy obiektamiy przy uzyciu graphviz
+Name:          python-objgraph
+Version:       1.7.1
+Release:       1
+License:       MIT
+Group:         Development/Languages/Python
+# http://pypi.python.org/packages/source/o/objgraph/objgraph-1.7.1.tar.gz#md5=f6c501b68239e3063b05ca01041652d0
+Source0:       http://pypi.python.org/packages/source/o/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: f6c501b68239e3063b05ca01041652d0
+URL:           http://mg.pov.lt/objgraph/
+BuildRequires: python-devel
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+# remove BR: python-devel for 'noarch' packages.
+# if py_postclean is used
+BuildRequires: rpmbuild(macros) >= 1.219
+#Requires:             python-libs
+Requires:      python-modules
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Module that lets you visually explore Python object graphs.
+
+
+%description -l pl.UTF-8
+Moduł do wizualizacji grafów pythonowych obiektów.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+# fix #!%{_bindir}/env python -> #!%{__python}:
+# %{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
+
+%build
+# CC/CFLAGS is only for arch packages - remove on noarch packages
+# CC="%{__cc}" \
+# CFLAGS="%{rpmcflags}" \
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+# install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+# cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+# %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+# %{py_sitedir}/*.py[co]
+%{py_sitescriptdir}/*.py[co]
+
+# %attr(755,root,root) %{py_sitedir}/*.so
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+# %{_examplesdir}/%{name}-%{version}
This page took 0.702734 seconds and 4 git commands to generate.