1 %define _unpackaged_files_terminate_build 0
3 %define pkgname server-utils
4 # doesn't work yet, needs more nickle bindings
5 %define with_xkeystone 0
7 Summary: X.Org X11 X server utilities
8 Name: xorg-x11-server-utils
12 Group: User Interface/X
14 Source0: %{name}-%{version}.tar.gz
15 Source1: xmodmap.service
17 Source3: xset-autorepeat-lb.service
18 Source4: xset-autorepeat-i386.service
20 # NOTE: Each upstream tarball has its own "PatchN" section, taken from
21 # multiplying the "SourceN" line times 100. Please keep them in this
22 # order. Also, please keep each patch specific to a single upstream tarball,
23 # so that they don't have to be split in half when submitting upstream.
28 BuildRequires: xorg-x11-xutils-dev
29 #BuildRequires: pkgconfig(xorg-macros)
30 BuildRequires: pkgconfig(xmu) pkgconfig(xext) pkgconfig(xrandr)
31 BuildRequires: pkgconfig(xxf86vm) pkgconfig(xrender) pkgconfig(xi)
32 BuildRequires: pkgconfig(xt) pkgconfig(xpm)
33 # xsetroot requires xbitmaps-devel (which was renamed now)
34 BuildRequires: xorg-x11-xbitmaps
36 BuildRequires: libXcursor-devel
38 BuildRequires: libXinerama-devel
42 # older -apps had xinput and xkill, moved them here because they're
43 # a) universally useful and b) don't require Xaw
44 #Conflicts: xorg-x11-apps < 7.6-4
46 %define DEF_SUBDIRS iceauth rgb sessreg xgamma xhost xkill xmodmap xrandr xrdb xrefresh xset xsetmode xsetpointer xsetroot xstdcmap
47 Provides: %{DEF_SUBDIRS}
48 Provides: x11-xserver-utils = %{version}
51 A collection of utilities used to tweak and query the runtime configuration
56 Summary: X display keystone correction
57 Group: User Interface/X
60 %description -n xkeystone
61 Utility to perform keystone adjustments on X screens.
65 Summary: Device-specific files for Lunchbox
66 Group: User Interface/X
67 Requires: %{name} = %{version}
68 Provides: x11-xserver-utils-lb = %{version}
71 This package provides files for the X server utilities package that are
72 specific to Lunchbox devices.
75 Summary: Device-specific files for i386
76 Group: User Interface/X
77 Requires: %{name} = %{version}
78 Provides: x11-xserver-utils-i386 = %{version}
81 This package provides files for the X server utilities package that are
82 specific to i386/emulator devices.
90 export CFLAGS+=" -D_GNU_SOURCE"
92 for app in %{DEF_SUBDIRS}; do
97 MANCONF="/etc/manpath.config"
104 rm -rf $RPM_BUILD_ROOT
105 mkdir -p %{buildroot}/usr/share/license
106 cp -af COPYING %{buildroot}/usr/share/license/%{name}
109 for app in %{DEF_SUBDIRS} ; do
111 make install DESTDIR=$RPM_BUILD_ROOT
116 mkdir -p %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants
117 install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
118 install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/user/
119 install -m 0644 %SOURCE3 %{buildroot}%{_libdir}/systemd/user/
120 install -m 0644 %SOURCE4 %{buildroot}%{_libdir}/systemd/user/
121 ln -s ../xmodmap.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/xmodmap.service
122 ln -s ../xrdb.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/xrdb.service
123 ln -s ../xset-autorepeat-lb.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/xset-autorepeat-lb.service
124 ln -s ../xset-autorepeat-i386.service %{buildroot}%{_libdir}/systemd/user/core-efl.target.wants/xset-autorepeat-i386.service
129 rm -rf $RPM_BUILD_ROOT
132 %defattr(-,root,root,-)
133 /usr/share/license/%{name}
147 %{_bindir}/xsetpointer
150 %{_datadir}/X11/rgb.txt
151 %{_libdir}/systemd/user/xmodmap.service
152 %{_libdir}/systemd/user/xrdb.service
153 %{_libdir}/systemd/user/core-efl.target.wants/xmodmap.service
154 %{_libdir}/systemd/user/core-efl.target.wants/xrdb.service
156 %if %{with_xkeystone}
158 %defattr(-,root,root,-)
163 %{_libdir}/systemd/user/xset-autorepeat-lb.service
164 %{_libdir}/systemd/user/core-efl.target.wants/xset-autorepeat-lb.service
167 %{_libdir}/systemd/user/xset-autorepeat-i386.service
168 %{_libdir}/systemd/user/core-efl.target.wants/xset-autorepeat-i386.service