libxkbcommon-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: X.Org X11 XKB parsing library
  3. Summary(ja): X.Org X11 XKB 解析ライブラリ
  4. Name: libxkbcommon
  5. Version: 0.6.1
  6. Release: 1%{?_dist_release}
  7. License: MIT
  8. Group: System Environment/Libraries
  9. URL: http://xkbcommon.org/
  10. Source0: http://xkbcommon.org/download/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: libxcb-devel
  13. BuildRequires: xorg-x11-util-macros
  14. BuildRequires: xkeyboard-config
  15. BuildRequires: bison
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: Takemikaduchi
  19. %description
  20. xkbcommon is a library to handle keyboard descriptions, including
  21. loading them from disk, parsing them and handling their state.
  22. It's mainly meant for client toolkits, window systems, and other
  23. system applications; currently that includes Wayland, kmscon, GTK+,
  24. Qt, Clutter, and more. It is also used by some XCB applications for
  25. proper keyboard support.
  26. %package devel
  27. Summary: Development tools for %{name}
  28. Summary(ja): %{name} の開発環境
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: pkgconfig
  32. Requires: libxcb-devel
  33. %description devel
  34. Header files and libraries for building a extension library for the %{name}.
  35. # compat32
  36. %package -n compat32-%{name}
  37. Summary: X.Org X11 XKB parsing library
  38. Summary(ja): X.Org X11 XKB 解析ライブラリ
  39. Group: System Environment/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. %description -n compat32-%{name}
  42. xkbcommon is a library to handle keyboard descriptions, including
  43. loading them from disk, parsing them and handling their state.
  44. It's mainly meant for client toolkits, window systems, and other
  45. system applications; currently that includes Wayland, kmscon, GTK+,
  46. Qt, Clutter, and more. It is also used by some XCB applications for
  47. proper keyboard support.
  48. %package -n compat32-%{name}-devel
  49. Summary: Development tools for %{name}
  50. Summary(ja): %{name} の開発環境
  51. Group: Development/Libraries
  52. Requires: %{name}-devel = %{version}-%{release}
  53. Requires: pkgconfig
  54. Requires: compat32-libxcb-devel
  55. %description -n compat32-%{name}-devel
  56. Header files and libraries for building a extension library for the %{name}.
  57. %prep
  58. %setup -q
  59. %build
  60. %configure \
  61. --disable-static \
  62. --with-default-rules=evdev \
  63. --with-default-model=pc106 \
  64. --with-default-layout=jp
  65. make %{?_smp_mflags}
  66. %install
  67. rm -rf $RPM_BUILD_ROOT
  68. make install DESTDIR=$RPM_BUILD_ROOT
  69. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT
  72. %post -p /sbin/ldconfig
  73. %postun -p /sbin/ldconfig
  74. %post -n compat32-%{name} -p /sbin/ldconfig
  75. %postun -n compat32-%{name} -p /sbin/ldconfig
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc COPYING NEWS README.md
  79. %{_libdir}/libxkbcommon-x11.so.*
  80. %{_libdir}/libxkbcommon.so.*
  81. %files devel
  82. %defattr(-,root,root,-)
  83. %{_includedir}/xkbcommon/
  84. %{_libdir}/libxkbcommon-x11.so
  85. %{_libdir}/libxkbcommon.so
  86. %{_libdir}/pkgconfig/xkbcommon-x11.pc
  87. %{_libdir}/pkgconfig/xkbcommon.pc
  88. # compat32
  89. %if %{build_compat32}
  90. %files -n compat32-%{name}
  91. %defattr(-,root,root,-)
  92. %{_libdir}/libxkbcommon-x11.so.*
  93. %{_libdir}/libxkbcommon.so.*
  94. %files -n compat32-%{name}-devel
  95. %defattr(-,root,root,-)
  96. %{_libdir}/libxkbcommon-x11.so
  97. %{_libdir}/libxkbcommon.so
  98. %endif
  99. %changelog
  100. * Sun Jul 3 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.1-1
  101. - new upstream release.
  102. * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.3-1
  103. - initial build