SHA256
1
0
forked from pool/gpsd

Accepting request 254374 from home:elvigia:branches:Application:Geo

- Respect CFLAGS and CXXFLAGS. 
- Use fvisibility-inlines-hidden to build C++ code, note
  that the build system is buggy and uses CFLAGS and CXXFLAGS
  for the same purpose.
- Remove xorg libs buildrequires, they are never directly used.

OBS-URL: https://build.opensuse.org/request/show/254374
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=83
This commit is contained in:
Angelos Tzotsos 2014-10-06 19:51:54 +00:00 committed by Git OBS Bridge
parent f3f96d68ac
commit bc47df502a
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Oct 6 18:13:09 UTC 2014 - crrodriguez@opensuse.org
- Respect CFLAGS and CXXFLAGS.
- Use fvisibility-inlines-hidden to build C++ code, note
that the build system is buggy and uses CFLAGS and CXXFLAGS
for the same purpose.
- Remove xorg libs buildrequires, they are never directly used.
-------------------------------------------------------------------
Mon Dec 9 12:11:26 UTC 2013 - opensuse@dstoecker.de

View File

@ -1,7 +1,7 @@
#
# spec file for package gpsd
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -47,8 +47,6 @@ BuildRequires: scons >= 2.0.1
BuildRequires: udev
BuildRequires: update-desktop-files
BuildRequires: xmlto
BuildRequires: xorg-x11-devel
BuildRequires: xorg-x11-libXpm-devel
Source: http://download-mirror.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.gz
Source1: rules.gpsd
Source2: udev.gpsd
@ -144,9 +142,13 @@ can run on a serial terminal or terminal emulator.
%patch0 -p1
%build
export CFLAGS="%optflags -fvisibility-inlines-hidden"
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
scons prefix=%{_prefix} libdir=%{_libdir} strip=False
%install
export CFLAGS="%optflags -fvisibility-inlines-hidden"
export CXXFLAGS="%optflags -fvisibility-inlines-hidden"
DESTDIR=%{buildroot} scons prefix=%{_prefix} libdir=%{_libdir} strip=False install
install -d -m 755 %{buildroot}%{_udevdir}
install -d -m 755 %{buildroot}%{_udevdir}/rules.d