Hello community,

here is the log from the commit of package sar2 for openSUSE:Factory checked in 
at 2017-08-24 18:41:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/sar2 (Old)
 and      /work/SRC/openSUSE:Factory/.sar2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "sar2"

Thu Aug 24 18:41:15 2017 rev:1 rq:512055 version:2.3.2

Changes:
--------
New Changes file:

--- /dev/null   2017-07-20 07:30:00.335470106 +0200
+++ /work/SRC/openSUSE:Factory/.sar2.new/sar2.changes   2017-08-24 
18:41:21.518703757 +0200
@@ -0,0 +1,37 @@
+-------------------------------------------------------------------
+Sat Jul 15 16:19:51 UTC 2017 - [email protected]
+
+- Update to version 2.3.2
+- Add appdata.xml
+- Build with optflags
+
+-------------------------------------------------------------------
+Thu Jan 17 21:04:35 UTC 2013 - [email protected]
+
+- Fixed the spec file to be able to build for openSUSE > 12.2 
+
+-------------------------------------------------------------------
+Fri Dec  2 15:24:11 UTC 2011 - [email protected]
+
+- Remove redundant/unwanted tags/section (cf. specfile guidelines)
+
+-------------------------------------------------------------------
+Fri Dec  2 10:59:07 UTC 2011 - [email protected]
+
+- fix building (libs.patch) 
+
+-------------------------------------------------------------------
+Mon Jun 13 11:55:25 UTC 2011 - [email protected]
+
+- split off data subpackage
+
+-------------------------------------------------------------------
+Mon Jun 13 11:21:52 UTC 2011 - [email protected]
+
+- spec cleanup
+
+-------------------------------------------------------------------
+Sun Apr 24 23:05:34 UTC 2011 - [email protected]
+
+- initial build (v 2.3.0)
+

New:
----
  appdata.patch
  sar2-2.3.2-optflags.patch
  sar2-2.3.2.tar.gz
  sar2.changes
  sar2.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ sar2.spec ++++++
#
# spec file for package sar2
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           sar2
Version:        2.3.2
Release:        0
Summary:        Rescue Helicopter Simulator
License:        GPL-2.0
Group:          Amusements/Games/3D/Simulation
Url:            https://searchandrescue2.github.io/sar2/
Source:         
https://github.com/SearchAndRescue2/sar2/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/SearchAndRescue2/sar2/pull/5 & 
https://github.com/SearchAndRescue2/sar2/pull/4
Patch1:         
http://pkgs.fedoraproject.org/cgit/rpms/sar2.git/plain/sar2-2.3.2-optflags.patch
# PATCH-FEATURE-UPSTREAM https://github.com/SearchAndRescue2/sar2/pull/6
Patch2:         appdata.patch
BuildRequires:  Mesa-devel
BuildRequires:  fdupes
BuildRequires:  freealut-devel
BuildRequires:  gcc-c++
BuildRequires:  libSDL-devel
BuildRequires:  libvorbis-devel
BuildRequires:  openal-soft-devel
BuildRequires:  scons
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-libICE-devel
BuildRequires:  xorg-x11-libSM-devel
BuildRequires:  xorg-x11-libX11-devel
BuildRequires:  xorg-x11-libXext-devel
BuildRequires:  xorg-x11-libXmu-devel
BuildRequires:  xorg-x11-libXpm-devel
Requires:       %{name}-data = %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Search and Rescue II is a rescue helicopter simulator for Linux.
It features several missions where the player pilots a
helicopter in order to rescue people in distress. There are
several scenarios and helicopter models.

SaR II has a strong focus on realistic physics and low graphics requirements
and it is a fork of the game "Search and Rescue"

Among the improvements of SaR II are:
* OpenAL sound effects
* Smoother graphics
* Full SDL Joystick support
* Full playable music

%package data
Summary:        Data files for sar2
Group:          Amusements/Games/3D/Simulation
Requires:       %{name} = %{version}
BuildArch:      noarch

%description data
Data files for Search and Rescue II

%prep
%setup -q
%patch1 -p1 -b .optflags
%patch2 -p1

%build
scons --optflags="%{optflags} -DHAVE_LIBXPM"

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -ar data/* %{buildroot}%{_datadir}/%{name}/

mkdir -p %{buildroot}%{_mandir}/man6
cp -a man/* %{buildroot}%{_mandir}/man6

mkdir -p %{buildroot}%{_bindir}
cp -a bin/%{name} %{buildroot}%{_bindir}

install -D -m 0644 extra/sar2.desktop 
%{buildroot}%{_datadir}/applications/%{name}.desktop
%suse_update_desktop_file %{name}

install -D -m 0644 extra/sar2.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

install -D -m 0644 extra/sar2.appdata.xml 
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

%fdupes %{buildroot}%{_datadir}

%post
%desktop_database_post

%postun
%desktop_database_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGELOG HACKING LICENSE README
%doc %{_mandir}/man6/%{name}.6*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/appdata/%{name}.appdata.xml

%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}/

%changelog
++++++ appdata.patch ++++++
>From 2064927c47acd30b0f2a3ec765f9b99b8f039b31 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
 <[email protected]>
Date: Sat, 15 Jul 2017 18:12:33 +0200
Subject: [PATCH] Create sar2.appdata.xml

---
 extra/sar2.appdata.xml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 extra/sar2.appdata.xml

diff --git a/extra/sar2.appdata.xml b/extra/sar2.appdata.xml
new file mode 100644
index 0000000..482a258
--- /dev/null
+++ b/extra/sar2.appdata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>sar2.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0</project_license>
+  <name>Search and Rescue II</name>
+  <summary>Rescue Helicopter Simulator</summary>
+  <description>
+    <p>
+      Search and Rescue II is a rescue helicopter simulator for Linux.
+      It features several missions where the player pilots a
+      helicopter in order to rescue people in distress. There are
+      several scenarios and helicopter models.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      
<image>https://searchandrescue2.github.io/sar2/images/screenshots/sar1.jpg</image>
+    </screenshot>
+    <screenshot>
+      
<image>https://searchandrescue2.github.io/sar2/images/screenshots/sar2.jpg</image>
+    </screenshot>
+    <screenshot>
+      
<image>https://searchandrescue2.github.io/sar2/images/screenshots/sar3.jpg</image>
+    </screenshot>
+    <screenshot>
+      
<image>https://searchandrescue2.github.io/sar2/images/screenshots/sar4.jpg</image>
+    </screenshot>
+    <screenshot>
+      
<image>https://searchandrescue2.github.io/sar2/images/screenshots/sar5.jpg</image>
+    </screenshot>
+  </screenshots>
+  <url type="homepage">https://searchandrescue2.github.io/sar2/</url>
+</component>
++++++ sar2-2.3.2-optflags.patch ++++++
diff -up sar2-2.3.2/src/SConscript.optflags sar2-2.3.2/src/SConscript
--- sar2-2.3.2/src/SConscript.optflags  2017-01-30 13:21:00.139188769 -0500
+++ sar2-2.3.2/src/SConscript   2017-01-30 13:23:26.427955596 -0500
@@ -1,10 +1,22 @@
 env = Environment()
 
+AddOption( "--optflags",
+           dest="optflags",
+           type="string",
+           nargs=1,
+           action="store",
+           help="set custom optflags")
+
+optflags = GetOption("optflags")
+
+
 debug = ARGUMENTS.get('debug', 0)
 
 if int(debug):
     env.Append(CPPFLAGS = ['-g', '-Wall', '-O0', '-finline-functions',
                            '-Wno-write-strings', '-DHAVE_LIBXPM'])
+elif optflags:
+    env.Append( CPPFLAGS = optflags )
 else:
     env.Append(CPPFLAGS = ['-O6', '-funroll-loops',
                            '-fomit-frame-pointer',

Reply via email to