Accepting request 750204 from home:StefanBruens:branches:multimedia:libs

- Drop -Werror=date-time, it is not supported by older GCCs, and
  newer ones support SOURCE_DATE_EPOCH
- Conflict older devel packages, to avoid file conflicts.

OBS-URL: https://build.opensuse.org/request/show/750204
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libdbus-c++?expand=0&rev=31
This commit is contained in:
Dave Plater 2019-11-22 05:36:48 +00:00 committed by Git OBS Bridge
parent 2013fde6be
commit b94715f96b
2 changed files with 17 additions and 9 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Nov 22 00:37:29 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
- Drop -Werror=date-time, it is not supported by older GCCs, and
newer ones support SOURCE_DATE_EPOCH
- Conflict older devel packages, to avoid file conflicts.
-------------------------------------------------------------------
Thu Nov 21 00:54:46 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -101,6 +101,7 @@ Summary: Development files for libdbus-c++
Group: Development/Libraries/C and C++
Requires: libdbus-c++%{?psuffix}-1-%{sover} = %{version}
Recommends: libdbus-c++-api-docs
Conflicts: libdbus-c++-devel <= %{version}-%{release}
%description devel
DBus-c++ provides a C++ API for D-BUS. The library has
@ -120,21 +121,21 @@ libdbus-c++.
%build
export SOVER="%{sover}:0:0"
export LDFLAGS="$LDFLAGS -lexpat -lpthread -pie"
export CFLAGS="%{optflags} -fPIC -Werror=date-time"
export CXXFLAGS="%{optflags} --std=c++11 -fPIC -Werror=date-time"
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} --std=c++11 -fPIC"
./bootstrap
%configure \
--disable-ecore \
--enable-static=no \
--disable-ecore \
--enable-static=no \
%if %{without glib}
--disable-glib \
--disable-glib \
%endif
%if %{with docs}
--enable-doxygen-docs \
--enable-doxygen-docs \
%else
--disable-doxygen-docs \
--enable-tests \
--enable-examples
--disable-doxygen-docs \
--enable-tests \
--enable-examples
%endif
%if "%{flavor}" == "docs"