|
|
d3c5516 |
Name: pipepanic
|
|
|
d3c5516 |
Version: 0.1.3
|
|
|
b2bdda2 |
Release: 11%{?dist}
|
|
|
d3c5516 |
Summary: A pipe connecting game
|
|
|
d3c5516 |
|
|
|
d3c5516 |
Group: Amusements/Games
|
|
|
e9c903e |
License: GPLv2+
|
|
|
d3c5516 |
URL: http://www.users.waitrose.com/~thunor/pipepanic/
|
|
|
d3c5516 |
Source0: http://www.users.waitrose.com/~thunor/pipepanic/dload/%{name}-%{version}-source.tar.gz
|
|
|
d3c5516 |
Source1: pipepanic.desktop
|
|
|
b2bdda2 |
# Use standard Fedora CFLAGS to compile
|
|
|
d3c5516 |
Patch0: pipepanic-0.1.3-Makefile.patch
|
|
|
d3c5516 |
# Hans de Goede
|
|
|
b2bdda2 |
# Set a window title and icon
|
|
|
d3c5516 |
Patch1: pipepanic-0.1.3-window-title.patch
|
|
|
b2bdda2 |
# Miroslav Lichvar
|
|
|
b2bdda2 |
# Fix wrong score with long pipes (BZ #847344)
|
|
|
b2bdda2 |
Patch2: pipepanic-0.1.3-score.patch
|
|
|
d3c5516 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
d3c5516 |
|
|
|
d3c5516 |
BuildRequires: SDL-devel
|
|
|
d3c5516 |
BuildRequires: desktop-file-utils
|
|
|
d3c5516 |
BuildRequires: ImageMagick
|
|
|
d3c5516 |
Requires: hicolor-icon-theme
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%description
|
|
|
d3c5516 |
Pipepanic is a pipe connecting game using libSDL. Connect as many
|
|
|
d3c5516 |
different shaped pipes together as possible within the time given.
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%prep
|
|
|
d3c5516 |
%setup -q -n %{name}-%{version}-source
|
|
|
d3c5516 |
%patch0 -p0
|
|
|
d3c5516 |
%patch1 -p1
|
|
|
b2bdda2 |
%patch2 -p1
|
|
|
d3c5516 |
|
|
|
ce6a926 |
# Fix file encoding
|
|
|
ce6a926 |
iconv --from=ISO-8859-1 --to=UTF-8 COPYING-ARTWORK > COPYING-ARTWORK.conv
|
|
|
ce6a926 |
mv COPYING-ARTWORK.conv COPYING-ARTWORK
|
|
|
ce6a926 |
|
|
|
d3c5516 |
# Fix DATADIR
|
|
|
d3c5516 |
sed -i 's:/opt/QtPalmtop/share/pipepanic/:%{_datadir}/%{name}/:' main.h
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%build
|
|
|
d3c5516 |
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%install
|
|
|
d3c5516 |
rm -rf %{buildroot}
|
|
|
d3c5516 |
|
|
|
d3c5516 |
# Install binary
|
|
|
d3c5516 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
d3c5516 |
install -m 755 pipepanic %{buildroot}%{_bindir}
|
|
|
d3c5516 |
|
|
|
d3c5516 |
# Install data files
|
|
|
d3c5516 |
mkdir -p %{buildroot}%{_datadir}/%{name}
|
|
|
d3c5516 |
install -m 644 *.bmp %{buildroot}%{_datadir}/%{name}/
|
|
|
d3c5516 |
|
|
|
d3c5516 |
# Install window icon (needed by patch1)
|
|
|
d3c5516 |
convert PipepanicIcon32.png bmp3:- | \
|
|
|
d3c5516 |
convert - -fill '#FF00FF' -opaque black -colors 256 \
|
|
|
d3c5516 |
-compress none bmp3:icon.bmp
|
|
|
d3c5516 |
install -m 644 icon.bmp %{buildroot}%{_datadir}/%{name}/
|
|
|
d3c5516 |
|
|
|
d3c5516 |
# Install icons
|
|
|
d3c5516 |
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
|
|
|
d3c5516 |
install -m 644 PipepanicIcon16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
|
|
d3c5516 |
install -m 644 PipepanicIcon32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
d3c5516 |
install -m 644 PipepanicIcon48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
d3c5516 |
install -m 644 PipepanicIcon64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
|
|
d3c5516 |
|
|
|
d3c5516 |
# Install desktop file
|
|
|
d3c5516 |
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
d3c5516 |
desktop-file-install --vendor fedora \
|
|
|
d3c5516 |
--dir %{buildroot}%{_datadir}/applications \
|
|
|
d3c5516 |
%{SOURCE1}
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%clean
|
|
|
d3c5516 |
rm -rf %{buildroot}
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%post
|
|
|
b2bdda2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%postun
|
|
|
b2bdda2 |
if [ $1 -eq 0 ] ; then
|
|
|
b2bdda2 |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
b2bdda2 |
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
ce6a926 |
fi
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
b2bdda2 |
%posttrans
|
|
|
b2bdda2 |
/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
b2bdda2 |
|
|
|
b2bdda2 |
|
|
|
d3c5516 |
%files
|
|
|
d3c5516 |
%defattr(-,root,root,-)
|
|
|
d3c5516 |
%{_bindir}/pipepanic
|
|
|
d3c5516 |
%{_datadir}/%{name}
|
|
|
d3c5516 |
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
|
|
d3c5516 |
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
d3c5516 |
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
d3c5516 |
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
|
|
d3c5516 |
%{_datadir}/applications/fedora-%{name}.desktop
|
|
|
d3c5516 |
%doc AUTHORS ChangeLog COPYING COPYING-ARTWORK README
|
|
|
d3c5516 |
|
|
|
d3c5516 |
|
|
|
d3c5516 |
%changelog
|
|
|
b2bdda2 |
* Sun Aug 12 2012 Andrea Musuruane <musuruan@gmail.com> 0.1.3-11
|
|
|
b2bdda2 |
- Fixed wrong score with long pipes (BZ #847344)
|
|
|
b2bdda2 |
- Fixed desktop file
|
|
|
b2bdda2 |
- Updated icon cache scriptlets
|
|
|
b2bdda2 |
|
|
|
43e6039 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-10
|
|
|
43e6039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
43e6039 |
|
|
|
b4ce390 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-9
|
|
|
b4ce390 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b4ce390 |
|
|
|
0961864 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-8
|
|
|
0961864 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
0961864 |
|
|
|
78e9579 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-7
|
|
|
78e9579 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
78e9579 |
|
|
|
2b4ae17 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-6
|
|
|
2b4ae17 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
2b4ae17 |
|
|
|
62cfcf0 |
* Sun Feb 10 2008 Andrea Musuruane <musuruan@gmail.com> 0.1.3-5
|
|
|
62cfcf0 |
- Rebuild against gcc 4.3
|
|
|
62cfcf0 |
|
|
|
ce6a926 |
* Sat Oct 06 2007 Andrea Musuruane <musuruan@gmail.com> 0.1.3-4
|
|
|
ce6a926 |
- Fixed COPYING-ARTWORK file encoding
|
|
|
ce6a926 |
- Updated icon cache scriptlets to be compliant to new guidelines
|
|
|
ce6a926 |
|
|
|
e9c903e |
* Mon Aug 20 2007 Andrea Musuruane <musuruan@gmail.com> 0.1.3-3
|
|
|
e9c903e |
- Changed license due to new guidelines
|
|
|
e9c903e |
- Removed %%{?dist} tag from changelog
|
|
|
e9c903e |
- Updated icon cache scriptlets to be compliant to new guidelines
|
|
|
e9c903e |
|
|
|
e9c903e |
* Wed May 02 2007 Andrea Musuruane <musuruan@gmail.com> 0.1.3-2
|
|
|
d3c5516 |
- Fixed package ownership of its datadir
|
|
|
d3c5516 |
- Changed description
|
|
|
d3c5516 |
- Added a patch by Hans de Goede to set a window title and icon
|
|
|
d3c5516 |
|
|
|
e9c903e |
* Sun Apr 10 2007 Andrea Musuruane <musuruan@gmail.com> 0.1.3-1
|
|
|
d3c5516 |
- Initial release
|
|
|
d3c5516 |
|