forked from pool/libxkbcommon
Accepting request 535058 from home:jayvdb:Qt5
- Allow building x11 subpackage on any distribution OBS-URL: https://build.opensuse.org/request/show/535058 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/libxkbcommon?expand=0&rev=37
This commit is contained in:
parent
41554fa5cd
commit
e71f75b2be
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 19 01:30:35 UTC 2017 - jayvdb@gmail.com
|
||||
|
||||
- Allow building x11 subpackage on any distribution
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 7 16:29:12 UTC 2017 - jengelh@inai.de
|
||||
|
||||
|
@ -15,6 +15,12 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%if ! 0%{?suse_version} || 0%{?suse_version} >= 1315
|
||||
%bcond_without x11
|
||||
%else
|
||||
%bcond_with x11
|
||||
%endif
|
||||
|
||||
|
||||
Name: libxkbcommon
|
||||
Version: 0.7.2
|
||||
@ -38,7 +44,7 @@ BuildRequires: xz
|
||||
BuildRequires: pkgconfig(xkeyboard-config)
|
||||
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
||||
BuildRequires: pkgconfig(xproto)
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%if %{with x11}
|
||||
BuildRequires: pkgconfig(xcb-xkb) >= 1.10
|
||||
%endif
|
||||
|
||||
@ -90,6 +96,7 @@ Wayland and kmscon.
|
||||
This package contains the development headers for the library found
|
||||
in libxkbcommon.
|
||||
|
||||
%if %{with x11}
|
||||
%package x11-devel
|
||||
Summary: Development files for the libxkbcommon-x11 library
|
||||
Group: Development/Libraries/C and C++
|
||||
@ -102,6 +109,7 @@ users make sense of their keyboard input.
|
||||
|
||||
This package contains the development headers for the library found
|
||||
in %name-x11-0.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -110,7 +118,7 @@ in %name-x11-0.
|
||||
if [ ! -e configure ]; then
|
||||
NOCONFIGURE=1 ./autogen.sh;
|
||||
fi;
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%if %{with x11}
|
||||
extra_opts=--enable-x11
|
||||
%else
|
||||
extra_opts=--disable-x11
|
||||
@ -137,20 +145,20 @@ rm -f "%buildroot/%_libdir"/*.la;
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NEWS
|
||||
%_includedir/pkg/
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%if %{with x11}
|
||||
%exclude %_includedir/pkg/%name/xkbcommon/xkbcommon-x11.h
|
||||
%endif
|
||||
%_libdir/libxkbcommon.so
|
||||
%_libdir/pkgconfig/xkbcommon.pc
|
||||
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%if %{with x11}
|
||||
%files -n libxkbcommon-x11-0
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NEWS
|
||||
%_libdir/libxkbcommon-x11.so.*
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1315
|
||||
%if %{with x11}
|
||||
%files x11-devel
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE NEWS
|
||||
|
Loading…
Reference in New Issue
Block a user