libXp-vl.spec 9.3 KB

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