Skip to content

Commit

Permalink
rpm spec file minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kalxas committed Sep 11, 2012
1 parent 2e830c3 commit 2f0cbfe
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions rpm/pywps.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

Name: pywps
%define pyname pywps

Name: python-%{pyname}
Version: 3.2.1
Release: 1
License: GPL
Summary: OGC Web Processing Servisce in Python
Url: http://pywps.wald.intevation.org/index.html
Group: Development/Tools
Source0: %{name}-%{version}.tar.gz
Group: Productivity/Scientific/Other
Source0: %{pyname}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-devel python-xml python-htmltmpl python-setuptools
Requires: python python-xml python-htmltmpl
Expand All @@ -32,18 +34,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
Python Web Processing Service is an implementation of the Web processing Service standard from Open Geospatial Consortium.

%prep
%setup -q -n "%{name}-%{version}"
%setup -q -n %{pyname}-%{version}

%build

%install
%__python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record=FILE_LIST
%fdupes %{buildroot}%{python_sitearch}
%__python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
%fdupes -s %{buildroot}

%clean
%__rm -rf %{buildroot}

%files -f FILE_LIST
%files -f INSTALLED_FILES
%defattr(-,root,root)
%dir %{python_sitelib}/pywps
%{python_sitelib}/pywps/
Expand Down

0 comments on commit 2f0cbfe

Please sign in to comment.