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