X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=packaging%2Flibxkbcommon.spec;h=bfd57cbdc2ff108c0c337564551eb26ea328fe2b;hb=5be88a2e364914b35043f46ca09a4c8ba65992bf;hp=136f9ccc2a7dbf308bef18790982d5f8d10545c6;hpb=3ba1c073e1b7be43038ed2ca345d8222a6e2174b;p=platform%2Fupstream%2Flibxkbcommon.git diff --git a/packaging/libxkbcommon.spec b/packaging/libxkbcommon.spec index 136f9cc..bfd57cb 100644 --- a/packaging/libxkbcommon.spec +++ b/packaging/libxkbcommon.spec @@ -1,5 +1,5 @@ Name: libxkbcommon -Version: 0.4.3 +Version: 1.5.0 Release: 0 License: MIT Summary: Wayland libxkbcommon library @@ -9,17 +9,23 @@ 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} %description Keyboard handling library using XKB data. @@ -36,25 +42,31 @@ 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 -%if "%{?profile}" == "common" -%else -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 chmod a+x ./gen_tables.sh ./gen_tables.sh -%endif %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 +export DESTDIR=%{buildroot} +ninja -C builddir install %post -p /sbin/ldconfig @@ -66,6 +78,14 @@ chmod a+x ./gen_tables.sh %license COPYING %{_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) @@ -73,3 +93,6 @@ chmod a+x ./gen_tables.sh %{_libdir}/libxkbcommon.so %{_libdir}/pkgconfig/xkbcommon.pc +## disable xkbregistry ## +#%{_libdir}/libxkbregistry.so +#%{_libdir}/pkgconfig/xkbregistry.pc