From 43f18ee3b0c5123557eebe82dc024d24e10db2171d2344ca54932b154a1f5561 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:19:21 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=20 --- python-pyglet.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python-pyglet.spec b/python-pyglet.spec index cbf465f..bc2b5a8 100644 --- a/python-pyglet.spec +++ b/python-pyglet.spec @@ -23,7 +23,7 @@ Release: 0 Summary: Windowing and multimedia library License: BSD-3-Clause Group: Development/Languages/Python -Url: https://bitbucket.org/pyglet/pyglet +URL: https://bitbucket.org/pyglet/pyglet Source0: https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-%{version}.tar.gz Source1: %{name}-rpmlintrc # PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image" @@ -37,6 +37,7 @@ BuildRequires: fontconfig-devel BuildRequires: freetype2-devel BuildRequires: gtk2-devel BuildRequires: openal-soft-devel +BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) @@ -52,7 +53,6 @@ Requires: pkgconfig(gl) Requires: pkgconfig(glu) Requires: pkgconfig(x11) BuildArch: noarch - %python_subpackages %description @@ -75,15 +75,15 @@ find -name "*.py" -exec dos2unix "{}" "+" %python_install %{python_expand cp -Lr examples examples_%{$python_bin_suffix} -find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/python$|#!%{__$python}|" {} \; -find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" {} \; +find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!%{_bindir}/python$|#!%{__$python}|" {} \; +find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!%{_bindir}/env python$|#!%{__$python}|" {} \; %fdupes examples_%{$python_bin_suffix} %fdupes %{buildroot}%{$python_sitelib} } %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE NOTICE README RELEASE_NOTES +%license LICENSE +%doc NOTICE README RELEASE_NOTES %doc examples_%{python_bin_suffix} %{python_sitelib}/pyglet %{python_sitelib}/pyglet-%{version}-py*.egg-info