summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/xkbutils.manifest5
-rw-r--r--packaging/xkbutils.spec54
2 files changed, 59 insertions, 0 deletions
diff --git a/packaging/xkbutils.manifest b/packaging/xkbutils.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/xkbutils.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/xkbutils.spec b/packaging/xkbutils.spec
new file mode 100644
index 0000000..8faf3df
--- /dev/null
+++ b/packaging/xkbutils.spec
@@ -0,0 +1,54 @@
+%bcond_with x
+
+Name: xkbutils
+Version: 1.0.3
+Release: 0
+License: MIT
+Summary: Collection of small utilities utilizing the X11 XKeyboard extension
+Url: http://xorg.freedesktop.org/
+Group: System/X11/Utilities
+Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
+Source1001: xkbutils.manifest
+BuildRequires: pkg-config
+BuildRequires: pkgconfig(inputproto)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xaw7)
+BuildRequires: pkgconfig(xorg-macros) >= 1.8
+BuildRequires: pkgconfig(xproto)
+BuildRequires: pkgconfig(xt)
+
+%if !%{with x}
+ExclusiveArch:
+%endif
+
+%description
+xkbutils is a collection of small utilities utilizing the XKeyboard
+(XKB) extension to the X11 protocol.
+
+It includes:
+ xkbbell - generate XKB bell events
+ xkbvleds - display the state of LEDs on an XKB keyboard in a window
+ xkbwatch - reports changes in the XKB keyboard state
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%doc COPYING
+%{_bindir}/xkbbell
+%{_bindir}/xkbvleds
+%{_bindir}/xkbwatch
+
+%changelog