libXp-vl.spec 9.0 KB

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