summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 10:28:07 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 10:28:07 +0000
commitbd30d056d10bb07b987a23bae857f39a97c9e382 (patch)
treefe23e3c95f7d775184d22cf8ab1515affba1bd03
parentb04ef6a9adb3e1ede6cc1a6f51acd1da2d34db7a (diff)
automatic import of Box2Dopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--Box2D.spec55
-rw-r--r--sources1
3 files changed, 57 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..6bdbc23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Box2D-2.4.1.tar.gz
diff --git a/Box2D.spec b/Box2D.spec
new file mode 100644
index 0000000..d5e2147
--- /dev/null
+++ b/Box2D.spec
@@ -0,0 +1,55 @@
+%global __cmake_in_source_build 1
+Name: Box2D
+Version: 2.4.1
+Release: 1
+Summary: A 2D Physics Engine for Games
+
+License: zlib
+URL: http://box2d.org/
+Source0: https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildRequires: gcc gcc-c++ cmake make
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description
+Box2D is an open source C++ engine for simulating rigid bodies in 2D.
+Box2D is developed by Erin Catto and has the zlib license.
+While the zlib license does not require acknowledgement,
+we encourage you to give credit to Box2D in your product.
+
+%description devel
+Box2D is an open source C++ engine for simulating rigid bodies in 2D.
+Box2D is developed by Erin Catto and has the zlib license.
+While the zlib license does not require acknowledgement,
+we encourage you to give credit to Box2D in your product.
+
+These are the development files.
+
+%prep
+%setup -qn box2d-%{version}
+rm -r extern
+
+%build
+%cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_TESTBED=OFF -DBOX2D_BUILD_UNIT_TESTS=OFF .
+%make_build
+
+%install
+%make_install
+
+%ldconfig_scriptlets
+
+%files
+%license LICENSE
+%{_libdir}/*.so.2*
+
+%files devel
+%doc README.md docs/
+%{_libdir}/*.so
+%{_includedir}/box2d
+%{_libdir}/cmake/box2d/*.cmake
+
+%changelog
+* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 2.4.1-1
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..bca13dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+00d2c9c66da494aed947e03bff73e080 Box2D-2.4.1.tar.gz