Split package into server and client parts
parent
e72d104b7a
commit
41cc60b888
|
@ -1,30 +1,41 @@
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
|
|
||||||
%global gitcommit bc0e5c0
|
%global gitcommit bc0e5c0
|
||||||
%global gitname celeron55
|
%global gitname celeron55
|
||||||
|
|
||||||
Name: minetest
|
Name: minetest
|
||||||
Version: 0.3.1
|
Version: 0.3.1
|
||||||
Release: 1.git%{gitcommit}%{?dist}.R
|
Release: 2.git%{gitcommit}%{?dist}.R
|
||||||
Summary: An InfiniMiner/Minecraft inspired game
|
Summary: Multiplayer infinite-world block sandbox with survival mode
|
||||||
|
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://celeron.55.lt/minetest/
|
URL: http://celeron.55.lt/minetest/
|
||||||
|
|
||||||
# wget https://github.com/celeron55/minetest/tarball/bc0e5c0
|
# wget https://github.com/celeron55/minetest/tarball/bc0e5c0
|
||||||
# wget https://raw.github.com/RussianFedora/minetest/master/minetest.desktop
|
# wget https://raw.github.com/RussianFedora/minetest/master/minetest.desktop
|
||||||
Source0: https://github.com/celeron55/minetest/tarball/%{gitcommit}
|
Source0: https://github.com/celeron55/minetest/tarball/%{gitcommit}
|
||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: cmake >= 2.6.0
|
BuildRequires: cmake >= 2.6.0
|
||||||
BuildRequires: irrlicht-devel bzip2-devel libpng-devel libjpeg-turbo-devel libXxf86vm mesa-libGL-devel jthread-devel sqlite-devel gettext-devel
|
BuildRequires: irrlicht-devel
|
||||||
|
BuildRequires: bzip2-devel gettext-devel jthread-devel sqlite-devel
|
||||||
|
BuildRequires: libpng-devel libjpeg-turbo-devel libXxf86vm mesa-libGL-devel
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
|
Requires: minetest-server = %{version}-%{release}
|
||||||
Requires: hicolor-icon-theme
|
Requires: hicolor-icon-theme
|
||||||
|
|
||||||
%description
|
%description
|
||||||
An InfiniMiner/Minecraft inspired game
|
Game of mining, crafting and building in the infinite world of cubic
|
||||||
|
blocks with optional hostile creatures. Features both single and the
|
||||||
|
network multiplayer mode. There are no in-game sounds yet
|
||||||
|
|
||||||
|
%package server
|
||||||
|
Summary: Minetest multiplayer server
|
||||||
|
Group: Amusements/Games
|
||||||
|
|
||||||
|
%description server
|
||||||
|
Minetest multiplayer server. This package does not require X Window System
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gitname}-%{name}-%{gitcommit}
|
%setup -q -n %{gitname}-%{name}-%{gitcommit}
|
||||||
|
@ -40,45 +51,50 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Put icon in the new fdo location
|
# Put icon in the new fdo location
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
|
||||||
cp %{name}-icon.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
|
cp -p %{name}-icon.svg $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/scalable/apps
|
||||||
|
|
||||||
# Add desktop file
|
# Add desktop file
|
||||||
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
|
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
|
||||||
|
|
||||||
|
# Move doc directory back to the sources
|
||||||
|
mkdir __doc
|
||||||
|
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name}/* __doc
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
||||||
|
|
||||||
|
|
||||||
%files -f %{name}.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
%{_bindir}/%{name}server
|
|
||||||
%{_datadir}/%{name}
|
%{_datadir}/%{name}
|
||||||
%{_datadir}/applications/%{name}.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/%{name}-icon.svg
|
%{_datadir}/icons/hicolor/scalable/apps/%{name}-icon.svg
|
||||||
%{_docdir}/%{name}
|
|
||||||
|
|
||||||
|
%files server
|
||||||
|
%{_bindir}/%{name}server
|
||||||
|
|
||||||
%doc doc/changelog.txt doc/gpl-2.0.txt doc/mapformat.txt doc/protocol.txt
|
%doc README.txt doc/changelog.txt doc/gpl-2.0.txt doc/mapformat.txt doc/protocol.txt
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 11 2011 Aleksandra Bookwar <alpha@bookwar.info> - 0.3.1-2.gitbc0e5c0.R
|
||||||
|
- Split package into main and -server parts
|
||||||
|
|
||||||
* Wed Nov 9 2011 Aleksandra Bookwar <alpha@bookwar.info> - 0.3.1-1.gitbc0e5c0.R
|
* Wed Nov 9 2011 Aleksandra Bookwar <alpha@bookwar.info> - 0.3.1-1.gitbc0e5c0.R
|
||||||
- Update to stable 0.3.1 version.
|
- Update to stable 0.3.1 version.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue