forked from pool/freeciv
spec-cleanup
OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=28
This commit is contained in:
parent
172115c160
commit
2f23a7bd76
48
freeciv.spec
48
freeciv.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package freeciv
|
# spec file for package freeciv
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,6 +17,18 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: freeciv
|
Name: freeciv
|
||||||
|
Version: 2.4.4
|
||||||
|
Release: 0
|
||||||
|
Summary: Free Civilization Clone
|
||||||
|
License: GPL-2.0+
|
||||||
|
Group: Amusements/Games/Strategy/Turn Based
|
||||||
|
Url: http://www.freeciv.org
|
||||||
|
Source0: http://download.gna.org/freeciv/stable/%{name}-%{version}.tar.bz2
|
||||||
|
Source1: freeciv.desktop
|
||||||
|
Source2: freeciv.png
|
||||||
|
Source3: freeciv-manual
|
||||||
|
Source4: freeciv-manual.desktop
|
||||||
|
Source5: freeciv-manual.png
|
||||||
BuildRequires: SDL_mixer-devel
|
BuildRequires: SDL_mixer-devel
|
||||||
BuildRequires: audiofile-devel
|
BuildRequires: audiofile-devel
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
@ -31,18 +43,6 @@ BuildRequires: libtool
|
|||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
BuildRequires: xz-devel
|
BuildRequires: xz-devel
|
||||||
Url: http://www.freeciv.org
|
|
||||||
Summary: Free Civilization Clone
|
|
||||||
License: GPL-2.0+
|
|
||||||
Group: Amusements/Games/Strategy/Turn Based
|
|
||||||
Version: 2.4.4
|
|
||||||
Release: 0
|
|
||||||
Source0: http://download.gna.org/freeciv/stable/%{name}-%{version}.tar.bz2
|
|
||||||
Source1: freeciv.desktop
|
|
||||||
Source2: freeciv.png
|
|
||||||
Source3: freeciv-manual
|
|
||||||
Source4: freeciv-manual.desktop
|
|
||||||
Source5: freeciv-manual.png
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -70,20 +70,20 @@ autoreconf -fi
|
|||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
install -m 755 $RPM_SOURCE_DIR/freeciv-manual $RPM_BUILD_ROOT/usr/bin
|
install -m 755 $RPM_SOURCE_DIR/freeciv-manual %{buildroot}%{_prefix}/bin
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps/
|
mkdir -p %{buildroot}%{_datadir}/pixmaps/
|
||||||
install -m 644 $RPM_SOURCE_DIR/*.png $RPM_BUILD_ROOT/usr/share/pixmaps
|
install -m 644 $RPM_SOURCE_DIR/*.png %{buildroot}%{_datadir}/pixmaps
|
||||||
%suse_update_desktop_file -i %name Game StrategyGame
|
%suse_update_desktop_file -i %{name} Game StrategyGame
|
||||||
%suse_update_desktop_file -i freeciv-manual Game StrategyGame
|
%suse_update_desktop_file -i freeciv-manual Game StrategyGame
|
||||||
%if 0%{?sles_version} == 11
|
%if 0%{?sles_version} == 11
|
||||||
%__rm -rf %{buildroot}/%{_datadir}/locale/no
|
rm -rf %{buildroot}/%{_datadir}/locale/no
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%find_lang %name
|
%find_lang %{name}
|
||||||
%fdupes %{buildroot}/%{_datadir}/
|
%fdupes %{buildroot}/%{_datadir}/
|
||||||
|
|
||||||
%files -f %name.lang
|
%files -f %{name}.lang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %{_docdir}/freeciv
|
%doc %{_docdir}/freeciv
|
||||||
%exclude %{_docdir}/freeciv/INSTALL*
|
%exclude %{_docdir}/freeciv/INSTALL*
|
||||||
@ -99,7 +99,7 @@ install -m 644 $RPM_SOURCE_DIR/*.png $RPM_BUILD_ROOT/usr/share/pixmaps
|
|||||||
%{_datadir}/applications/freeciv-manual.desktop
|
%{_datadir}/applications/freeciv-manual.desktop
|
||||||
%{_datadir}/applications/freeciv-server.desktop
|
%{_datadir}/applications/freeciv-server.desktop
|
||||||
%{_datadir}/applications/freeciv-modpack.desktop
|
%{_datadir}/applications/freeciv-modpack.desktop
|
||||||
%{_datadir}/applications/%name.desktop
|
%{_datadir}/applications/%{name}.desktop
|
||||||
%{_datadir}/freeciv/
|
%{_datadir}/freeciv/
|
||||||
%{_datadir}/icons/hicolor/128x128/apps/freeciv-client.png
|
%{_datadir}/icons/hicolor/128x128/apps/freeciv-client.png
|
||||||
%{_datadir}/icons/hicolor/128x128/apps/freeciv-server.png
|
%{_datadir}/icons/hicolor/128x128/apps/freeciv-server.png
|
||||||
@ -118,8 +118,8 @@ install -m 644 $RPM_SOURCE_DIR/*.png $RPM_BUILD_ROOT/usr/share/pixmaps
|
|||||||
%{_datadir}/icons/hicolor/64x64/apps/freeciv-modpack.png
|
%{_datadir}/icons/hicolor/64x64/apps/freeciv-modpack.png
|
||||||
%{_datadir}/pixmaps/freeciv-client.png
|
%{_datadir}/pixmaps/freeciv-client.png
|
||||||
%{_datadir}/pixmaps/freeciv-manual.png
|
%{_datadir}/pixmaps/freeciv-manual.png
|
||||||
%{_datadir}/pixmaps/%name.png
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
%dir %{_datadir}/appdata
|
%dir %{_datadir}/appdata
|
||||||
%{_datadir}/appdata/%name-*.appdata.xml
|
%{_datadir}/appdata/%{name}-*.appdata.xml
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user