1 | # libXp will be removed from future release. |
---|
2 | %define without_devel 0 |
---|
3 | |
---|
4 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
5 | |
---|
6 | Summary: X.Org X11 libXp runtime library |
---|
7 | Summary(ja): X.Org X11 libXp ランタイムライブラリ |
---|
8 | Name: libXp |
---|
9 | Version: 1.0.1 |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | License: MIT/X11 |
---|
12 | Group: System Environment/Libraries |
---|
13 | URL: http://www.x.org |
---|
14 | |
---|
15 | Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 |
---|
16 | Patch0: libXp-1.0.1-add-proto-files.patch |
---|
17 | |
---|
18 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
19 | BuildRequires: pkgconfig |
---|
20 | BuildRequires: xorg-x11-util-macros |
---|
21 | BuildRequires: xorg-x11-proto-devel |
---|
22 | BuildRequires: libX11-devel |
---|
23 | BuildRequires: libXext-devel |
---|
24 | BuildRequires: libXau-devel |
---|
25 | BuildRequires: libtool automake autoconf gettext |
---|
26 | Obsoletes: XFree86-libs, XOrg-libs |
---|
27 | |
---|
28 | %description |
---|
29 | X.Org X11 libXp runtime library |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: X.Org X11 libXp development package |
---|
33 | Summary(ja): X.Org X11 libXp 開発パッケージ |
---|
34 | Group: Development/Libraries |
---|
35 | Requires(pre): xorg-x11-filesystem |
---|
36 | Requires: libXau-devel |
---|
37 | Requires: libXext-devel |
---|
38 | Requires: %{name} = %{version}-%{release} |
---|
39 | BuildRequires: xorg-x11-proto-devel |
---|
40 | Obsoletes: XFree86-devel, XOrg-devel |
---|
41 | |
---|
42 | %description devel |
---|
43 | X.Org X11 libXp development package |
---|
44 | |
---|
45 | # compat32 |
---|
46 | %package -n compat32-%{name} |
---|
47 | Summary: X.Org X11 libXp runtime library |
---|
48 | Summary(ja): X.Org X11 libXp ランタイムライブラリ |
---|
49 | Group: System Environment/Libraries |
---|
50 | Requires: %{name} = %{version}-%{release} |
---|
51 | |
---|
52 | %description -n compat32-%{name} |
---|
53 | X.Org X11 libXp runtime library |
---|
54 | |
---|
55 | %package -n compat32-%{name}-devel |
---|
56 | Summary: X.Org X11 libXp development package |
---|
57 | Summary(ja): X.Org X11 libXp 開発パッケージ |
---|
58 | Group: Development/Libraries |
---|
59 | Requires(pre): xorg-x11-filesystem |
---|
60 | Requires: %{name}-devel = %{version}-%{release} |
---|
61 | Requires: compat32-%{name} = %{version}-%{release} |
---|
62 | Requires: compat32-libXau-devel |
---|
63 | |
---|
64 | %description -n compat32-%{name}-devel |
---|
65 | X.Org X11 libXp development package |
---|
66 | |
---|
67 | %prep |
---|
68 | %setup -q |
---|
69 | |
---|
70 | %patch0 -p1 -b .add-proto-files |
---|
71 | |
---|
72 | # Disable static library creation by default. |
---|
73 | %define with_static 0 |
---|
74 | |
---|
75 | %build |
---|
76 | |
---|
77 | # There is a patch that changes configure.ac, so we have |
---|
78 | # run autoreconf |
---|
79 | |
---|
80 | autoreconf -if |
---|
81 | CPPFLAGS="$CPPFLAGS -I$RPM_BUILD_ROOT%{_includedir}" |
---|
82 | export CPPFLAGS |
---|
83 | |
---|
84 | autoreconf -v --install |
---|
85 | |
---|
86 | %configure \ |
---|
87 | %if ! %{with_static} |
---|
88 | --disable-static |
---|
89 | %endif |
---|
90 | make |
---|
91 | |
---|
92 | %install |
---|
93 | rm -rf $RPM_BUILD_ROOT |
---|
94 | |
---|
95 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
96 | |
---|
97 | %if %{without_devel} |
---|
98 | { |
---|
99 | rm -f $RPM_BUILD_ROOT%{_libdir}/libXp.a |
---|
100 | rm -f $RPM_BUILD_ROOT%{_libdir}/libXp.so |
---|
101 | rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
102 | rm -rf $RPM_BUILD_ROOT%{_mandir} |
---|
103 | } |
---|
104 | %endif |
---|
105 | |
---|
106 | # Don't encourage people to use the deprecated Xprint APIs. |
---|
107 | rm -rf $RPM_BUILD_ROOT%{_mandir} |
---|
108 | |
---|
109 | # We intentionally don't ship *.la files |
---|
110 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
111 | |
---|
112 | %clean |
---|
113 | rm -rf $RPM_BUILD_ROOT |
---|
114 | |
---|
115 | %post -p /sbin/ldconfig |
---|
116 | %postun -p /sbin/ldconfig |
---|
117 | |
---|
118 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
119 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
120 | |
---|
121 | %files |
---|
122 | %defattr(-,root,root,-) |
---|
123 | %doc AUTHORS COPYING README INSTALL ChangeLog |
---|
124 | %{_libdir}/libXp.so.6 |
---|
125 | %{_libdir}/libXp.so.6.2.0 |
---|
126 | |
---|
127 | %if ! %{without_devel} |
---|
128 | %files devel |
---|
129 | %defattr(-,root,root,-) |
---|
130 | %if %{with_static} |
---|
131 | %{_libdir}/libXp.a |
---|
132 | %endif |
---|
133 | %{_includedir}/X11/extensions/Print.h |
---|
134 | %{_includedir}/X11/extensions/Printstr.h |
---|
135 | %{_libdir}/pkgconfig/printproto.pc |
---|
136 | # FIXME: Should we remove the shared lib during deprecation, so that things |
---|
137 | # that keep linking to libXp, will always get the static lib and not break |
---|
138 | # when we eventually drop libXp? |
---|
139 | %{_libdir}/libXp.so |
---|
140 | %{_libdir}/pkgconfig/xp.pc |
---|
141 | #%dir %{_mandir}/man3x |
---|
142 | #%{_mandir}/man3/*.3x* |
---|
143 | %endif |
---|
144 | |
---|
145 | # compat32 |
---|
146 | %if %{build_compat32} |
---|
147 | %files -n compat32-%{name} |
---|
148 | %defattr(-,root,root,-) |
---|
149 | %{_libdir}/libXp.so.6 |
---|
150 | %{_libdir}/libXp.so.6.2.0 |
---|
151 | |
---|
152 | %if ! %{without_devel} |
---|
153 | %files -n compat32-%{name}-devel |
---|
154 | %defattr(-,root,root,-) |
---|
155 | %if %{with_static} |
---|
156 | %{_libdir}/libXp.a |
---|
157 | %endif |
---|
158 | %{_libdir}/pkgconfig/printproto.pc |
---|
159 | # FIXME: Should we remove the shared lib during deprecation, so that things |
---|
160 | # that keep linking to libXp, will always get the static lib and not break |
---|
161 | # when we eventually drop libXp? |
---|
162 | %{_libdir}/libXp.so |
---|
163 | %{_libdir}/pkgconfig/xp.pc |
---|
164 | %endif |
---|
165 | %endif |
---|
166 | |
---|
167 | %changelog |
---|
168 | * Sat Jan 22 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.1-1 |
---|
169 | - new upstream release |
---|
170 | - update Patch0 (libXp-1.0.1-add-proto-files.patch) |
---|
171 | - add Requires: libXext-devel (devel package) |
---|
172 | |
---|
173 | * Fri Sep 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.0.0-4 |
---|
174 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
175 | |
---|
176 | * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.0-3 |
---|
177 | - added compat32 package for x86_64 arch support |
---|
178 | |
---|
179 | * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-2 |
---|
180 | - spec in utf-8 |
---|
181 | |
---|
182 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1 |
---|
183 | - new versioning policy |
---|
184 | |
---|
185 | * Mon Jan 14 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-0vl1 |
---|
186 | - initial build for Vine Linux |
---|
187 | |
---|
188 | * Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 1.0.0-8 |
---|
189 | - Rebuild for build id |
---|
190 | |
---|
191 | * Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1.0.0-8 |
---|
192 | - rebuilt for unwind info generation, broken in gcc-4.1.1-21 |
---|
193 | |
---|
194 | * Wed Sep 20 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0.7 |
---|
195 | - Add requires for the devel package on libXau-devel (173530) |
---|
196 | |
---|
197 | * Fri Aug 18 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0-6 |
---|
198 | - Add the proto files directly instead of attempting to build a separate |
---|
199 | tarball. Also remove last traces of printproto-1.0.3.tar.gz |
---|
200 | |
---|
201 | * Fri Aug 18 2006 Soren Sandmann <sandmann@redhat.com> |
---|
202 | - Remove printproto source. |
---|
203 | |
---|
204 | * Fri Aug 18 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0-6 |
---|
205 | - BuildRequire autoconf automake libtool gettext |
---|
206 | |
---|
207 | * Fri Aug 18 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0-6 |
---|
208 | - Run autoreconf to make sure changes to configure.ac take effect |
---|
209 | |
---|
210 | * Fri Aug 18 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0-6 |
---|
211 | - Add patch to not check for printproto.pc. (Since it's part of this |
---|
212 | package now, it isn't installed at the time libXp is configured). |
---|
213 | |
---|
214 | * Thu Aug 17 2006 Soren Sandmann <sandmann@redhat.com> - 1.0.0-5 |
---|
215 | - Moved Print.h, Printstr.h and printproto.pc into the devel package here |
---|
216 | (they used to be in xorg-x11-proto-devel). |
---|
217 | |
---|
218 | * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control |
---|
219 | - rebuild |
---|
220 | |
---|
221 | * Mon Jul 10 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-4 |
---|
222 | - Renamed libXp_deprecated rpm macro to "with_devel" to avoid confusion. This |
---|
223 | library is still deprecated, we just decided to remove the word "deprecated" |
---|
224 | from the package name for library naming consistency. |
---|
225 | |
---|
226 | * Fri Jun 09 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-3 |
---|
227 | - Replace "makeinstall" with "make install DESTDIR=..." |
---|
228 | - Added "Requires: xorg-x11-proto-devel" to devel for xp.pc |
---|
229 | - Remove package ownership of mandir/libdir/etc. |
---|
230 | |
---|
231 | * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 1.0.0-2.2 |
---|
232 | - bump again for double-long bug on ppc(64) |
---|
233 | |
---|
234 | * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 1.0.0-2.1 |
---|
235 | - rebuilt for new gcc4.1 snapshot and glibc changes |
---|
236 | |
---|
237 | * Mon Jan 23 2006 Mike A. Harris <mharris@redhat.com> 1.0.0-2 |
---|
238 | - Bumped and rebuilt |
---|
239 | |
---|
240 | * Fri Dec 16 2005 Mike A. Harris <mharris@redhat.com> 1.0.0-1 |
---|
241 | - Updated libXp to version 1.0.0 from X11R7 RC4 |
---|
242 | |
---|
243 | * Tue Dec 13 2005 Mike A. Harris <mharris@redhat.com> 0.99.2-1 |
---|
244 | - Updated libXp to version 0.99.2 from X11R7 RC3 |
---|
245 | - Added "Requires(pre): xorg-x11-filesystem >= 0.99.2-3", to ensure |
---|
246 | that /usr/lib/X11 and /usr/include/X11 pre-exist. |
---|
247 | - Removed 'x' suffix from manpage directories to match RC3 upstream. |
---|
248 | |
---|
249 | * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> |
---|
250 | - rebuilt |
---|
251 | |
---|
252 | * Wed Nov 16 2005 Mike A. Harris <mharris@redhat.com> 0.99.1-3 |
---|
253 | - Added "Obsoletes: xorg-x11-deprecated-libs" to runtime package, and |
---|
254 | "Obsoletes: xorg-x11-deprecated-libs-devel" to devel package. |
---|
255 | |
---|
256 | * Fri Nov 11 2005 Mike A. Harris <mharris@redhat.com> 0.99.1-2 |
---|
257 | - Changed 'Conflicts: XFree86-devel, xorg-x11-devel' to 'Obsoletes' |
---|
258 | - Changed 'Conflicts: XFree86-libs, xorg-x11-libs' to 'Obsoletes' |
---|
259 | |
---|
260 | * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 0.99.1-1 |
---|
261 | - Updated libXp to version 0.99.1 from X11R7 RC1 |
---|
262 | |
---|
263 | * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 0.99.0-3 |
---|
264 | - Renamed package to remove xorg-x11 from the name due to unanimous decision |
---|
265 | between developers. |
---|
266 | - Use Fedora Extras style BuildRoot tag. |
---|
267 | - Disable static library creation by default. |
---|
268 | - Add missing defattr to devel subpackage |
---|
269 | - Add missing documentation files to doc macro |
---|
270 | |
---|
271 | * Tue Aug 23 2005 Mike A. Harris <mharris@redhat.com> 0.99.0-2 |
---|
272 | - Renamed package to prepend "xorg-x11" to the name for consistency with |
---|
273 | the rest of the X11R7 packages. |
---|
274 | - Added "Requires: %%{name} = %%{version}-%%{release}" dependency to devel |
---|
275 | subpackage to ensure the devel package matches the installed shared libs. |
---|
276 | - Added virtual "Provides: lib<name>" and "Provides: lib<name>-devel" to |
---|
277 | allow applications to use implementation agnostic dependencies. |
---|
278 | - Added post/postun scripts which call ldconfig. |
---|
279 | - Added Conflicts with XFree86-libs and xorg-x11-libs to runtime package, |
---|
280 | and Conflicts with XFree86-devel and xorg-x11-devel to devel package. |
---|
281 | |
---|
282 | * Mon Aug 22 2005 Mike A. Harris <mharris@redhat.com> 0.99.0-1 |
---|
283 | - Initial build. |
---|