]> git.pld-linux.org Git - packages/XFree86-XIE.git/blob - XFree86-XIE.spec
- extracted from XFree86 4.3.0, can be built separately with 4.3.99.x
[packages/XFree86-XIE.git] / XFree86-XIE.spec
1 Summary:        XIE extension library
2 Summary(pl):    Biblioteka rozszerzenia XIE
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
16 URL:            http://www.xfree86.org/
17 BuildRequires:  XFree86-Xserver-devel >= 4.3.0
18 BuildRequires:  XFree86-devel >= 4.3.0
19 Requires:       XFree86-libs >= 4.3.0
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _prefix         /usr/X11R6
23 %define         _mandir         %{_prefix}/man
24
25 %description
26 XIE (X Image Extension) extension library.
27
28 %description -l pl
29 Biblioteka rozszerzenia XIE (X Image Extension).
30
31 %package devel
32 Summary:        XIE extension headers
33 Summary(pl):    Pliki nag³ówkowe rozszerzenia XIE
34 Group:          X11/Development/Libraries
35 Requires:       %{name} = %{version}
36 Requires:       XFree86-devel >= 4.3.0
37
38 %description devel
39 XIE extension headers.
40
41 %description devel -l pl
42 Pliki nag³ówkowe rozszerzenia XIE.
43
44 %package static
45 Summary:        XIE extension static library
46 Summary(pl):    Statyczna biblioteka rozszerzenia XIE
47 Group:          X11/Development/Libraries
48 Requires:       %{name}-devel = %{version}
49
50 %description static
51 XIE extension static library.
52
53 %description static -l pl
54 Statyczna biblioteka rozszerzenia XIE.
55
56 %package doc
57 Summary:        XIE extension documentation
58 Summary(pl):    Dokumentacja do rozszerzenia XIE
59 Group:          X11/XFree86
60
61 %description doc
62 XIE extension documentation.
63
64 %description doc -l pl
65 Dokumentacja do rozszerzenia XIE.
66
67 %package -n XFree86-module-XIE
68 Summary:        XIE extension module
69 Summary(pl):    Modu³ rozszerzenia XIE
70 Group:          X11/XFree86
71 Requires:       XFree86-modules >= 4.3.0
72
73 %description -n XFree86-module-XIE
74 XIE (X Image Extension) extension module for X server.
75
76 %description -n XFree86-module-XIE -l pl
77 Modu³ rozszerzenia XIE (X Image Extension) dla X serwera.
78
79 %prep
80 %setup -q
81
82 %build
83 cd xc
84 ln -s . include/X11
85 XDIR="`pwd`"
86 cd lib/XIE
87 imake -DUseInstalled -I/usr/X11R6/lib/X11/config \
88         -DNormalLibXie=YES \
89         -DSharedLibXie=YES \
90         -DDebugLibXie=NO \
91         -DProfileLibXie=NO \
92         -DSharedXieReqs="-L/usr/X11R6/lib -lX11"
93 ln -sf ../../lib/XIE/XIElib.h ../../include/X11/extensions
94 %{__make} \
95         CDEBUGFLAGS="%{rpmcflags} -I../../include" \
96         SOXIEREV="6.0"
97
98 cd ../../programs/xieperf
99 xmkmf
100 ln -sf ../../include X11
101 %{__make} \
102         CDEBUGFLAGS="%{rpmcflags} -I../../include" \
103         XIELIB="-L../../lib/XIE -lXIE"
104
105 cd ../Xserver/XIE
106 xmkmf
107 %{__make} Makefiles
108 %{__make} includes
109 %{__make} depend \
110         EXTRA_INCLUDES="-I${XDIR}/include/extensions -I${XDIR}/include -I/usr/X11R6/include/X11/Xserver -I/usr/X11R6/include/X11"
111
112 %{__make} \
113         CDEBUGFLAGS="%{rpmcflags} -I${XDIR}/include/extensions -I${XDIR}/include -I/usr/X11R6/include/X11/Xserver -I/usr/X11R6/include/X11"
114
115 %install
116 rm -rf $RPM_BUILD_ROOT
117
118 install -d $RPM_BUILD_ROOT%{_includedir}/X11/extensions
119 install xc/include/extensions/{XIE,XIEproto,XIEprotost}.h \
120         $RPM_BUILD_ROOT%{_includedir}/X11/extensions
121
122 %{__make} -C xc/lib/XIE install \
123         DESTDIR=$RPM_BUILD_ROOT \
124         SOXIEREV="6.0"
125
126 %{__make} -C xc/programs/xieperf install install.man \
127         DESTDIR=$RPM_BUILD_ROOT
128
129 %{__make} -C xc/programs/Xserver/XIE install \
130         DESTDIR=$RPM_BUILD_ROOT
131
132 find xc/doc/hardcopy -name Imakefile | xargs rm -f
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %post   -p /sbin/ldconfig
138 %postun -p /sbin/ldconfig
139
140 %files
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/xieperf
143 %attr(755,root,root) %{_libdir}/lib*.so.*.*
144 %{_mandir}/man1/xieperf.1*
145
146 %files devel
147 %defattr(644,root,root,755)
148 %attr(755,root,root) %{_libdir}/lib*.so
149 %{_includedir}/X11/extensions/*.h
150
151 %files static
152 %defattr(644,root,root,755)
153 %{_libdir}/lib*.a
154
155 %files doc
156 %defattr(644,root,root,755)
157 %doc xc/doc/hardcopy/XIE/*
158
159 %files -n XFree86-module-XIE
160 %defattr(644,root,root,755)
161 %attr(755,root,root) %{_libdir}/modules/extensions/libxie.a
This page took 0.069864 seconds and 3 git commands to generate.