Skip to content

Instantly share code, notes, and snippets.

@tomkralidis
Created July 7, 2014 13:25
Show Gist options
  • Select an option

  • Save tomkralidis/45b755329775cccd4b61 to your computer and use it in GitHub Desktop.

Select an option

Save tomkralidis/45b755329775cccd4b61 to your computer and use it in GitHub Desktop.
pycsw Fedora package draft
%global modname pycsw
Name: python-%{modname}
Version: 1.10.0
Release: 2%{?dist}
Summary: pycsw is an OGC CSW server implementation written in Python.
License: MIT
URL: http://pycsw.org
Source0: http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-sqlalchemy
Requires: python-Shapely
Requires: python-lxml
Requires: python-OWSLib
Requires: python-pyproj
%description
pycsw is an OGC CSW server implementation written in Python. Started in 2010 (more formally announced in 2011), pycsw allows for the publishing and discovery of geospatial metadata, providing a standards-based metadata and catalogue component of spatial data infrastructures.
%prep
%setup -q -n %{modname}-%{version}
rm -rf %{modname}.egg-info
%build
%{__python2} setup.py build
%install
%{__python2} setup.py install --skip-build --root %{buildroot}
%files
%doc LICENSE.txt README.txt CHANGES.txt CREDITS.txt
%{python_sitelib}/owslib
%{python_sitelib}/%{modname}-%{version}-py*.egg-info
%changelog
* Tue Jul 1 2014 Volker Fröhlich <volker27@gmx.at> - 1.10.0-1
- lorem ipsum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment