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