diff --git a/.gitignore b/.gitignore index b6ee799..1085e10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ Chipmunk-4.1.0.tgz /Chipmunk-5.3.1.tgz /Chipmunk-5.3.4.tgz +/Chipmunk-7.0.3.tar.gz diff --git a/chipmunk.spec b/chipmunk.spec index b878d03..783a97f 100644 --- a/chipmunk.spec +++ b/chipmunk.spec @@ -1,19 +1,14 @@ Name: chipmunk -Version: 5.3.4 -Release: 19%{?dist} +Version: 7.0.3 +Release: 1%{?dist} Summary: Physics engine for 2D games License: MIT -URL: http://code.google.com/p/chipmunk-physics/ -Source0: http://files.slembcke.net/chipmunk/release/Chipmunk-%{version}.tgz -#Patch0: chipmunk-4.1.0-cmake.patch -#Patch1: chipmunk-4.1.0-dsolink.patch -Patch2: chipmunk-5.2.0-dsolink.patch -Patch3: chipmunk-5.3.4-activate-shared.patch -ExcludeArch: ppc64 - -BuildRequires: gcc -BuildRequires: gcc-c++ +URL: https://github.com/slembcke/Chipmunk2D/ +Source0: https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: freeglut-devel BuildRequires: mesa-libGL-devel @@ -21,6 +16,7 @@ BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXmu-devel +BuildRequires: libXrandr-devel %description Chipmunk is a 2D rigid body physics library distributed under the MIT license. @@ -43,43 +39,33 @@ install this package if you need to develop programs which will use the chipmunk library functions. You'll also need to install the chipmunk package. %prep -%setup -qn Chipmunk-%{version} -#%patch0 -p1 -#%patch1 -p0 -%patch2 -p0 -%patch3 -p0 +%setup -qn Chipmunk2D-Chipmunk-%{version} %build -%if "%{?_lib}" == "lib64" - %{cmake} -DLIB_SUFFIX=64 -%else - %{cmake} -%endif - +%{cmake} %{__make} VERBOSE=1 %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" %install -rm -rf $RPM_BUILD_ROOT - -make install DESTDIR=$RPM_BUILD_ROOT -%if "%{?_lib}" == "lib64" - mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/lib64 -%endif +%make_install %ldconfig_scriptlets %files -%doc LICENSE.txt README.txt +%license LICENSE.txt +%doc README.textile %{_libdir}/*.so.* -#%exclude %{_libdir}/*.a +%exclude %{_libdir}/*.a %files devel -%doc Demo/ +%doc doc/ demo/ %{_includedir}/chipmunk %{_libdir}/*.so %changelog +* Mon Dec 30 2019 Gwyn Ciesla - 7.0.3-1 +- 7.0.3 + * Wed Jul 24 2019 Fedora Release Engineering - 5.3.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index a7cad52..e665c44 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -47ac37c45d2c3bb720daeb85a97cae46 Chipmunk-5.3.4.tgz +SHA512 (Chipmunk-7.0.3.tar.gz) = edd16544a572c8f7654c99d6420aefe2f73ce2630f3e2e969f17b4980a8ea4044b5738f4a3cefbe0edd7bb4cd039a70748773b48cd59df12a09123eca9f451e4