summaryrefslogtreecommitdiff
path: root/packaging/xev.spec
blob: 3056c3a6cf7a6f29918606cf9308ee5c622e8f7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%bcond_with x

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)

%if !%{with x}
ExclusiveArch:
%endif

%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
%autogen --disable-static
make %{?_smp_mflags}

%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*