- Add freeciv-appdata-desktop-references.patch: Correct .desktop

file reference inside freeciv-gtk3.appdata.
- Move .appdata files to the same packages as their respective
  .desktop files.

OBS-URL: https://build.opensuse.org/package/show/games/freeciv?expand=0&rev=33
This commit is contained in:
2015-05-27 10:37:03 +00:00
committed by Git OBS Bridge
parent 4747263606
commit d2724cd39f
3 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
Index: freeciv-2.5.0/bootstrap/freeciv-gtk3.appdata.xml.in
===================================================================
--- freeciv-2.5.0.orig/bootstrap/freeciv-gtk3.appdata.xml.in
+++ freeciv-2.5.0/bootstrap/freeciv-gtk3.appdata.xml.in
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<application>
- <id type="desktop">freeciv.desktop</id>
+ <id type="desktop">freeciv-gtk3.desktop</id>
<licence>CC0</licence>
<description>
<p>

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed May 27 10:02:03 UTC 2015 - dimstar@opensuse.org
- Add freeciv-appdata-desktop-references.patch: Correct .desktop
file reference inside freeciv-gtk3.appdata.
- Move .appdata files to the same packages as their respective
.desktop files.
-------------------------------------------------------------------
Sat May 9 19:27:23 UTC 2015 - opensuse@dstoecker.de

View File

@@ -32,6 +32,7 @@ Source3: freeciv.png
Source4: freeciv-manual
Source5: freeciv-manual.desktop
Source6: freeciv-manual.png
Patch0: freeciv-appdata-desktop-references.patch
%if 0%{?suse_version} >= 1320
Patch1: fix-qt5-detection.patch
%endif
@@ -90,6 +91,7 @@ Freeciv executable using Gtk3 library
%prep
%setup -q
%patch0 -p1
%if 0%{?suse_version} >= 1320
%patch1
%endif
@@ -166,20 +168,23 @@ rm -rf %{buildroot}/%{_datadir}/locale/no
%{_datadir}/pixmaps/freeciv-manual.png
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}-*.appdata.xml
%{_datadir}/appdata/freeciv-server.appdata.xml
%files gtk3
%defattr(-,root,root)
%{_bindir}/freeciv-gtk3
%{_bindir}/freeciv-mp-gtk3
%{_datadir}/applications/%{name}-gtk3.desktop
/usr/share/applications/freeciv-mp-gtk3.desktop
%{_datadir}/appdata/freeciv-gtk3.appdata.xml
%{_datadir}/applications/freeciv-mp-gtk3.desktop
%{_datadir}/appdata/freeciv-mp-gtk3.appdata.xml
%if 0%{?suse_version} >= 1320
%files qt
%defattr(-,root,root)
%{_bindir}/freeciv-qt
%{_datadir}/applications/%{name}-qt.desktop
%{_datadir}/appdata/freeciv-qt.appdata.xml
%endif
%changelog