]>
Commit | Line | Data |
---|---|---|
d52c2d5a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without libbsd # libbsd arc4random instead of Linux implementation | |
4 | ||
f083b3f3 | 5 | Summary: X Display Manager Control Protocol library |
6d781d7e | 6 | Summary(pl.UTF-8): Biblioteka protokołu XDMCP |
f083b3f3 | 7 | Name: xorg-lib-libXdmcp |
d52c2d5a | 8 | Version: 1.1.3 |
67e5485e | 9 | Release: 2 |
f083b3f3 AM |
10 | License: MIT |
11 | Group: X11/Libraries | |
d52c2d5a JB |
12 | Source0: https://xorg.freedesktop.org/releases/individual/lib/libXdmcp-%{version}.tar.bz2 |
13 | # Source0-md5: 115c5c12ecce0e749cd91d999a5fd160 | |
14 | URL: https://xorg.freedesktop.org/ | |
ddd42aae | 15 | BuildRequires: autoconf >= 2.60 |
f083b3f3 | 16 | BuildRequires: automake |
24357288 | 17 | BuildRequires: docbook-dtd43-xml |
d52c2d5a JB |
18 | %{!?with_libbsd:BuildRequires: glibc-devel >= 6:2.25} |
19 | %{?with_libbsd:BuildRequires: libbsd-devel} | |
f083b3f3 | 20 | BuildRequires: libtool |
caa232df | 21 | BuildRequires: pkgconfig >= 1:0.19 |
42d0e2a0 | 22 | BuildRequires: xmlto >= 0.0.22 |
f083b3f3 | 23 | BuildRequires: xorg-proto-xproto-devel |
42d0e2a0 | 24 | BuildRequires: xorg-sgml-doctools >= 1.8 |
7dc635ec | 25 | BuildRequires: xorg-util-util-macros >= 1.16 |
d52c2d5a JB |
26 | # getentropy() requires Linux 3.17+ (to avoid CVE-2017-2625 when building without libbsd) |
27 | %{!?with_libbsd:Requires: uname(release) >= 3.17} | |
fe96e71e | 28 | Obsoletes: libXdmcp |
61391eb4 | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
f083b3f3 | 30 | |
f083b3f3 AM |
31 | %description |
32 | X Display Manager Control Protocol library. | |
33 | ||
62bec21e JR |
34 | %description -l pl.UTF-8 |
35 | Biblioteka protokołu XDMCP (X Display Manager Control Protocol). | |
f083b3f3 | 36 | |
f083b3f3 | 37 | %package devel |
c408e468 | 38 | Summary: Header files for libXdmcp library |
6d781d7e | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libXdmcp |
f083b3f3 | 40 | Group: X11/Development/Libraries |
61391eb4 | 41 | Requires: %{name} = %{version}-%{release} |
67e5485e | 42 | %{?with_libbsd:Requires: libbsd-devel} |
f083b3f3 | 43 | Requires: xorg-proto-xproto-devel |
fe96e71e | 44 | Obsoletes: libXdmcp-devel |
f083b3f3 AM |
45 | |
46 | %description devel | |
47 | X Display Manager Control Protocol library. | |
48 | ||
49 | This package contains the header files needed to develop programs that | |
c408e468 | 50 | use libXdmcp. |
f083b3f3 | 51 | |
62bec21e JR |
52 | %description devel -l pl.UTF-8 |
53 | Biblioteka protokołu XDMCP (X Display Manager Control Protocol). | |
f083b3f3 | 54 | |
62bec21e JR |
55 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
56 | używających biblioteki libXdmcp. | |
f083b3f3 | 57 | |
f083b3f3 | 58 | %package static |
61391eb4 | 59 | Summary: Static libXdmcp library |
6d781d7e | 60 | Summary(pl.UTF-8): Biblioteka statyczna libXdmcp |
61391eb4 JB |
61 | Group: X11/Development/Libraries |
62 | Requires: %{name}-devel = %{version}-%{release} | |
fe96e71e | 63 | Obsoletes: libXdmcp-static |
f083b3f3 AM |
64 | |
65 | %description static | |
66 | X Display Manager Control Protocol library. | |
67 | ||
68 | This package contains the static libXdmcp library. | |
69 | ||
62bec21e JR |
70 | %description static -l pl.UTF-8 |
71 | Biblioteka protokołu XDMCP (X Display Manager Control Protocol). | |
f083b3f3 | 72 | |
62bec21e | 73 | Pakiet zawiera statyczną bibliotekę libXdmcp. |
f083b3f3 AM |
74 | |
75 | %prep | |
76 | %setup -q -n libXdmcp-%{version} | |
77 | ||
f083b3f3 AM |
78 | %build |
79 | %{__libtoolize} | |
80 | %{__aclocal} | |
81 | %{__autoconf} | |
82 | %{__autoheader} | |
83 | %{__automake} | |
d52c2d5a JB |
84 | %configure \ |
85 | %{!?with_libbsd:ac_cv_lib_bsd_arc4random_buf=no} | |
f083b3f3 AM |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} install \ | |
ddd42aae | 92 | DESTDIR=$RPM_BUILD_ROOT |
f083b3f3 | 93 | |
d52c2d5a JB |
94 | # (.html version) packaged as %doc |
95 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/libXdmcp/xdmcp.* | |
96 | ||
f083b3f3 AM |
97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
f083b3f3 AM |
103 | %files |
104 | %defattr(644,root,root,755) | |
d52c2d5a | 105 | %doc AUTHORS COPYING ChangeLog README.md |
61391eb4 | 106 | %attr(755,root,root) %{_libdir}/libXdmcp.so.*.*.* |
b41ef8d0 | 107 | %attr(755,root,root) %ghost %{_libdir}/libXdmcp.so.6 |
f083b3f3 AM |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
42d0e2a0 | 111 | %doc doc/xdmcp.html |
61391eb4 | 112 | %attr(755,root,root) %{_libdir}/libXdmcp.so |
f083b3f3 | 113 | %{_libdir}/libXdmcp.la |
61391eb4 | 114 | %{_includedir}/X11/Xdmcp.h |
f083b3f3 AM |
115 | %{_pkgconfigdir}/xdmcp.pc |
116 | ||
f083b3f3 AM |
117 | %files static |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libXdmcp.a |