From b491605bf398863869b06bb80611f608711bd47d329e947f629d40a22f7eeffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Wed, 6 Dec 2017 09:25:01 +0000 Subject: [PATCH] Accepting request 554646 from home:elvigia:branches:X11:windowmanagers - Respect %optflags - BuildRequire only the needed x libs, not xorg-x11-devel OBS-URL: https://build.opensuse.org/request/show/554646 OBS-URL: https://build.opensuse.org/package/show/X11:windowmanagers/herbstluftwm?expand=0&rev=7 --- herbstluftwm.changes | 6 ++++++ herbstluftwm.spec | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/herbstluftwm.changes b/herbstluftwm.changes index 4c20ea3..98c0e0e 100644 --- a/herbstluftwm.changes +++ b/herbstluftwm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 5 21:35:10 UTC 2017 - crrodriguez@opensuse.org + +- Respect %optflags +- BuildRequire only the needed x libs, not xorg-x11-devel + ------------------------------------------------------------------- Tue Sep 5 03:45:45 UTC 2017 - aavindraa@gmail.com diff --git a/herbstluftwm.spec b/herbstluftwm.spec index c92d64a..1972116 100644 --- a/herbstluftwm.spec +++ b/herbstluftwm.spec @@ -30,9 +30,9 @@ BuildRequires: gcc-c++ >= 4.9 BuildRequires: glib2-devel BuildRequires: libxslt-devel BuildRequires: ncurses-utils -BuildRequires: xorg-x11-devel -Requires: xorg-x11-libX11 -# BuildArch: noarch +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xinerama) %description herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib. @@ -40,10 +40,10 @@ herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib. %prep %setup -q - %build -make COLOR=0 %{?_smp_mflags} - +export CXXFLAGS="%optflags" +export CFLAGS="%optflags" +make VERBOSE= COLOR=0 %{?_smp_mflags} %install make install \ @@ -55,7 +55,6 @@ make install \ install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/xsessions/%{name}.desktop - %files %dir %{_datadir}/zsh/functions %dir %{_datadir}/zsh/functions/Completion