5c01e2
# doesn't work yet, needs more nickle bindings
5c01e2
%define with_xkeystone 0
5c01e2
5c01e2
# Component versions
5c01e2
%define iceauth 1.0.7
5c01e2
%define rgb 1.0.6
5c01e2
%define sessreg 1.1.0
5c01e2
%define xgamma 1.0.6
5c01e2
%define xhost 1.0.7
5c01e2
%define xinput 1.6.2
5c01e2
%define xkill 1.0.4
5c01e2
%define xmodmap 1.0.9
5c01e2
%define xrandr 1.5.0
5c01e2
%define xrdb 1.1.0
5c01e2
%define xrefresh 1.0.5
5c01e2
%define xset 1.2.3
5c01e2
%define xsetmode 1.0.0
5c01e2
%define xsetpointer 1.0.1
5c01e2
%define xsetroot 1.1.1
5c01e2
%define xstdcmap 1.0.3
5c01e2
5c01e2
Summary:    X.Org X11 X server utilities
5c01e2
Name:       xorg-x11-server-utils
5c01e2
Version:    7.7
5c01e2
Release:    20%{?dist}
5c01e2
License:    MIT
5c01e2
URL:        http://www.x.org
5c01e2
5c01e2
Source0:    http://www.x.org/pub/individual/app/iceauth-%{iceauth}.tar.bz2
5c01e2
Source1:    http://www.x.org/pub/individual/app/rgb-%{rgb}.tar.bz2
5c01e2
Source2:    http://www.x.org/pub/individual/app/sessreg-%{sessreg}.tar.bz2
5c01e2
Source3:    http://www.x.org/pub/individual/app/xgamma-%{xgamma}.tar.bz2
5c01e2
Source4:    http://www.x.org/pub/individual/app/xhost-%{xhost}.tar.bz2
5c01e2
Source5:    http://www.x.org/pub/individual/app/xinput-%{xinput}.tar.bz2
5c01e2
Source6:    http://www.x.org/pub/individual/app/xkill-%{xkill}.tar.bz2
5c01e2
Source7:    http://www.x.org/pub/individual/app/xmodmap-%{xmodmap}.tar.bz2
5c01e2
Source8:    http://www.x.org/pub/individual/app/xrandr-%{xrandr}.tar.bz2
5c01e2
Source9:    http://www.x.org/pub/individual/app/xrdb-%{xrdb}.tar.bz2
5c01e2
Source10:   http://www.x.org/pub/individual/app/xrefresh-%{xrefresh}.tar.bz2
5c01e2
Source11:   http://www.x.org/pub/individual/app/xset-%{xset}.tar.bz2
5c01e2
Source12:   http://www.x.org/pub/individual/app/xsetmode-%{xsetmode}.tar.bz2
5c01e2
Source13:   http://www.x.org/pub/individual/app/xsetpointer-%{xsetpointer}.tar.bz2
5c01e2
Source14:   http://www.x.org/pub/individual/app/xsetroot-%{xsetroot}.tar.bz2
5c01e2
Source15:   http://www.x.org/pub/individual/app/xstdcmap-%{xstdcmap}.tar.bz2
5c01e2
5c01e2
Patch2: 0001-Default-to-nocpp-add-cpp-default.patch
5c01e2
5c01e2
BuildRequires:  xorg-x11-util-macros
5c01e2
5c01e2
BuildRequires:  pkgconfig(xbitmaps)
5c01e2
BuildRequires:  pkgconfig(xcursor)
5c01e2
BuildRequires:  pkgconfig(xext)
5c01e2
BuildRequires:  pkgconfig(xi)
5c01e2
BuildRequires:  pkgconfig(xinerama)
5c01e2
BuildRequires:  pkgconfig(xmu)
5c01e2
BuildRequires:  pkgconfig(xpm)
5c01e2
BuildRequires:  pkgconfig(xrandr) >= 1.5.0
5c01e2
BuildRequires:  pkgconfig(xrender)
5c01e2
BuildRequires:  pkgconfig(xt)
5c01e2
BuildRequires:  pkgconfig(xtrans)
5c01e2
BuildRequires:  pkgconfig(xxf86misc)
5c01e2
BuildRequires:  pkgconfig(xxf86vm)
5c01e2
5c01e2
BuildRequires:  libtool
5c01e2
5c01e2
Provides:   iceauth = %{iceauth}
5c01e2
Provides:   rgb = %{rgb}
5c01e2
Provides:   sessreg = %{sessreg}
5c01e2
Provides:   xgamma = %{xgamma}
5c01e2
Provides:   xhost = %{xhost}
5c01e2
Provides:   xinput = %{xinput}
5c01e2
Provides:   xkill = %{xkill}
5c01e2
Provides:   xmodmap = %{xmodmap}
5c01e2
Provides:   xrandr = %{xrandr}
5c01e2
Provides:   xrdb = %{xrdb}
5c01e2
Provides:   xrefresh = %{xrefresh}
5c01e2
Provides:   xset = %{xset}
5c01e2
Provides:   xsetmode = %{xsetmode}
5c01e2
Provides:   xsetpointer = %{xsetpointer}
5c01e2
Provides:   xsetroot = %{xsetroot}
5c01e2
Provides:   xstdcmap = %{xstdcmap}
5c01e2
5c01e2
%description
5c01e2
A collection of utilities used to tweak and query the runtime configuration of
5c01e2
the X server.
5c01e2
5c01e2
%if %{with_xkeystone}
5c01e2
%package -n xkeystone
5c01e2
Summary:    X display keystone correction
5c01e2
Requires:   nickle
5c01e2
5c01e2
%description -n xkeystone
5c01e2
Utility to perform keystone adjustments on X screens.
5c01e2
%endif
5c01e2
5c01e2
%prep
5c01e2
%setup -q -c %{name}-%{version} -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 -a15
5c01e2
5c01e2
pushd xrdb-*
5c01e2
%patch2 -p1 -b .nocpp
5c01e2
popd
5c01e2
5c01e2
%build
5c01e2
5c01e2
# Build all apps
5c01e2
{
5c01e2
   for app in * ; do
5c01e2
      pushd $app
5c01e2
      autoreconf -vif
5c01e2
      %configure
5c01e2
      make %{?_smp_mflags}
5c01e2
      popd
5c01e2
   done
5c01e2
}
5c01e2
5c01e2
%install
5c01e2
# Install all apps
5c01e2
{
5c01e2
   for app in * ; do
5c01e2
      pushd $app
5c01e2
      case $app in
5c01e2
         *)
5c01e2
            %make_install
5c01e2
            ;;
5c01e2
      esac
5c01e2
      popd
5c01e2
   done
5c01e2
}
5c01e2
%if !%{with_xkeystone}
5c01e2
rm -f $RPM_BUILD_ROOT%{_bindir}/xkeystone
5c01e2
%endif
5c01e2
5c01e2
%files
5c01e2
%doc
5c01e2
%{_bindir}/iceauth
5c01e2
%{_bindir}/sessreg
5c01e2
%{_bindir}/showrgb
5c01e2
%{_bindir}/xgamma
5c01e2
%{_bindir}/xhost
5c01e2
%{_bindir}/xinput
5c01e2
%{_bindir}/xkill
5c01e2
%{_bindir}/xmodmap
5c01e2
%{_bindir}/xrandr
5c01e2
%{_bindir}/xrdb
5c01e2
%{_bindir}/xrefresh
5c01e2
%{_bindir}/xset
5c01e2
%{_bindir}/xsetmode
5c01e2
%{_bindir}/xsetpointer
5c01e2
%{_bindir}/xsetroot
5c01e2
%{_bindir}/xstdcmap
5c01e2
%{_datadir}/X11/rgb.txt
5c01e2
%{_mandir}/man1/iceauth.1*
5c01e2
%{_mandir}/man1/sessreg.1*
5c01e2
%{_mandir}/man1/showrgb.1*
5c01e2
%{_mandir}/man1/xgamma.1*
5c01e2
%{_mandir}/man1/xhost.1*
5c01e2
%{_mandir}/man1/xinput.1*
5c01e2
%{_mandir}/man1/xkill.1*
5c01e2
%{_mandir}/man1/xmodmap.1*
5c01e2
%{_mandir}/man1/xrandr.1*
5c01e2
%{_mandir}/man1/xrdb.1*
5c01e2
%{_mandir}/man1/xrefresh.1*
5c01e2
%{_mandir}/man1/xset.1*
5c01e2
%{_mandir}/man1/xsetmode.1*
5c01e2
%{_mandir}/man1/xsetpointer.1*
5c01e2
%{_mandir}/man1/xsetroot.1*
5c01e2
%{_mandir}/man1/xstdcmap.1*
5c01e2
5c01e2
%if %{with_xkeystone}
5c01e2
%files -n xkeystone
5c01e2
%{_bindir}/xkeystone
5c01e2
%endif
5c01e2
5c01e2
%changelog
5c01e2
* Wed Feb 01 2017 Adam Jackson <ajax@redhat.com> - 7.7-20
5c01e2
- Sync with Fedora 25: xgamma 1.0.6, xhost 1.0.7, xinput 1.6.2, xmodmap 1.0.9,
5c01e2
  xrandr 1.5.0
5c01e2
5c01e2
* Mon Sep 07 2015 Olivier Fourdan <ofourdan@redhat.com> 7.7-14
5c01e2
- Fix regression introduced by the nocpp patch if no cpp is installed.
5c01e2
5c01e2
* Tue Jul 21 2015 Adam Jackson <ajax@redhat.com> 7.7-13
5c01e2
- Merge F22, rebase nocpp patch
5c01e2
5c01e2
* Tue Jan 20 2015 Simone Caronni <negativo17@gmail.com> - 7.7-12
5c01e2
- Update sessreg to 1.1.0.
5c01e2
5c01e2
* Sat Jan 17 2015 Simone Caronni <negativo17@gmail.com> - 7.7-11
5c01e2
- Update iceauth to 1.0.7.
5c01e2
5c01e2
* Mon Nov 10 2014 Simone Caronni <negativo17@gmail.com> - 7.7-10
5c01e2
- rgb 1.0.6
5c01e2
5c01e2
* Thu Oct 23 2014 Simone Caronni <negativo17@gmail.com> - 7.7-9
5c01e2
- Clean up SPEC file, fix rpmlint warnings.
5c01e2
5c01e2
* Wed Oct 01 2014 Adam Jackson <ajax@redhat.com> 7.7-8
5c01e2
- xrandr 1.4.3
5c01e2
5c01e2
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.7-7
5c01e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5c01e2
5c01e2
* Thu Jun 12 2014 Simone Caronni <negativo17@gmail.com> 7.7-6
5c01e2
- iceauth 1.0.6
5c01e2
- xhost 1.0.6
5c01e2
- xrandr 1.4.2
5c01e2
- xrefresh 1.0.5
5c01e2
- xset 1.2.3
5c01e2
5c01e2
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.7-5
5c01e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5c01e2
5c01e2
* Thu Feb 13 2014 Adam Jackson <ajax@redhat.com> 7.7-4.el7
5c01e2
- Fix configure to not point to mcpp either
5c01e2
5c01e2
* Mon Sep 16 2013 Peter Hutterer <peter.hutterer@redhat.com> 7.7-4
5c01e2
- xinput 1.6.1
5c01e2
5c01e2
* Mon Sep 09 2013 Peter Hutterer <peter.hutterer@redhat.com> 7.7-3
5c01e2
- xmodmap 1.0.8
5c01e2
- xkill 1.0.4
5c01e2
- xrdb 1.1.0
5c01e2
5c01e2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.7-2
5c01e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5c01e2
5c01e2
* Wed Mar 27 2013 Adam Jackson <ajax@redhat.com> 7.7-1
5c01e2
- rgb 1.0.5
5c01e2
- xsessreg 1.0.8
5c01e2
- xgamma 1.0.5
5c01e2
- xhost 1.0.5
5c01e2
- xmodmap 1.0.7
5c01e2
- xsetroot 1.1.1
5c01e2
- xstdcmap 1.0.3
5c01e2
5c01e2
* Thu Mar 07 2013 Dave Airlie <airlied@redhat.com> 7.5-17
5c01e2
- autoconf for aarch64
5c01e2
5c01e2
* Wed Feb 13 2013 Benjamin Tissoires <benjamin.tissoires@redhat.com> 7.5-16
5c01e2
- xrandr 1.4.0
5c01e2
5c01e2
* Wed Jan 30 2013 Adam Jackson <ajax@redhat.com> 7.5-15
5c01e2
- Print primary output in xrandr
5c01e2
5c01e2
* Wed Nov 14 2012 Adam Jackson <ajax@redhat.com> 7.5-14
5c01e2
- xinput 1.6.0
5c01e2
5c01e2
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.5-13
5c01e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5c01e2
5c01e2
* Tue Apr 17 2012 Peter Hutterer <peter.hutterer@redhat.com> 7.5-12
5c01e2
- Add libXinerama-devel requires for new xinput
5c01e2
5c01e2
* Tue Apr 17 2012 Peter Hutterer <peter.hutterer@redhat.com> 7.5-11
5c01e2
- xinput 1.5.99.901
5c01e2
5c01e2
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.5-10
5c01e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5c01e2
5c01e2
* Thu Dec 22 2011 Peter Hutterer <peter.hutterer@redhat.com> 7.5-9
5c01e2
- xinput 1.5.4
5c01e2
5c01e2
* Thu Nov 10 2011 Adam Jackson <ajax@redhat.com> 7.5-8
5c01e2
- Move xinput and xkill here from xorg-x11-apps
5c01e2
5c01e2
* Mon Oct 10 2011 Matěj Cepl <mcepl@redhat.com> - 7.5-7
5c01e2
- Fix BuildRequires ... xbitmaps-devel does not exist anymore (RHBZ #744751)
5c01e2
- Upgrade to the latest upstream iceauth, rgb, sessreg, and xrandr