4ff2e86
Name:           pybox2d
a7d7a31
Version:        2.3.2
a7d7a31
Release:        1%{?dist}
4ff2e86
Summary:        A 2D rigid body simulation library for Python
4ff2e86
4ff2e86
License:        zlib
a7d7a31
URL:            https://github.com/pybox2d/%{name}
Martin Langhoff 093b31a
Source0:        https://github.com/pybox2d/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Martin Langhoff 093b31a
a7d7a31
# Replace deprecated use of _swigconstant
a7d7a31
# Upstream pull request: https://github.com/pybox2d/pybox2d/pull/90
a7d7a31
Patch0:			replace-deprecated-swigconstant.patch
4ff2e86
3ac4911
BuildRequires:  gcc
4ff2e86
BuildRequires:  swig
4ff2e86
4ff2e86
%description
4ff2e86
Programmer's can use Box2D in their games to make objects move in
4ff2e86
believable ways and make the world seem more interactive. From the
4ff2e86
game's point of view a physics engine is just a system for procedural
a7d7a31
animation.
4ff2e86
a7d7a31
%package -n python2-%{name}
a7d7a31
Summary:        %{summary}
Martin Langhoff 093b31a
a7d7a31
BuildRequires:  python2-devel
a7d7a31
BuildRequires:  python2-setuptools
Martin Langhoff 093b31a
a7d7a31
Provides: pybox2d = %{version}-%{release}
a7d7a31
Obsoletes: pybox2d < %{version}-%{release}
4ff2e86
a7d7a31
%{?python_provide:%python_provide python2-%{name}}
4ff2e86
a7d7a31
%description -n python2-%{name}
a7d7a31
Programmer's can use Box2D in their games to make objects move in
a7d7a31
believable ways and make the world seem more interactive. From the
a7d7a31
game's point of view a physics engine is just a system for procedural
a7d7a31
animation.
4ff2e86
a7d7a31
This package provides the Python 2 build of %{name}.
4ff2e86
a7d7a31
%package -n python3-%{name}
a7d7a31
Summary:        %{summary}
a7d7a31
a7d7a31
BuildRequires:  python3-devel
a7d7a31
BuildRequires:  python3-setuptools
a7d7a31
a7d7a31
%{?python_provide:%python_provide python3-%{name}}
a7d7a31
a7d7a31
%description -n python3-%{name}
a7d7a31
Programmer's can use Box2D in their games to make objects move in
a7d7a31
believable ways and make the world seem more interactive. From the
a7d7a31
game's point of view a physics engine is just a system for procedural
a7d7a31
animation.
a7d7a31
a7d7a31
This package provides the Python 3 build of %{name}.
a7d7a31
a7d7a31
%prep
a7d7a31
%autosetup -n %{name}-%{version} -p1
4ff2e86
a7d7a31
%build
a7d7a31
%py2_build
a7d7a31
%py3_build
4ff2e86
a7d7a31
%install
a7d7a31
%py2_install
a7d7a31
%py3_install
4ff2e86
4ff2e86
 
a7d7a31
%files -n python2-%{name}
a7d7a31
%license LICENSE
a7d7a31
%doc README.md examples/*
a7d7a31
%{python2_sitearch}/*
4ff2e86
a7d7a31
%files -n python3-%{name}
a7d7a31
%license LICENSE
a7d7a31
%doc README.md examples/*
a7d7a31
%{python3_sitearch}/*
4ff2e86
4ff2e86
%changelog
a7d7a31
* Tue May 16 2017 Jan Beran <jberan@redhat.com> 2.3.2-1
a7d7a31
- Update to 2.3.2
a7d7a31
- Provide a Python 3 subpackage
a7d7a31
6dd99b9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-3
6dd99b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6dd99b9
c986927
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
c986927
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
c986927
Martin Langhoff 093b31a
* Fri Mar 25 2016 Martin Langhoff <martin@laptop.org> - 2.3.1-1
Martin Langhoff 093b31a
- Major update, some API changes
Martin Langhoff 093b31a
- Change source download url to github
Martin Langhoff 093b31a
8cfac62
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2b2-14
8cfac62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8cfac62
600fb60
* Thu Jun 18 2015 Jitka Plesnikova <jplesnik@redhat.com> - 2.0.2b2-13
600fb60
- Fix comments for SWIG 3.0.3 and higher (BZ#1196718)
600fb60
250855f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-12
250855f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
250855f
aed0af8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-11
aed0af8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aed0af8
ddf59c7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-10
ddf59c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ddf59c7
9bc1e53
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-9
9bc1e53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9bc1e53
dd3e581
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-8
dd3e581
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
dd3e581
ad33df3
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2b2-7
ad33df3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad33df3
f22fd10
* Sun Nov 20 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 2.0.2b2-6
f22fd10
- update to zip file
f22fd10
06c87c8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-5.20100110svn
06c87c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
06c87c8
51f6c83
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 2.0.2-4.20100110svn
51f6c83
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
51f6c83
a7d7a31
* Sun Jan 11 2009 Sebastian Dziallas <sebastian@when.com> - 2.0.2-3.20100110svn
4ff2e86
- implement comments from the review
4ff2e86
a7d7a31
* Sat Jan 10 2009 Sebastian Dziallas <sebastian@when.com> - 2.0.2-2.20100110svn
4ff2e86
- add setuptools build dependency
4ff2e86
- make sure to include box2d.py
4ff2e86
a7d7a31
* Sat Jan 10 2009 Sebastian Dziallas <sebastian@when.com> - 2.0.2-1.20100110svn
4ff2e86
- initial packaging