X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Flibxkbcommon.spec;h=1abb4988991e61777fc4861e9881dd8607eaa47c;hb=243b0c8703e4339454d7b8e6758ffe6daddbb263;hp=94cc05cfd6a8d35dcee81d1cf55849a795f1ca75;hpb=14d073e6e3861a3e41f17460b0a6ae460683763c;p=platform%2Fupstream%2Flibxkbcommon.git diff --git a/packaging/libxkbcommon.spec b/packaging/libxkbcommon.spec index 94cc05c..1abb498 100644 --- a/packaging/libxkbcommon.spec +++ b/packaging/libxkbcommon.spec @@ -1,7 +1,7 @@ Name: libxkbcommon -Version: 0.4.3 +Version: 1.5.0 Release: 0 -License: MIT +License: BSD-3-Clause and MIT Summary: Wayland libxkbcommon library Url: http://wayland.freedesktop.org/ Group: Development/Libraries @@ -9,17 +9,21 @@ Group: Development/Libraries Source: %{name}-%{version}.tar.xz #X-Vcs-Url: https://github.com/xkbcommon/libxkbcommon.git Source1001: libxkbcommon.manifest -BuildRequires: autoconf >= 2.60 -BuildRequires: automake +BuildRequires: meson BuildRequires: bison BuildRequires: flex BuildRequires: libtool >= 2 BuildRequires: pkgconfig(xorg-macros) >= 1.8 -%if "%{?profile}" == "common" -%else BuildRequires: python BuildRequires: xkb-tizen-data -%endif +BuildRequires: gawk + +## This BuildRequires is needed when an enable-wayland option is true. +#BuildRequires: pkgconfig(wayland-client) +#BuildRequires: wayland-protocols + +## This BuildRequires is needed when an enable-xkbregistry option is true. +#BuildRequires: pkgconfig(libxml-2.0) %global TZ_SYS_RO_SHARE %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share} @@ -38,11 +42,10 @@ This package contains the development headers for the library found in %{name}. %prep -%setup -qn %{name} +%setup -q cp %{SOURCE1001} . -# Generate tizen keymap header except common profile -export TIZEN_PROFILE="%{?profile}" +# Generate tizen keymap header export TZ_SYS_RO_SHARE="%{TZ_SYS_RO_SHARE}" chmod a+x ./make_tizen_keymap.sh ./make_tizen_keymap.sh @@ -50,15 +53,20 @@ chmod a+x ./gen_tables.sh ./gen_tables.sh %build -%autogen --disable-static --disable-x11 --with-tizen-profile="%{?profile}" -%__make %{?_smp_mflags} V=1; +meson setup \ + -Denable-x11=false \ + -Denable-docs=false \ + -Denable-wayland=false \ + -Denable-xkbregistry=false \ + -Denable-tools=false \ + --prefix /usr \ + --libdir %{_libdir} \ + builddir +ninja -C builddir all %install -%make_install - -#for license notification -mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license -cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name} +export DESTDIR=%{buildroot} +ninja -C builddir install %post -p /sbin/ldconfig @@ -67,9 +75,17 @@ cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/licens %files %manifest %{name}.manifest %defattr(-,root,root) -%{TZ_SYS_RO_SHARE}/license/%{name} +%license COPYING LICENSE.BSD-3-Clause %{_libdir}/libxkbcommon.so.0* +## disable xkbregistry ## +#%{_libdir}/libxkbregistry.so.0* + +## diable tools ## +#%{_bindir}/* +#/usr/libexec/xkbcommon/* +#%doc %{_mandir}/man?/* + %files devel %manifest %{name}.manifest %defattr(-,root,root) @@ -77,3 +93,6 @@ cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/licens %{_libdir}/libxkbcommon.so %{_libdir}/pkgconfig/xkbcommon.pc +## disable xkbregistry ## +#%{_libdir}/libxkbregistry.so +#%{_libdir}/pkgconfig/xkbregistry.pc