]> git.pld-linux.org Git - packages/xorg-lib-libXdmcp.git/commitdiff
- updated to 1.1.3 (fixes CVE-2017-2625) auto/th/xorg-lib-libXdmcp-1.1.3-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 19 Mar 2019 17:30:15 +0000 (18:30 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 19 Mar 2019 17:30:15 +0000 (18:30 +0100)
xorg-lib-libXdmcp.spec

index 95000262c497f2aa4c3bcf4373520127bd1e31d9..5f222914cb2c58c45d2485519a591f924dd5e0c2 100644 (file)
@@ -1,22 +1,30 @@
+#
+# Conditional build:
+%bcond_without libbsd  # libbsd arc4random instead of Linux implementation
+
 Summary:       X Display Manager Control Protocol library
 Summary(pl.UTF-8):     Biblioteka protokołu XDMCP
 Name:          xorg-lib-libXdmcp
-Version:       1.1.2
+Version:       1.1.3
 Release:       1
 License:       MIT
 Group:         X11/Libraries
-Source0:       http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-%{version}.tar.bz2
-# Source0-md5: 18aa5c1279b01f9d18e3299969665b2e
-URL:           http://xorg.freedesktop.org/
+Source0:       https://xorg.freedesktop.org/releases/individual/lib/libXdmcp-%{version}.tar.bz2
+# Source0-md5: 115c5c12ecce0e749cd91d999a5fd160
+URL:           https://xorg.freedesktop.org/
 BuildRequires: autoconf >= 2.60
 BuildRequires: automake
 BuildRequires: docbook-dtd43-xml
+%{!?with_libbsd:BuildRequires: glibc-devel >= 6:2.25}
+%{?with_libbsd:BuildRequires:  libbsd-devel}
 BuildRequires: libtool
 BuildRequires: pkgconfig >= 1:0.19
 BuildRequires: xmlto >= 0.0.22
 BuildRequires: xorg-proto-xproto-devel
 BuildRequires: xorg-sgml-doctools >= 1.8
 BuildRequires: xorg-util-util-macros >= 1.16
+# getentropy() requires Linux 3.17+ (to avoid CVE-2017-2625 when building without libbsd)
+%{!?with_libbsd:Requires:      uname(release) >= 3.17}
 Obsoletes:     libXdmcp
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -72,7 +80,8 @@ Pakiet zawiera statyczną bibliotekę libXdmcp.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{!?with_libbsd:ac_cv_lib_bsd_arc4random_buf=no}
 %{__make}
 
 %install
@@ -81,6 +90,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# (.html version) packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/libXdmcp/xdmcp.*
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -89,7 +101,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog README
+%doc AUTHORS COPYING ChangeLog README.md
 %attr(755,root,root) %{_libdir}/libXdmcp.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libXdmcp.so.6
 
This page took 0.166647 seconds and 4 git commands to generate.