(svn r17077) [0.7] -Fix [FS#3024]: rpm spec file failed for CentOS; apparantly their rpmbuild is pickier or so

This commit is contained in:
rubidium 2009-08-05 23:30:10 +00:00
parent f39f14aceb
commit 19cad228e8
1 changed files with 18 additions and 13 deletions

View File

@ -7,6 +7,9 @@
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself # package are under the same license as the package itself
# #
# Note: for (at least) CentOS '#' comments end '\' continue command on new line.
# So place all '#' commented parameters of e.g. configure to the end.
#
#------------------------------------------------------------------------------- #-------------------------------------------------------------------------------
Name: openttd Name: openttd
@ -18,7 +21,7 @@ License: GPLv2
URL: http://www.openttd.org URL: http://www.openttd.org
Summary: OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe Summary: OpenTTD is an Open Source clone of Chris Sawyer's Transport Tycoon Deluxe
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}-source.tar.bz2
Requires: fontconfig Requires: fontconfig
Requires: libicu Requires: libicu
@ -76,22 +79,23 @@ download of the game.
--prefix-dir="%{_prefix}" \ --prefix-dir="%{_prefix}" \
--binary-dir="bin" \ --binary-dir="bin" \
--binary-name="%{name}" \ --binary-name="%{name}" \
# --menu-name="OpenTTD" \
# --data-dir="share\games\%{name}" \
# --doc-dir="share\doc\%{name}" \
# --icon-dir="share/pixmaps" \
# --icon-theme-dir="share/icons/hicolor" \
# --man-dir="share/man/man6" \
# --menu-dir="share/applications" \
--enable-debug=0 \ --enable-debug=0 \
# --menu_group="Game;" \
--with-sdl \ --with-sdl \
--with-zlib \ --with-zlib \
--with-png \ --with-png \
--with-freetype \ --with-freetype \
--with-fontconfig \ --with-fontconfig \
--with-icu \ --with-icu \
--enable-strip --enable-strip \
# --menu_group="Game;" \
# --menu-name="OpenTTD" \
# --data-dir="share\games\%{name}" \
# --doc-dir="share\doc\%{name}" \
# --icon-dir="share/pixmaps" \
# --icon-theme-dir="share/icons/hicolor" \
# --man-dir="share/man/man6" \
# --menu-dir="share/applications"
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -101,11 +105,11 @@ make install INSTALL_DIR="%{buildroot}"
# Validate menu entrys (vendor specific) # Validate menu entrys (vendor specific)
%if %{_vendor} == "redhat" || %{_vendor}=="fedora" %if %{_vendor} == "redhat" || %{_vendor}=="fedora"
desktop-file-install \ desktop-file-install \
# --delete-original \
--vendor="%{_vendor}" \ --vendor="%{_vendor}" \
--remove-key Version \ --remove-key Version \
--dir="%{buildroot}/%{_datadir}/applications/" \ --dir="%{buildroot}/%{_datadir}/applications/" \
"%{buildroot}/%{_datadir}/applications/%{name}.desktop" "%{buildroot}/%{_datadir}/applications/%{name}.desktop" \
# --delete-original
%endif %endif
%clean %clean
@ -148,7 +152,8 @@ fi
%{_datadir}/doc/%{name}/* %{_datadir}/doc/%{name}/*
%{_datadir}/games/%{name}/lang/* %{_datadir}/games/%{name}/lang/*
%{_datadir}/games/%{name}/data/* %{_datadir}/games/%{name}/data/*
%{_datadir}/applications/%{name}.desktop %{_datadir}/games/%{name}/scripts/*
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/pixmaps/* %{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/%{name}.png %{_datadir}/icons/hicolor/*/apps/%{name}.png
%doc %{_mandir}/man6/%{name}.6.gz %doc %{_mandir}/man6/%{name}.6.gz