-%if %{_host_cpu} == "x32"
+%if "%{_host_cpu}" == "x32"
%define build_arch %{_target_platform}
%else
%define build_arch %{_host}
Summary: X.org documentation
Summary(pl.UTF-8): Dokumentacja X.org
Name: xorg-docs
-Version: 1.7.1
-Release: 2
+Version: 1.7.2
+Release: 1
License: MIT
Group: Documentation
-Source0: http://xorg.freedesktop.org/releases/individual/doc/%{name}-%{version}.tar.bz2
-# Source0-md5: ce5a04d87b330b9091576b3410dc26d3
-URL: http://xorg.freedesktop.org/
+Source0: https://xorg.freedesktop.org/releases/individual/doc/%{name}-%{version}.tar.bz2
+# Source0-md5: 1d4afe8ea9754f257048f3e898d9cab9
+URL: https://xorg.freedesktop.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
BuildRequires: docbook-dtd43-xml
BuildRequires: xmlto >= 0.0.22
BuildRequires: xorg-sgml-doctools >= 1.8
BuildRequires: xorg-util-util-macros >= 1.12
-Obsoletes: xorg-docs-ps
+Obsoletes: xorg-docs-ps < 1.5
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
+
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog MAINTAINERS README
+%doc ChangeLog MAINTAINERS README.md
%{_docdir}/xorg-docs
%{_mandir}/man7/Consortium.7*
%{_mandir}/man7/Standards.7*