LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-vatnumber.spec of Package python-vatnumber (Project spins:invis)

# norootforbuild

%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

%if %{suse_version} < 1140
%define python_version 2.6
%endif

%define module_name vatnumber

Name:           python-%{module_name}
Version:        1.0
Release:        1
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}/build-%{name}-%{version}

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRequires:  fdupes
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 \
    --optimize 1 \
    --prefix="%{py_prefix}" \
    --root "%{buildroot}"
%fdupes $RPM_BUILD_ROOT/

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYRIGHT LICENSE README
%{python_sitelib}/*


%changelog
* Thu Apr 05 2012 Joe Morris <joe_morris[at]ntm.org
- package for opensuse 12.1

* Sun Oct 23 2011 Dan Horák <dan[at]danny.cz> - 1.0-1
- update to version 1.0

* Wed Jun 08 2011 Dan Horák <dan[at]danny.cz> - 0.9-1
- initial Fedora version