|
|
5acdd80 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
5acdd80 |
|
|
|
5acdd80 |
Name: pymunk
|
|
Jon Ciesla |
92f1da8 |
Version: 1.0.0
|
|
|
d4dbaaa |
Release: 13%{?dist}
|
|
|
5acdd80 |
Summary: Python wrapper for the chipmunk 2D physics engine
|
|
|
5acdd80 |
Group: Development/Languages
|
|
|
5acdd80 |
# pymunx is under GPL+
|
|
|
5acdd80 |
License: MIT and GPL+
|
|
|
5acdd80 |
URL: http://code.google.com/p/pymunk/
|
|
|
5acdd80 |
Source0: http://pymunk.googlecode.com/files/pymunk-%{version}.zip
|
|
|
5acdd80 |
# Use the shared library provided by the chipmunk package
|
|
Jon Ciesla |
92f1da8 |
#Patch0: pymunk-sharedlib.patch
|
|
Jon Ciesla |
92f1da8 |
Patch1: pymunk-1.0.0-sharedlib.patch
|
|
|
dc55ae4 |
Patch2: pymunk-1.0.0-sharedlib64.patch
|
|
|
5acdd80 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
5acdd80 |
BuildRequires: python-devel
|
|
|
5acdd80 |
BuildRequires: python-setuptools
|
|
|
5acdd80 |
# Need chipmunk when building to work out the location of the
|
|
|
5acdd80 |
# *installed* chipmunk library
|
|
|
5acdd80 |
BuildRequires: chipmunk
|
|
Jon Ciesla |
92f1da8 |
Requires: chipmunk >= 5.0.0
|
|
|
5acdd80 |
BuildArch: noarch
|
|
|
d4dbaaa |
ExcludeArch: ppc64
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%description
|
|
|
5acdd80 |
Pymunk is a Python wrapper for the wrapper for the chipmunk 2D physics
|
|
|
5acdd80 |
engine. It aims to be easy to use, "Pythonic", and non-intrusive.
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%prep
|
|
|
5acdd80 |
%setup -q
|
|
Jon Ciesla |
92f1da8 |
#%patch0 -p0
|
|
|
dc55ae4 |
%ifarch %{ix86}
|
|
Jon Ciesla |
92f1da8 |
%patch1 -p0
|
|
|
dc55ae4 |
%else
|
|
|
dc55ae4 |
%patch2 -p0
|
|
|
dc55ae4 |
%endif
|
|
|
5acdd80 |
# Fix newlines -- preserve timestamps
|
|
|
5acdd80 |
for file in docs/api/*.{html,txt,css,js} examples/*.py *.txt PKG-INFO; do
|
|
|
5acdd80 |
sed -e 's/\r//g' $file > $file.new &&
|
|
|
5acdd80 |
touch -r $file $file.new &&
|
|
|
5acdd80 |
mv $file.new $file
|
|
|
5acdd80 |
done
|
|
|
5acdd80 |
|
|
|
5acdd80 |
# Use libchipmunk.so.N provided by chipmunk
|
|
|
5acdd80 |
lib=`ls %{_libdir}/libchipmunk.so.* | head -n 1`
|
|
|
5acdd80 |
sed -i -e "s|/usr/lib/libchipmunk.so|$lib|" pymunk/libload.py
|
|
|
5acdd80 |
|
|
|
5acdd80 |
# This source is superfluous
|
|
|
5acdd80 |
rm -rf chipmunk_src
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%build
|
|
|
5acdd80 |
%{__python} setup.py build
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%install
|
|
|
5acdd80 |
rm -rf $RPM_BUILD_ROOT
|
|
|
5acdd80 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%clean
|
|
|
5acdd80 |
rm -rf $RPM_BUILD_ROOT
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%files
|
|
|
5acdd80 |
%defattr(-,root,root,-)
|
|
|
5acdd80 |
%{python_sitelib}/%{name}/
|
|
|
5acdd80 |
%{python_sitelib}/%{name}-*.egg-info/
|
|
|
5acdd80 |
%doc docs examples LICENSE.txt PKG-INFO THANKS.txt README.txt
|
|
|
5acdd80 |
|
|
|
5acdd80 |
%changelog
|
|
|
d4dbaaa |
* Wed Feb 22 2017 Jon Ciesla <limburgher@gmail.com> - 1.0.0-13
|
|
|
d4dbaaa |
- ExcludeArch ppc64.
|
|
|
d4dbaaa |
|
|
|
58c72fa |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-12
|
|
|
58c72fa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
58c72fa |
|
|
|
738fda3 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-11
|
|
|
738fda3 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
738fda3 |
|
|
|
510e3ae |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-10
|
|
|
510e3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
510e3ae |
|
|
|
52b7313 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-9
|
|
|
52b7313 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
52b7313 |
|
|
|
efca2b6 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-8
|
|
|
efca2b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
efca2b6 |
|
|
|
0be8d8e |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-7
|
|
|
0be8d8e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
0be8d8e |
|
|
|
dc55ae4 |
* Mon Mar 04 2013 Jon Ciesla <limb@jcomserv.net> - 1.0.0-6
|
|
|
dc55ae4 |
- Fix shared lib patch for 64-bit.
|
|
|
dc55ae4 |
|
|
|
d52a07f |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-5
|
|
|
d52a07f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
d52a07f |
|
|
|
e8a1dfb |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-4
|
|
|
e8a1dfb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
e8a1dfb |
|
|
|
4bf5a91 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-3
|
|
|
4bf5a91 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4bf5a91 |
|
|
|
0807d86 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
0807d86 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0807d86 |
|
|
Jon Ciesla |
92f1da8 |
* Thu Jul 15 2010 Jon Ciesla <limb@jcomserv.net> - 1.0.0-1
|
|
Jon Ciesla |
92f1da8 |
- 1.0.0, supports Chipmunk 5.x.
|
|
Jon Ciesla |
92f1da8 |
- Updated sharedlib patch.
|
|
|
3fa4aa3 |
|
|
|
5acdd80 |
* Thu Nov 5 2009 Robert Spanton <rspanton@zepler.net> - 0.8.4-2
|
|
|
5acdd80 |
- Conserve file timestamps when converting newlines
|
|
|
5acdd80 |
|
|
|
5acdd80 |
* Thu Nov 5 2009 Robert Spanton <rspanton@zepler.net> - 0.8.4-1
|
|
|
5acdd80 |
- Bump up to 0.8.4
|
|
|
5acdd80 |
- Add chipmunk as a build requirement so that shared object discovery
|
|
|
5acdd80 |
works.
|
|
|
5acdd80 |
- Stop the .dll and .so being installed in the first place
|
|
|
5acdd80 |
- Merge docs and main package, since docs are small
|
|
|
5acdd80 |
- Fix license. pymunx is GPL+
|
|
|
5acdd80 |
|
|
|
5acdd80 |
* Sun Jun 21 2009 Robert Spanton <rspanton@zepler.net> - 0.8.2-3
|
|
|
5acdd80 |
- Put the text files, e.g. LICENSE, in the main package.
|
|
|
5acdd80 |
|
|
|
5acdd80 |
* Sun Jun 21 2009 Robert Spanton <rspanton@zepler.net> - 0.8.2-2
|
|
|
5acdd80 |
- Point to the correct chipmunk library file.
|
|
|
5acdd80 |
- Include some more documentation
|
|
|
5acdd80 |
|
|
|
5acdd80 |
* Thu Jun 18 2009 Robert Spanton <rspanton@zepler.net> - 0.8.2-1
|
|
|
5acdd80 |
- Initial packaging
|