diff --git a/python-Parsley.changes b/python-Parsley.changes index 071ee9a..89caaff 100644 --- a/python-Parsley.changes +++ b/python-Parsley.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Jun 7 17:32:45 UTC 2015 - nemysis@gmx.ch + +- Use %{oname} instead of Parsley +- Use check for openSUSE %if 0%{?suse_version} +- Correct what fdupes not have found (docs) +- Use right files name instead of %{_bindir}/* and %{python_sitelib}/* + ------------------------------------------------------------------- Tue Sep 24 08:21:59 UTC 2013 - hpj@urpla.net diff --git a/python-Parsley.spec b/python-Parsley.spec index 6242b9f..50f1ac6 100644 --- a/python-Parsley.spec +++ b/python-Parsley.spec @@ -1,7 +1,7 @@ # # spec file for package python-Parsley # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -16,15 +16,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%define oname Parsley + Name: python-Parsley Version: 1.2 Release: 0 -License: MIT Summary: Parsing and pattern matching made easy -Url: http://github.com/washort/parsley +License: MIT Group: Development/Libraries/Python -Source: https://pypi.python.org/packages/source/P/Parsley/Parsley-%{version}.tar.gz +Url: http://github.com/washort/parsley +Source: https://pypi.python.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz +%if 0%{?suse_version} BuildRequires: fdupes +%endif # Documentation requirements: BuildRequires: python-Sphinx # Testing requirements: @@ -62,7 +67,7 @@ Requires: %{name} = %{version} This package contains documentation files for %{name}. %prep -%setup -q -n Parsley-%{version} +%setup -q -n %{oname}-%{version} %build python setup.py build @@ -78,7 +83,16 @@ mkdir %{buildroot}/%{_bindir} for f in {generate_parser,stage}; do cp -v bin/$f %{buildroot}/%{_bindir}/parsley-$f done -%fdupes -s %{buildroot}/%{_prefix} + +%if 0%{?suse_version} + %fdupes -s %{buildroot}%{_prefix} +%endif + +# Correct what fdupes didn't find, because docs are later installed +rm -f doc/_build/html/_downloads/tutorial3-netstrings.py +ln -sf ../_static/listings/tutorial3-netstrings2.py doc/_build/html/_downloads/tutorial3-netstrings2.py +rm -f doc/html/_downloads/tutorial3-netstring-reversal.py +ln -sf ../_static/listings/tutorial3-netstring-reversal.py doc//_build/html/_downloads/tutorial3-netstring-reversal.py %check pushd ometa/test @@ -88,8 +102,11 @@ popd %files %defattr(-,root,root) %doc LICENSE NEWS PKG-INFO README -%{_bindir}/* -%{python_sitelib}/* +%{_bindir}/parsley* +%{python_sitelib}/parsley.* +%{python_sitelib}/ometa +%{python_sitelib}/terml +%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info %files doc %defattr(-,root,root)