SHA256
1
0
forked from pool/xinit
Dominique Leuenberger 2021-04-26 14:38:25 +00:00 committed by Git OBS Bridge
commit 6c87a656e4
2 changed files with 21 additions and 18 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 21 09:10:30 UTC 2021 - Dirk Müller <dmueller@suse.com>
- modernize spec file (move license to licensedir, use https)
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Oct 4 09:47:55 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de> Sun Oct 4 09:47:55 UTC 2020 - Fabian Vogt <fabian@ritter-vogt.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package xinit # spec file for package xinit
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -19,15 +19,14 @@
%if 0%{?suse_version} >= 1550 %if 0%{?suse_version} >= 1550
%define UsrEtcMove 1 %define UsrEtcMove 1
%endif %endif
Name: xinit Name: xinit
Version: 1.4.1 Version: 1.4.1
Release: 0 Release: 0
Summary: X Window System initializer Summary: X Window System initializer
License: MIT License: MIT
Group: System/X11/Utilities Group: System/X11/Utilities
URL: http://xorg.freedesktop.org/ URL: https://xorg.freedesktop.org/
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2 Source0: https://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source1: xinit.tar.bz2 Source1: xinit.tar.bz2
Source2: keygen.c Source2: keygen.c
Source3: keygen.1 Source3: keygen.1
@ -40,7 +39,7 @@ Patch5: xinit-tarball.patch
# needed for patch0 # needed for patch0
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xorg-macros) >= 1.8 BuildRequires: pkgconfig(xorg-macros) >= 1.8
BuildRequires: pkgconfig(xproto) >= 7.0.17 BuildRequires: pkgconfig(xproto) >= 7.0.17
@ -49,14 +48,13 @@ Requires: xauth
Requires: xmodmap Requires: xmodmap
Requires: xrdb Requires: xrdb
Requires: xsetroot Requires: xsetroot
# This was part of the xorg-x11 package up to version 7.6
Conflicts: xorg-x11 <= 7.6
%if 0%{?suse_version} > 1320 %if 0%{?suse_version} > 1320
Requires: xterm-bin Requires: xterm-bin
%else %else
Requires: xterm Requires: xterm
%endif %endif
# This was part of the xorg-x11 package up to version 7.6
Conflicts: xorg-x11 <= 7.6
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
The xinit program is used to start the X Window System server and a The xinit program is used to start the X Window System server and a
@ -68,9 +66,9 @@ terminate.
%prep %prep
%setup -q %setup -q
%if 0%{?UsrEtcMove} %if 0%{?UsrEtcMove}
sed -i 's+/etc/X11+%{_libexecdir}+' %{PATCH0} sed -i 's+%{_sysconfdir}/X11+%{_libexecdir}+' %{PATCH0}
%endif %endif
%patch0 -p0 %patch0
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
@ -86,8 +84,8 @@ autoreconf -fi
%else %else
%configure %configure
%endif %endif
make %{?_smp_mflags} %make_build
%{__cc} %{optflags} -o keygen %{SOURCE2} gcc %{optflags} -o keygen %{SOURCE2}
%install %install
%make_install %make_install
@ -99,18 +97,18 @@ tar xf %{SOURCE1}
patch -p0 < %{PATCH5} patch -p0 < %{PATCH5}
mkdir -p %{buildroot}%{_libexecdir}/xinit mkdir -p %{buildroot}%{_libexecdir}/xinit
mv etc/X11/xinit/{xinitrc,xserverrc} %{buildroot}%{_libexecdir}/xinit mv etc/X11/xinit/{xinitrc,xserverrc} %{buildroot}%{_libexecdir}/xinit
mkdir -p usr/etc/X11/xinit/xinitrc.d mkdir -p usr%{_sysconfdir}/X11/xinit/xinitrc.d
mv etc/X11/Xresources usr/etc/X11 mv etc/X11/Xresources usr%{_sysconfdir}/X11
mv etc/X11/xinit/xinitrc.common usr/etc/X11/xinit mv etc/X11/xinit/xinitrc.common usr%{_sysconfdir}/X11/xinit
# Compatibility symlink for user xinitrc files # Compatibility symlink for user xinitrc files
ln -s /usr/etc/X11/xinit/xinitrc.common etc/X11/xinit/xinitrc.common ln -s %{_prefix}%{_sysconfdir}/X11/xinit/xinitrc.common etc/X11/xinit/xinitrc.common
rmdir etc/X11/xinit/xinitrc.d rmdir etc/X11/xinit/xinitrc.d
%endif %endif
popd popd
%files %files
%defattr(-,root,root) %license COPYING
%doc ChangeLog COPYING README.md %doc ChangeLog README.md
%if 0%{?UsrEtcMove} %if 0%{?UsrEtcMove}
%dir %{_distconfdir}/X11 %dir %{_distconfdir}/X11
%{_distconfdir}/X11/xinit/ %{_distconfdir}/X11/xinit/