From 4ded949a84f8ccee5d8dcb5f90cb98606397092b Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 3 Sep 2013 04:19:38 -0400 Subject: Add a spec file for packaging Change-Id: Ic9b24e9e6d0c81f9d90a3ea6736095283e302c28 --- packaging/xev.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 packaging/xev.spec diff --git a/packaging/xev.spec b/packaging/xev.spec new file mode 100755 index 0000000..b18af0d --- /dev/null +++ b/packaging/xev.spec @@ -0,0 +1,50 @@ +Summary: print contents of X events +Name: xev +Version: 1.2.1 +Release: 1 +License: MIT +Group: User Interface/X +URL: http://www.x.org +Source: %{name}-%{version}.tar.gz + +BuildRequires: pkgconfig(dmx) pkgconfig(xext) pkgconfig(xft) pkgconfig(xrandr) +BuildRequires: pkgconfig(xi) pkgconfig(xinerama) pkgconfig(xmu) +BuildRequires: pkgconfig(xpm) pkgconfig(xt) pkgconfig(xtst) pkgconfig(xv) +BuildRequires: pkgconfig(xxf86dga) pkgconfig(xxf86vm) +BuildRequires: pkgconfig(xcb) pkgconfig(xcb-atom) + +%description +Xev creates a window and then asks the X server to send it events whenever +anything happens to the window (such as it being moved, resized, typed in, +clicked in, etc.). You can also attach it to an existing window. It is useā€ful +for seeing what causes events to occur and to display the information that +they contain; it is essentially a debugging and development tool, and should +not be needed in normal usage. + +%prep +%setup -q + +%build +%configure +make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p %{buildroot}/usr/share/license +cp -af COPYING %{buildroot}/usr/share/license/%{name} +{ + make install DESTDIR=$RPM_BUILD_ROOT +} + +%remove_docs + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +/usr/share/license/%{name} +#%doc +%{_bindir}/* +#%{_bindir}/xev +#%{_mandir}/man1/xev.1* -- cgit v1.2.3