anagramarama/anagramarama.spec

83 lines
2.5 KiB
RPMSpec

Name: anagramarama
Version: 0.2
Release: 3mamba
Summary: Anagramarama - a FREE word game for Linux
Group: Graphical Desktop/Applications/Educational
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.coralquest.com/anagramarama/
Source: http://www.omega.clara.net/anagramarama/dist/%{name}-%{version}.tar.gz
Source1: anagramarama.png
Patch1: anagramarama.install.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_mixer-devel
## AUTOBUILDREQ-END
BuildRequires: libSDL-devel >= 1.2.8, libSDL_mixer-devel >= 1.2.6
%description
The aim is to find as many words as possible in the time available. Get the longest word and you'll advance to the next level.
%prep
%setup -q -n %{name}
%patch1 -p1
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/%{name}-%{version}/audio
mkdir -p %{buildroot}/usr/share/%{name}-%{version}/images
mkdir -p %{buildroot}/usr/bin
install -D -m 644 audio/*.wav %{buildroot}/usr/share/%{name}-%{version}/audio/
install -D -m 644 images/*bmp %{buildroot}/usr/share/%{name}-%{version}/images/
install -m 755 wordlist.txt %{buildroot}/usr/share/%{name}-%{version}/
install -m 755 ag %{buildroot}/usr/bin
#Icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Anagramarama - a FREE word game for Linux
Exec=ag
Icon=%{_datadir}/pixmaps/anagramarama.png
Terminal=0
Type=Application
X-KDE-StartupNotify=false
Categories=Education;
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/%{name}-%{version}/audio/*.wav
%{_datadir}/%{name}-%{version}/images/*.bmp
%{_datadir}/%{name}-%{version}/*.txt
%{_datadir}/applications/anagramarama.desktop
%{_datadir}/pixmaps/anagramarama.png
%changelog
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 0.2-3mamba
- automatic rebuild by autodist
* Mon Jun 29 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2-2mamba
- specfile updated and rebuilt
* Tue Jul 19 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.2-1qilnx
- package created by autospec