759f852
Name: Box2D
eb31125
Version:  2.3.1
1a34a93
Release:  3%{?dist}
759f852
Summary: A 2D Physics Engine for Games
759f852
759f852
Group: Development/Libraries
759f852
License: zlib
759f852
URL: http://box2d.org/
eb31125
# "Google Code no longer allows for downloads, therefore you will have to use SVN to get v2.3.1"
eb31125
# <http://box2d.org/2014/04/box2d-v2-3-1-released/>
eb31125
# svn checkout http://box2d.googlecode.com/svn/tags/v2.3.1/Box2D Box2D-2.3.1
eb31125
# (^^^ beware only legacy IP works, IPv6 seems broken)
eb31125
# tar --exclude .svn -czf Box2D-2.3.1.tar.gz Box2D-2.3.1
eb31125
Source0: %{name}-%{version}.tar.gz
eb31125
Patch0: Box2D-2.3.1-cmake.patch
eb31125
BuildRequires: cmake libXi-devel glew-devel glfw-devel
759f852
759f852
%package devel
759f852
Summary: Development files for %{name}
759f852
Group: Development/Libraries
759f852
Requires: %{name} = %{version}-%{release}
759f852
759f852
%description
759f852
Box2D is an open source C++ engine for simulating rigid bodies in 2D. 
759f852
Box2D is developed by Erin Catto and has the zlib license. 
759f852
While the zlib license does not require acknowledgement, 
759f852
we encourage you to give credit to Box2D in your product. 
759f852
759f852
%description devel
759f852
Box2D is an open source C++ engine for simulating rigid bodies in 2D. 
759f852
Box2D is developed by Erin Catto and has the zlib license. 
759f852
While the zlib license does not require acknowledgement, 
759f852
we encourage you to give credit to Box2D in your product. 
759f852
759f852
These are the development files.
759f852
759f852
%prep
eb31125
%setup -q
eb31125
%patch0 -p1
eb31125
rm -rf glew glfw
759f852
759f852
%build
759f852
sed -i 's/\r//' License.txt
759f852
sed -i 's/\r//' Readme.txt
759f852
pushd Box2D
eb31125
%cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON ..
759f852
make
759f852
759f852
%install
759f852
pushd Box2D
759f852
make install DESTDIR=%{buildroot}
759f852
759f852
find %{buildroot} -name '*.cmake' | xargs rm
759f852
find %{buildroot} -name '*.a' | xargs rm
759f852
759f852
759f852
%post -p /sbin/ldconfig
759f852
759f852
%postun -p /sbin/ldconfig
759f852
759f852
759f852
759f852
%files
759f852
%doc License.txt
759f852
%{_libdir}/*.so.*
759f852
759f852
%files devel
759f852
%doc Readme.txt Documentation/
759f852
%{_libdir}/*.so
759f852
%{_includedir}/Box2D
759f852
759f852
759f852
%changelog
1a34a93
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-3
1a34a93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1a34a93
e760c1b
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.3.1-2
e760c1b
- Rebuilt for GCC 5 C++11 ABI change
e760c1b
eb31125
* Fri Feb 20 2015 Lubomir Rintel <lkundrak@v3.sk> - 2.3.1-1
eb31125
- Update
eb31125
e142207
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-7
e142207
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e142207
ccd2e5a
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-6
ccd2e5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ccd2e5a
69f180b
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-5
69f180b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
69f180b
d942c0e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.1-4
d942c0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
d942c0e
759f852
* Mon Aug 06 2012 Jon Ciesla <limburgher@gmail.com> - 2.2.1-3
759f852
- Review fixes from BZ 844090 comment 6.
759f852
759f852
* Thu Aug 02 2012 Jon Ciesla <limburgher@gmail.com> - 2.2.1-2
759f852
- Unbundle freeglut and glui.
759f852
759f852
* Sat Jul 28 2012 Jon Ciesla <limburgher@gmail.com> - 2.2.1-1
759f852
- create.