]>
Commit | Line | Data |
---|---|---|
beea411e JB |
1 | Summary: X-Resource extension client library |
2 | Summary(pl.UTF-8): Biblioteka kliencka rozszerzenia X-Resource | |
91b386a7 | 3 | Name: xorg-lib-libXres |
9674d8e8 JB |
4 | Version: 1.2.2 |
5 | Release: 1 | |
91b386a7 AM |
6 | License: MIT |
7 | Group: X11/Libraries | |
9674d8e8 JB |
8 | Source0: https://xorg.freedesktop.org/releases/individual/lib/libXres-%{version}.tar.xz |
9 | # Source0-md5: 66c9e9e01b0b53052bb1d02ebf8d7040 | |
f97ef2c9 | 10 | URL: https://xorg.freedesktop.org/ |
36911dc7 | 11 | BuildRequires: autoconf >= 2.60 |
91b386a7 | 12 | BuildRequires: automake |
91b386a7 | 13 | BuildRequires: libtool |
92608398 | 14 | BuildRequires: pkgconfig >= 1:0.19 |
50075e8d | 15 | BuildRequires: sed >= 4.0 |
9674d8e8 | 16 | BuildRequires: tar >= 1:1.22 |
f97ef2c9 | 17 | BuildRequires: xorg-lib-libX11-devel >= 1.6 |
10fdc028 | 18 | BuildRequires: xorg-lib-libXext-devel |
f97ef2c9 JB |
19 | BuildRequires: xorg-proto-resourceproto-devel >= 1.2.0 |
20 | BuildRequires: xorg-proto-xextproto-devel | |
36911dc7 | 21 | BuildRequires: xorg-util-util-macros >= 1.8 |
9674d8e8 | 22 | BuildRequires: xz |
f97ef2c9 | 23 | Requires: xorg-lib-libX11 >= 1.6 |
9674d8e8 | 24 | Obsoletes: libXres < 1.1 |
10fdc028 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
91b386a7 | 26 | |
91b386a7 | 27 | %description |
beea411e JB |
28 | X-Resource extension client library. This extension gives information |
29 | about X resources usage. | |
91b386a7 | 30 | |
5c82e4cc | 31 | %description -l pl.UTF-8 |
beea411e | 32 | Biblioteka kliencka rozszerzenia X-Resource, służącego do uzyskiwania |
5c82e4cc | 33 | informacji o wykorzystaniu zasobów X. |
91b386a7 | 34 | |
91b386a7 | 35 | %package devel |
2218f2a1 | 36 | Summary: Header files for libXres library |
ac5b310a | 37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libXres |
91b386a7 | 38 | Group: X11/Development/Libraries |
10fdc028 | 39 | Requires: %{name} = %{version}-%{release} |
f97ef2c9 | 40 | Requires: xorg-lib-libX11-devel >= 1.6 |
91b386a7 | 41 | Requires: xorg-lib-libXext-devel |
f97ef2c9 JB |
42 | Requires: xorg-proto-resourceproto-devel >= 1.2.0 |
43 | Requires: xorg-proto-xextproto-devel | |
9674d8e8 | 44 | Obsoletes: libXres-devel < 1.1 |
91b386a7 AM |
45 | |
46 | %description devel | |
beea411e | 47 | X-Resource extension client library. |
91b386a7 AM |
48 | |
49 | This package contains the header files needed to develop programs that | |
2218f2a1 | 50 | use libXres. |
91b386a7 | 51 | |
5c82e4cc | 52 | %description devel -l pl.UTF-8 |
beea411e | 53 | Biblioteka kliencka rozszerzenia X-Resource. |
91b386a7 | 54 | |
5c82e4cc JR |
55 | Pakiet zawiera pliki nagłówkowe niezbędne do kompilowania programów |
56 | używających biblioteki libXres. | |
91b386a7 | 57 | |
91b386a7 | 58 | %package static |
10fdc028 | 59 | Summary: Static libXres library |
ac5b310a | 60 | Summary(pl.UTF-8): Biblioteka statyczna libXres |
10fdc028 JB |
61 | Group: X11/Development/Libraries |
62 | Requires: %{name}-devel = %{version}-%{release} | |
9674d8e8 | 63 | Obsoletes: libXres-static < 1.1 |
91b386a7 AM |
64 | |
65 | %description static | |
beea411e | 66 | X-Resource extension client library. |
91b386a7 AM |
67 | |
68 | This package contains the static libXres library. | |
69 | ||
5c82e4cc | 70 | %description static -l pl.UTF-8 |
beea411e | 71 | Biblioteka kliencka rozszerzenia X-Resource. |
91b386a7 | 72 | |
5c82e4cc | 73 | Pakiet zawiera statyczną bibliotekę libXres. |
91b386a7 | 74 | |
91b386a7 AM |
75 | %prep |
76 | %setup -q -n libXres-%{version} | |
77 | ||
50075e8d JB |
78 | # support __libmansuffix__ with "x" suffix (per FHS 2.3) |
79 | %{__sed} -i -e 's,\.so man__libmansuffix__/,.so man3/,' man/*.man | |
80 | ||
91b386a7 AM |
81 | %build |
82 | %{__libtoolize} | |
83 | %{__aclocal} | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %configure | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT \ | |
95 | pkgconfigdir=%{_pkgconfigdir} | |
96 | ||
61d61775 TP |
97 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libXRes.la |
98 | ||
91b386a7 AM |
99 | %clean |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
91b386a7 AM |
105 | %files |
106 | %defattr(644,root,root,755) | |
f52959aa | 107 | %doc AUTHORS COPYING ChangeLog README.md |
10fdc028 | 108 | %attr(755,root,root) %{_libdir}/libXRes.so.*.*.* |
beea411e | 109 | %attr(755,root,root) %ghost %{_libdir}/libXRes.so.1 |
91b386a7 AM |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
10fdc028 | 113 | %attr(755,root,root) %{_libdir}/libXRes.so |
beea411e | 114 | %{_includedir}/X11/extensions/XRes.h |
91b386a7 | 115 | %{_pkgconfigdir}/xres.pc |
2a481b81 | 116 | %{_mandir}/man3/XRes*.3* |
91b386a7 | 117 | |
91b386a7 AM |
118 | %files static |
119 | %defattr(644,root,root,755) | |
120 | %{_libdir}/libXRes.a |