File project.diff of Package xorg-x11-server
--- xorg-x11-server.changes.orig
+++ xorg-x11-server.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Sat Aug 12 16:34:59 UTC 2017 - hpj@urpla.net
+
+- add source packaging
+
+-------------------------------------------------------------------
Sat Feb 6 14:57:24 UTC 2016 - eich@suse.com
- n_RandR-Disable-rotation-for-GPU-screens.patch
--- xorg-x11-server.spec.orig
+++ xorg-x11-server.spec
@@ -1,7 +1,7 @@
#
# spec file for package xorg-x11-server
#
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -21,9 +21,9 @@ Name: xorg-x11-server
%define dirsuffix 1.16.1
Summary: X
+# Source URL: http://xorg.freedesktop.org/archive/individual/xserver/
License: MIT
Group: System/X11/Servers/XF86_4
-# Source URL: http://xorg.freedesktop.org/archive/individual/xserver/
Source0: xorg-server-%{dirsuffix}.tar.bz2
Source1: sysconfig.displaymanager.template
Source2: README.updates
@@ -265,6 +265,13 @@ Obsoletes: glamor-devel < %{version
%description sdk
This package contains the X.Org Server SDK.
+%package source
+Summary: Source code of X.Org server
+Group: Development/Sources
+
+%description source
+This package contains patched sources of X.Org Server.
+
%prep
%setup -q -n xorg-server-%{dirsuffix} -a3
# Early verification if the ABI Defines are correct. Let's not waste build cycles if the Provides are wrong at the end.
@@ -352,6 +359,10 @@ cp %{SOURCE90} .
%patch205 -p1
%build
+test -e source-file-list || \
+ find -L . -type f \! -name '*.orig' \! -path ./source-file-list > \
+ source-file-list
+
autoreconf -fi
%configure CFLAGS="%{optflags} -fno-strict-aliasing" \
--sysconfdir=/etc \
@@ -459,6 +470,11 @@ ln -snf %{_sysconfdir}/alternatives/libg
%endif
%endif
+mkdir -p %{buildroot}%{_libdir}/xorg/modules/drivers
+
+mkdir -p %{buildroot}/usr/src/xserver
+xargs cp --parents --target-directory=%{buildroot}/usr/src/xserver < source-file-list
+
%post
%ifnarch s390 s390x
%{fillup_only -an displaymanager}
@@ -530,7 +546,10 @@ fi
%{_bindir}/cvt
%{_bindir}/gtf
+%dir %{_libdir}/xorg/modules
%{_libdir}/xorg/modules/
+%dir %{_libdir}/xorg/modules/drivers
+%{_libdir}/xorg/modules/drivers/
%{_mandir}/man4/*
%{_mandir}/man5/*
%{_localstatedir}/adm/fillup-templates/sysconfig.displaymanager-%{name}
@@ -571,4 +590,8 @@ fi
%endif
%{_sysconfdir}/rpm/macros.xorg-server
+%files source
+%defattr(-,root,root)
+/usr/src/xserver
+
%changelog