WoodysFishingHole/WoodysFishingHole.spec

75 lines
2.2 KiB
RPMSpec

Name: WoodysFishingHole
Version: 0.9.0
Release: 4mamba
Summary: A fishing game for young children
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/wfh/
Source: http://downloads.sourceforge.net/sourceforge/wfh/%{name}-%{version}-src.tar.gz
Source1: fish.png
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
BuildRequires: apache-ant
Requires: java-runtime
%description
A fishing game for young children. A simple educational game for kids up to 6 years old. Young toddlers can match colors then move up to letters and numbers. Older kids can practice the names of colors and/or simple objects and practice math.
%prep
%setup -q -n %{name}
%build
ant
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 755 WoodysFishingHole.jar %{buildroot}%{_datadir}/%{name}
#Icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/fish.png
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=GSokoban is a version of Sokoban for GNOME and Linux/UNIX.
Exec=java -jar %{_datadir}/%{name}/WoodysFishingHole.jar
Icon=%{_datadir}/pixmaps/fish.png
Terminal=0
Type=Application
X-KDE-StartupNotify=false
Category=Game;KidsGame;
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_datadir}/%{name}/WoodysFishingHole.jar
%{_datadir}/applications/WoodysFishingHole.desktop
%{_datadir}/pixmaps/fish.png
%doc gpl.txt
%changelog
* Fri Dec 10 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-4mamba
- rebuilt
* Thu Sep 05 2013 Automatic Build System <autodist@mambasoft.it> 0.9.0-3mamba
- automatic rebuild by autodist
* Mon May 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
- entry group fixed
- desktop menu file fixed
* Fri Jul 22 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.9.0-1qilnx
- package created by autospec