]>
Commit | Line | Data |
---|---|---|
759127f9 | 1 | Summary: XIE extension library |
f15abe86 | 2 | Summary(pl.UTF-8): Biblioteka rozszerzenia XIE |
759127f9 JB |
3 | Name: XFree86-XIE |
4 | Version: 4.3.0 | |
5 | Release: 1 | |
6 | License: MIT | |
7 | Group: X11/Libraries | |
8 | # XIE files/directories extracted from X430src-{1,2,3,6,7}.tgz: | |
9 | # xc/include/extensions/XIE*.h | |
10 | # xc/lib/XIE | |
11 | # xc/programs/xieperf | |
12 | # xc/programs/Xserver/XIE | |
13 | # xc/doc/specs/XIE | |
14 | # xc/doc/hardcopy/XIE | |
15 | Source0: %{name}-%{version}.tar.bz2 | |
44df9683 | 16 | # Source0-md5: 6ae53620997b77ebc7b0b6cac8d1a4a0 |
87c1ff04 | 17 | Patch0: %{name}-miscstruct.patch |
759127f9 | 18 | URL: http://www.xfree86.org/ |
87c1ff04 | 19 | BuildRequires: XFree86-Xserver-devel > 4.3.99.902-0.1 |
759127f9 JB |
20 | BuildRequires: XFree86-devel >= 4.3.0 |
21 | Requires: XFree86-libs >= 4.3.0 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %define _prefix /usr/X11R6 | |
25 | %define _mandir %{_prefix}/man | |
26 | ||
27 | %description | |
28 | XIE (X Image Extension) extension library. | |
29 | ||
f421aee6 | 30 | %description -l pl.UTF-8 |
759127f9 JB |
31 | Biblioteka rozszerzenia XIE (X Image Extension). |
32 | ||
33 | %package devel | |
34 | Summary: XIE extension headers | |
f15abe86 | 35 | Summary(pl.UTF-8): Pliki nagłówkowe rozszerzenia XIE |
759127f9 | 36 | Group: X11/Development/Libraries |
491f2cb3 | 37 | Requires: %{name} = %{version}-%{release} |
759127f9 JB |
38 | Requires: XFree86-devel >= 4.3.0 |
39 | ||
40 | %description devel | |
41 | XIE extension headers. | |
42 | ||
f421aee6 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe rozszerzenia XIE. | |
759127f9 JB |
45 | |
46 | %package static | |
47 | Summary: XIE extension static library | |
f15abe86 | 48 | Summary(pl.UTF-8): Statyczna biblioteka rozszerzenia XIE |
759127f9 | 49 | Group: X11/Development/Libraries |
491f2cb3 | 50 | Requires: %{name}-devel = %{version}-%{release} |
759127f9 JB |
51 | |
52 | %description static | |
53 | XIE extension static library. | |
54 | ||
f421aee6 | 55 | %description static -l pl.UTF-8 |
759127f9 JB |
56 | Statyczna biblioteka rozszerzenia XIE. |
57 | ||
58 | %package doc | |
59 | Summary: XIE extension documentation | |
f15abe86 | 60 | Summary(pl.UTF-8): Dokumentacja do rozszerzenia XIE |
491f2cb3 | 61 | Group: X11 |
759127f9 JB |
62 | |
63 | %description doc | |
64 | XIE extension documentation. | |
65 | ||
f421aee6 | 66 | %description doc -l pl.UTF-8 |
759127f9 JB |
67 | Dokumentacja do rozszerzenia XIE. |
68 | ||
69 | %package -n XFree86-module-XIE | |
70 | Summary: XIE extension module | |
f15abe86 | 71 | Summary(pl.UTF-8): Moduł rozszerzenia XIE |
491f2cb3 | 72 | Group: X11 |
a34219af | 73 | %{requires_eq_to XFree86-modules XFree86-Xserver-devel} |
759127f9 JB |
74 | |
75 | %description -n XFree86-module-XIE | |
76 | XIE (X Image Extension) extension module for X server. | |
77 | ||
f421aee6 JR |
78 | %description -n XFree86-module-XIE -l pl.UTF-8 |
79 | Moduł rozszerzenia XIE (X Image Extension) dla X serwera. | |
759127f9 JB |
80 | |
81 | %prep | |
82 | %setup -q | |
87c1ff04 | 83 | %patch0 -p1 |
759127f9 JB |
84 | |
85 | %build | |
86 | cd xc | |
87 | ln -s . include/X11 | |
88 | XDIR="`pwd`" | |
89 | cd lib/XIE | |
90 | imake -DUseInstalled -I/usr/X11R6/lib/X11/config \ | |
91 | -DNormalLibXie=YES \ | |
92 | -DSharedLibXie=YES \ | |
93 | -DDebugLibXie=NO \ | |
94 | -DProfileLibXie=NO \ | |
95 | -DSharedXieReqs="-L/usr/X11R6/lib -lX11" | |
96 | ln -sf ../../lib/XIE/XIElib.h ../../include/X11/extensions | |
97 | %{__make} \ | |
98 | CDEBUGFLAGS="%{rpmcflags} -I../../include" \ | |
99 | SOXIEREV="6.0" | |
100 | ||
101 | cd ../../programs/xieperf | |
102 | xmkmf | |
103 | ln -sf ../../include X11 | |
104 | %{__make} \ | |
105 | CDEBUGFLAGS="%{rpmcflags} -I../../include" \ | |
106 | XIELIB="-L../../lib/XIE -lXIE" | |
107 | ||
108 | cd ../Xserver/XIE | |
109 | xmkmf | |
110 | %{__make} Makefiles | |
111 | %{__make} includes | |
112 | %{__make} depend \ | |
87c1ff04 JB |
113 | TOP=/usr/X11R6/include/X11/Xserver \ |
114 | EXTRA_INCLUDES="-I${XDIR}/include/extensions -I${XDIR}/include -I/usr/X11R6/include/X11" | |
759127f9 JB |
115 | |
116 | %{__make} \ | |
87c1ff04 JB |
117 | TOP=/usr/X11R6/include/X11/Xserver \ |
118 | CDEBUGFLAGS="%{rpmcflags} -I${XDIR}/include/extensions -I${XDIR}/include -I/usr/X11R6/include/X11" | |
759127f9 JB |
119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
759127f9 | 122 | install -d $RPM_BUILD_ROOT%{_includedir}/X11/extensions |
179bf554 | 123 | |
759127f9 JB |
124 | install xc/include/extensions/{XIE,XIEproto,XIEprotost}.h \ |
125 | $RPM_BUILD_ROOT%{_includedir}/X11/extensions | |
126 | ||
127 | %{__make} -C xc/lib/XIE install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT \ | |
129 | SOXIEREV="6.0" | |
130 | ||
131 | %{__make} -C xc/programs/xieperf install install.man \ | |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
134 | %{__make} -C xc/programs/Xserver/XIE install \ | |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | find xc/doc/hardcopy -name Imakefile | xargs rm -f | |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %post -p /sbin/ldconfig | |
143 | %postun -p /sbin/ldconfig | |
144 | ||
145 | %files | |
146 | %defattr(644,root,root,755) | |
147 | %attr(755,root,root) %{_bindir}/xieperf | |
148 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
149 | %{_mandir}/man1/xieperf.1* | |
150 | ||
151 | %files devel | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_libdir}/lib*.so | |
154 | %{_includedir}/X11/extensions/*.h | |
155 | ||
156 | %files static | |
157 | %defattr(644,root,root,755) | |
158 | %{_libdir}/lib*.a | |
159 | ||
160 | %files doc | |
161 | %defattr(644,root,root,755) | |
162 | %doc xc/doc/hardcopy/XIE/* | |
163 | ||
164 | %files -n XFree86-module-XIE | |
165 | %defattr(644,root,root,755) | |
166 | %attr(755,root,root) %{_libdir}/modules/extensions/libxie.a |