[python-proteus] - little update before submitting to review

Dan Horák sharkcz at fedoraproject.org
Thu Jan 20 21:19:05 UTC 2011


commit 1915753410a52808634d545224d35c7d9aab03f3
Author: Dan Horák <dan at danny.cz>
Date:   Thu Jan 20 22:18:56 2011 +0100

    - little update before submitting to review

 .gitignore          |    1 +
 python-proteus.spec |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 63 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e8568bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/proteus-1.8.0.tar.gz
diff --git a/python-proteus.spec b/python-proteus.spec
new file mode 100644
index 0000000..69ac462
--- /dev/null
+++ b/python-proteus.spec
@@ -0,0 +1,61 @@
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+%endif
+
+%global major 1.8
+%global module_name proteus
+
+Name:           python-%{module_name}
+Version:        1.8.0
+Release:        2%{?dist}
+Summary:        Library to access Tryton's internal objects
+
+Group:          System Environment/Libraries
+License:        GPLv3+
+URL:            http://www.tryton.org
+Source0:        http://downloads.tryton.org/%{major}/%{module_name}-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+
+Requires:       tryton(kernel) = %{major}
+# upgrade path for early adopters from http://fedora.danny.cz/danny
+Provides:       %{module_name} = %{version}-%{release}
+Obsoletes:      %{module_name} < 1.8.0-2
+
+
+%description
+A client library to access Tryton's internal objects like Models and Wizards.
+
+
+%prep
+%setup -q -n %{module_name}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGELOG COPYRIGHT INSTALL LICENSE README
+%{python_sitelib}/*
+
+
+%changelog
+* Wed Jan 19 2011 Dan Horák <dan[at]danny.cz> - 1.8.0-2
+- little update before submitting to review
+
+* Fri Dec 31 2010 Dan Horák <dan[at]danny.cz> 1.8.0-1
+- initial Fedora version
diff --git a/sources b/sources
index e69de29..1a6b4b8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0a1d2d26061dfe62586a1b649db92e2c  proteus-1.8.0.tar.gz


More information about the scm-commits mailing list