Name: twms Version: 0.05 Release: 2%{?dist} Summary: Tiny web map service Group: Applications/Internet License: WTFPL URL: https://code.google.com/p/twms/ Source0: https://twms.googlecode.com/files/%{name}-%{version}t.tar.bz2 Patch0: %{name}-%{version}-fix-install-path.patch BuildRequires: python2-devel Requires: python-webpy Requires: pyproj Requires: python-imaging BuildArch: noarch %description tWMS is a tiny WMS server written in Python and using tiles as a backend storage. %prep %setup -q -n %{name}-%{version}r %patch0 -p1 # Remove shebang sed -i 1d twms/twms.py %build # Nothing to build %install PYTHON=%{__python2} %make_install %files %{!?_licensedir:%global license %%doc} %license COPYING %doc README.md %{_bindir}/twms %{python2_sitelib}/%{name}/ %{_mandir}/man1/twms.1.gz %{_datadir}/twms/ # Excluding empty file %exclude %{_datadir}/twms/irs_nxt.jpg %dir %{_sysconfdir}/twms %config(noreplace) %{_sysconfdir}/twms/twms.conf %changelog * Wed Nov 26 2014 Eduardo Mayorga Téllez - 0.05-2 - Adding missing created directory - Ditching empty file irs_nxt.jpg * Fri Nov 14 2014 Eduardo Mayorga Téllez - 0.05-1 - Initial packaging