- Make sure optflags are honored

OBS-URL: https://build.opensuse.org/package/show/network:time/pps-tools?expand=0&rev=11
This commit is contained in:
Martin Pluskal 2020-10-20 07:13:12 +00:00 committed by Git OBS Bridge
parent feb0c993d4
commit c04b0f8e8c
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 20 07:11:40 UTC 2020 - Martin Pluskal <mpluskal@suse.com>
- Make sure optflags are honored
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 14 10:58:06 UTC 2018 - Martin Pluskal <mpluskal@suse.com> Fri Dec 14 10:58:06 UTC 2018 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package pps-tools # spec file for package pps-tools
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# 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
@ -22,10 +22,8 @@ Version: 0.0.0+git.20181203
Release: 0 Release: 0
Summary: Userspace tools for the Linux Pulse Per Second subsystem Summary: Userspace tools for the Linux Pulse Per Second subsystem
License: GPL-2.0-or-later License: GPL-2.0-or-later
Group: Hardware/Other
URL: http://linuxpps.org URL: http://linuxpps.org
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
BuildRequires: xz
%description %description
Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt Userland tools to test Linux kernel PPS API. See Documentations/pps/pps.txt
@ -33,7 +31,6 @@ for reference.
%package devel %package devel
Summary: Development files for the LinuxPPS API Summary: Development files for the LinuxPPS API
Group: Development/Languages/C and C++
%description devel %description devel
This subpackage contains a header-only C API providing a number of This subpackage contains a header-only C API providing a number of
@ -42,13 +39,16 @@ API. It is, for example, used by ntpd to interact with timing
devices. devices.
%prep %prep
%setup -q %autosetup
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
make %{?_smp_mflags} %make_build
%install %install
# for some reason rebuild occurs during installation
# we need to be sure that optflags are still honored
export CFLAGS="%{optflags}"
%make_install %make_install
%files %files