[python-vatnumber] initial Fedora version
Dan Horák
sharkcz at fedoraproject.org
Wed Jun 8 15:13:12 UTC 2011
commit e82b7f82207ad2c7e62e9e056ce0c56fb0773e27
Author: Dan Horák <dan at danny.cz>
Date: Wed Jun 8 17:12:59 2011 +0200
initial Fedora version
.gitignore | 1 +
python-vatnumber.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 55 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..83a030d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vatnumber-0.9.tar.gz
diff --git a/python-vatnumber.spec b/python-vatnumber.spec
new file mode 100644
index 0000000..45b7fb8
--- /dev/null
+++ b/python-vatnumber.spec
@@ -0,0 +1,53 @@
+%if 0%{?rhel} && 0%{?rhel} <= 5
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%endif
+
+%define module_name vatnumber
+
+Name: python-%{module_name}
+Version: 0.9
+Release: 1%{?dist}
+Summary: Python module to validate VAT numbers
+
+Group: Development/Languages
+License: GPLv3+
+URL: http://code.google.com/p/vatnumber/
+Source0: http://vatnumber.googlecode.com/files/%{module_name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python2-devel
+BuildRequires: python-setuptools
+Requires: python-suds
+
+
+%description
+Python module to validate VAT numbers.
+
+
+%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 LICENSE README
+%{python_sitelib}/*
+
+
+%changelog
+* Wed Jun 08 2011 Dan Horák <dan[at]danny.cz> - 0.9-1
+- initial Fedora version
diff --git a/sources b/sources
index e69de29..62b5dac 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7dd3750213a1c7a45f24f435e61f6418 vatnumber-0.9.tar.gz
More information about the scm-commits
mailing list