summaryrefslogtreecommitdiff
path: root/xorg-x11-docs.spec
blob: f9224abb3550a6002f0f6792e95a8bdfdd5b6b0e (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
57
Name:            xorg-x11-docs
Version:         1.7.3
Release:         1
Summary:         Documentation for the X Window System
License:         MIT
URL:             https://www.x.org
BuildArch:       noarch
Source0:         https://www.x.org/releases/individual/doc/xorg-docs-%{version}.tar.xz
BuildRequires:   ghostscript libtool pkgconfig pkgconfig(xorg-macros) >= 1.12
BuildRequires:   pkgconfig(xorg-sgml-doctools) >= 1.8 xmlto >= 0.0.22-2

%description
This package contains documentation for running the X server and basic X clients,
as well as protocol specifications and basic client programming documentation.

%package     help
Summary: Help document for the %{name} package

%description help
Help document for the %{name} package.

%prep
%autosetup -n xorg-docs-%{version} -p1

%build
%configure --docdir=%{_pkgdocdir} --without-fop
%make_build

%install
%make_install
find %{buildroot} -name "*.db" -delete

sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name ctext.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name xlfd.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name analysis.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name appgroup.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name secint.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name XACE-Spec.html)
sed -i 's/idm[0-9]\{5,32\}\"/idm12345678912345\"/g' $(find %{_buildrootdir} -name icccm.html)

cp registry %{buildroot}/%{_pkgdocdir}

%files
%{_pkgdocdir}

%files help
%{_mandir}/man7/*

%changelog
* Mon Dec 02 2024 Funda Wang <fundawang@yeah.net> - 1.7.3-1
- update to 1.7.3

* Mon Sep 04 2023 Ge Wang <wang__ge@126.com> - 1.7.2-1
- Update to version 1.7.2

* Mon Nov 18 2019 shijian <shijian16@huawei.com> - 1.7.1-9
- Package init