public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Martin Gansser <mgansser@alice.de>
To: git-commits@fedoraproject.org
Subject: [rpms/bear] epel10: Initial import (#1398949).
Date: Sat, 11 Jul 2026 02:30:59 GMT	[thread overview]
Message-ID: <178373705998.1.15960911773787370946.rpms-bear-794e00fff729@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bear
Branch : epel10
Commit : 794e00fff729518c884bd3b76e214b49541f1254
Author : Martin Gansser <mgansser@alice.de>
Date   : 2016-12-23T18:52:40+01:00
Stats  : +198/-0 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/bear/c/794e00fff729518c884bd3b76e214b49541f1254?branch=epel10

Log:
Initial import (#1398949).

---
diff --git a/bear.spec b/bear.spec
new file mode 100644
index 0000000..481b5d0
--- /dev/null
+++ b/bear.spec
@@ -0,0 +1,198 @@
+# https://github.com/j-jorge/bear/commit/ac6be8bebf35cd1a4d4151773707c9ee313b154e
+%global commit0 ac6be8bebf35cd1a4d4151773707c9ee313b154e
+%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
+
+Name:           bear
+Version:        0.7.0
+Release:        0.7git%{shortcommit0}%{?dist}
+Summary:        Game engine and editors dedicated to creating great 2D games
+License:        GPLv3+ and CC-BY-SA 
+URL:            https://github.com/j-jorge/bear
+Source0:        https://github.com/j-jorge/bear/archive/%{commit0}/%{name}-%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz
+
+BuildRequires:  boost-devel
+BuildRequires:  cmake
+BuildRequires:  desktop-file-utils
+BuildRequires:  docbook-utils
+BuildRequires:  gettext
+BuildRequires:  libclaw-devel
+BuildRequires:  libjpeg-turbo-devel
+BuildRequires:  pkgconfig(freetype2)
+BuildRequires:  pkgconfig(sdl2)
+BuildRequires:  pkgconfig(SDL2_mixer)
+BuildRequires:  wxGTK-devel
+BuildConflicts: wxGTK3-devel
+
+%description
+The Bear engine is a set of C++ libraries and tools dedicated to creating
+great 2D games. It has been used to create Plee the Bear (plee-the-bear),
+Andy's Super Great Park (asgp) and Tunnel (tunnel).
+
+The engine comes with a set of tools, namely the Bear Factory, intended to
+help creating resources for the game. These tools include a level editor,
+a character/model editor and an animation editor.
+
+
+%package engine
+Summary: Run-time libraries for games based on the Bear engine
+
+%description engine
+The Bear engine is a set of C++ libraries and tools dedicated to creating
+great 2D games. It has been used to create Plee the Bear (plee-the-bear),
+Andy's Super Great Park (asgp) and Tunnel (tunnel).
+
+This package contains the run-time libraries used by the games based on
+the Bear engine.
+
+
+%package factory
+Summary: Level, animation and model editors for the Bear engine
+Requires: %{name}-engine%{?_isa} = %{version}-%{release}
+
+%description factory
+This package includes the level editor, animation editor and model editor
+of the Bear Engine for Plee the Bear & Andy's Super Great Park.
+
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}-engine%{?_isa} = %{version}-%{release}
+
+%description devel
+Development files for %{name}
+
+%prep
+%setup -qn %{name}-%{commit0}
+
+# change docbook_to_man to docbook2man
+sed -i -e 's|docbook-to-man|docbook2man|g' cmake-helper/docbook-to-man.cmake
+# convert docbook2man filename taken from .sgml file to lowercase
+sed -i 's|<refentrytitle>\(.*\)</refentrytitle>|<refentrytitle>\L\1</refentrytitle>|' bear-*/desktop/man/*.sgml
+
+# delete glew code because it picks up BSD license
+rm -rf bear-engine/core/src/visual/glew/
+
+%build
+%cmake -DBEAR_ENGINE_INSTALL_LIBRARY_DIR=%{_lib}/%{name} \
+       -DBEAR_FACTORY_INSTALL_LIBRARY_DIR=%{_lib}/%{name} \
+       -DCMAKE_SKIP_RPATH:BOOL=ON \
+       -DBEAR_USES_FREEDESKTOP=ON \
+       -DBEAR_EDITORS_ENABLED=ON
+%make_build
+
+%install
+%make_install
+
+%find_lang %{name}-engine
+%find_lang %{name}-factory
+
+install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
+cat << EOF > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-engine-%{_arch}.conf
+%{_libdir}/%{name}
+EOF
+cat << EOF > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-factory-%{_arch}.conf
+%{_libdir}/%{name}
+EOF
+
+# copy devel files for subpkg bear-devel
+install -dm 755 %{buildroot}%{_includedir}/%{name}/cmake-helper/
+install -D cmake-helper/{*.cmake,*.cmake.in} %{buildroot}%{_includedir}/%{name}/cmake-helper/
+for file in $(find bear-engine/{core,lib}/src -name *.hpp -o -name *.tpp);
+do
+    install -Dm 0644 $file %{buildroot}%{_includedir}/%{name}/$file
+done
+# fixes E: script-without-shebang
+chmod a-x %{buildroot}%{_includedir}/%{name}/cmake-helper/*.cmake*
+
+rm -rf %{buildroot}%{_datadir}/pixmaps
+rm -rf %{buildroot}%{_datadir}/applications/desc2img.desktop
+
+%check
+desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
+
+%post factory
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+
+%postun factory
+/usr/bin/update-desktop-database &> /dev/null || :
+if [ $1 -eq 0 ]; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans factory
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files engine -f %{name}-engine.lang
+%doc README.md
+%license LICENSE license/CCPL license/GPL
+%{_libdir}/%{name}
+%exclude %{_libdir}/%{name}/lib%{name}-editor.so
+%{_mandir}/man6/running-%{name}.6*
+%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-engine-%{_arch}.conf
+
+%files factory -f %{name}-factory.lang
+%doc README.md
+%license LICENSE license/CCPL license/GPL
+%{_bindir}/bend-image
+%{_bindir}/image-cutter
+%{_bindir}/bf*editor
+%{_libdir}/%{name}/lib%{name}-editor.so
+%{_datadir}/%{name}-factory
+%{_datadir}/applications/bf*editor.desktop
+%{_datadir}/icons/hicolor/*/apps/%{name}-factory.png
+%{_mandir}/man1/bf*editor.1*
+%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-factory-%{_arch}.conf
+
+%files devel
+%doc README.md
+%{_includedir}/%{name}
+%{_datadir}/cmake/%{name}-engine
+
+
+%changelog
+* Fri Dec 23 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.7gitac6be8b
+- change to -DCMAKE_SKIP_RPATH:BOOL=ON
+- obsolete chrpath command
+- convert docbook2man filename taken from .sgml file to lowercase
+- remove BR chrpath
+
+* Tue Dec 13 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.6gitac6be8b
+- use wildcard to copy all cmake and cmake.in files for subpkg bear-devel
+- copy also *.tpp files for subpkg bear-devel
+- fix spurious-executable-perm
+- fixes E: script-without-shebang
+- specfile cleanup
+
+* Tue Dec 13 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.5gitac6be8b
+- Dropped subpkg engine/factory-devel because unversioned files needed at runtime
+- Add subpkg %%{name}-devel
+
+* Mon Dec 12 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.4gitac6be8b
+- Add Requires: %%{name}-engine%%{?_isa} = %%{version}-%%{release} to bear-factory
+- Delete glew code because it picks up BSD license
+- run-time is the correct spelling, not runtime
+- Add gtk-update-icon-cache in %%postun and %%posttrans section for bear-factory
+- Add update-desktop-database in %%post and %%postun section for bear-factory
+- Take ownership of %%dir %%{_datadir}/%%{name}-factory/images/
+  %%dir %%{_datadir}/%%{name}-factory/item-description/
+  %%dir %%{_datadir}/%%{name}-factory//item-description/generic in file section
+- Add subpkg engine/factory-devel for unversioned files
+
+* Mon Nov 28 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.3gitac6be8b
+- Add BR chrpath
+- Add BR libjpeg-turbo-devel
+- Add BuildConflicts wxGTK3-devel
+
+* Sun Nov 27 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.2gitac6be8b
+- Remove Conflicts: wxGTK3-devel"
+- Compressed sed command
+- replace (non packaged) with (tunnel) from the descriptions
+- replace (andy-super-great-park) with (asgp) from the descriptions
+- run-time is the correct spelling, not runtime
+- Add %%config to fix the non-conffile-in-etc warnings
+- Remove desc2img.desktop due desc2img binary missing
+
+* Sun Nov 27 2016 Martin Gansser <martinkg@fedoraproject.org> - 0.7.0-0.1gitac6be8b
+- imported package bear

                 reply	other threads:[~2026-07-11  2:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178373705998.1.15960911773787370946.rpms-bear-794e00fff729@fedoraproject.org \
    --to=mgansser@alice.de \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox