[PyOpenGL/f15/master] spec file cleanup
Nikolay Vladimirov
turki at fedoraproject.org
Sat Apr 16 12:31:57 UTC 2011
commit 89f71cc2fed60883236e70deeefb581753c5c34d
Author: Nikolay Vladimirov <nikolay at vladimiroff.com>
Date: Sat Apr 16 15:29:53 2011 +0300
spec file cleanup
PyOpenGL.spec | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
---
diff --git a/PyOpenGL.spec b/PyOpenGL.spec
index 2cb448e..98468bd 100644
--- a/PyOpenGL.spec
+++ b/PyOpenGL.spec
@@ -1,8 +1,6 @@
-%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-
Name: PyOpenGL
Version: 3.0.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Python bindings for OpenGL
License: BSD
Group: System Environment/Libraries
@@ -12,7 +10,8 @@ Source0: http://downloads.sourceforge.net/pyopengl/%{name}-%{version}.tar
# Upstream bug: https://sourceforge.net/tracker/?func=detail&aid=3287895&group_id=5988&atid=105988
Patch0: PyOpenGL_shebang.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires: python-devel python-setuptools-devel
+BuildRequires: python2-devel
+BuildRequires: python-setuptools-devel
BuildArch: noarch
Requires: numpy python-setuptools freeglut
# in some other repositories this is named python-opengl
@@ -46,15 +45,9 @@ Requires: %{name} = %{version}-%{release}, tkinter
%install
-rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root="$RPM_BUILD_ROOT" \
--prefix="%{_prefix}"
-chmod -x $RPM_BUILD_ROOT%{python_sitelib}/%{name}-%{version}-py?.?.egg-info
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
+chmod -x %{buildroot}%{python_sitelib}/%{name}-%{version}-py?.?.egg-info
%files
%defattr(-,root,root,-)
@@ -67,7 +60,11 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/OpenGL/Tk
%changelog
-* Fri Apr 12 2011 Nikolay Vladimirov <nikolay at vladimiroff.com> - 3.0.1-1
+* Sat Apr 16 2011 Nikolay Vladimirov <nikolay at vladimiroff.com> - 3.0.1-2
+- Fix date in previous changelog entry
+- specfile fixes
+
+* Fri Apr 15 2011 Nikolay Vladimirov <nikolay at vladimiroff.com> - 3.0.1-1
- New upstream release
- Fix BZ # 635496 - PyOpenGL crashes on every program
- Update the shebang patch to work on the latest version
More information about the scm-commits
mailing list