mmapper/mmapper.spec

101 lines
2.8 KiB
RPMSpec
Raw Normal View History

2009-08-13 08:04:34 +00:00
Name: mmapper
2010-08-23 05:30:48 +00:00
Version: 2.1.0
Release: 1%{?dist}
2009-08-13 08:04:34 +00:00
Summary: Graphical MUME mapper
Group: Amusements/Games
2010-08-23 07:22:54 +00:00
License: GPLv2+
2009-08-13 08:04:34 +00:00
URL: http://sourceforge.net/projects/mmapper
2010-08-23 05:30:48 +00:00
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.gz
2010-08-23 07:22:54 +00:00
# Backported patch from upstream svn
Patch0: mmapper-2.1.0-system_qtiocompressor.patch
2009-08-13 08:04:34 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel
2010-08-23 07:22:54 +00:00
BuildRequires: qtiocompressor-devel
2009-08-13 08:04:34 +00:00
Requires: hicolor-icon-theme
%description
MMapper is a graphical mapper for a MUD named MUME (Multi-Users in Middle
Earth). The game is traditionally played in a text-only mode, but MMapper tries
to represent the virtual world in user-friendly graphical environment. It acts
as a proxy between a telnet client and a MUD server, being able to analyze game
data in real time and show player's position in a map.
%prep
2010-08-23 05:30:48 +00:00
%setup -q -n %{name}-%{version}-source
2010-08-23 07:22:54 +00:00
%patch0 -p1 -b .system_qtiocompressor
# remove bundled copy of qtiocompressor
rm -rf src/3rdparty
2009-08-13 08:04:34 +00:00
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
# It is questionable if one is allowed to redistribute the map.
rm -f $RPM_BUILD_ROOT/%{_datadir}/games/mmapper/arda.mm2
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/mmapper.desktop
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%defattr(-,root,root,-)
2010-08-23 05:30:48 +00:00
%doc ChangeLog.txt COPYING.txt doc/*.txt
2009-08-13 08:04:34 +00:00
%{_bindir}/mmapper
%{_datadir}/applications/mmapper.desktop
%{_datadir}/icons/hicolor/*/apps/mmapper.png
%changelog
2010-08-23 05:30:48 +00:00
* Mon Aug 23 2010 Kalev Lember <kalev@smartlink.ee> - 2.1.0-1
- Update to 2.1.0
- Dropped upstreamed patches
2010-08-23 07:22:54 +00:00
- Use system copy of qtiocompressor
2010-08-23 05:30:48 +00:00
* Thu Feb 25 2010 Kalev Lember <kalev@smartlink.ee> - 2.0.4-5.final2
- Added patch to fix renderer crash with Qt 4.6
- patch to fix linking with the new --no-add-needed default
2010-02-24 22:06:56 +00:00
* Thu Feb 25 2010 Kalev Lember <kalev@smartlink.ee> - 2.0.4-4.final2
- Rebuilt with Qt 4.6
2009-11-23 11:02:20 +00:00
* Mon Nov 23 2009 Kalev Lember <kalev@smartlink.ee> - 2.0.4-3.final2
- Updated source URL.
2009-08-13 08:04:34 +00:00
* Tue Aug 11 2009 Kalev Lember <kalev@smartlink.ee> - 2.0.4-2.final2
- Changed license tag to read "GPLv2" as there is GPLv2-only code in the mix.
* Fri Aug 07 2009 Kalev Lember <kalev@smartlink.ee> - 2.0.4-1.final2
- Initial RPM release.