libXpm-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. Summary: X.Org X11 libXpm runtime library
  3. Summary(ja): X.Org X11 libXpm ランタイムライブラリ
  4. Name: libXpm
  5. Version: 3.5.9
  6. Release: 1%{?_dist_release}
  7. License: MIT/X11
  8. Group: System Environment/Libraries
  9. URL: http://www.x.org
  10. Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: gettext
  13. BuildRequires: pkgconfig
  14. BuildRequires: xorg-x11-proto-devel
  15. BuildRequires: libX11-devel
  16. # FIXME: Although ./configure checks for libXt and libXext, and indicates
  17. # that they are missing, it continues to build anyway, and just does not
  18. # build sxpm if they are not present. Therefore, libXt-devel and
  19. # libXext-devel are required build deps in order to get sxpm built.
  20. BuildRequires: libXt-devel
  21. BuildRequires: libXext-devel
  22. BuildRequires: libXau-devel
  23. Obsoletes: XFree86-libs, XOrg-libs
  24. %description
  25. X.Org X11 libXpm runtime library
  26. %package devel
  27. Summary: X.Org X11 libXpm development package
  28. Group: Development/Libraries
  29. Requires(pre): xorg-x11-filesystem
  30. Requires: %{name} = %{version}-%{release}
  31. Requires: libX11-devel
  32. Obsoletes: XFree86-devel, XOrg-devel
  33. %description devel
  34. X.Org X11 libXpm development package
  35. %if %{build_compat32}
  36. %package -n compat32-%{name}
  37. Summary: X.Org X11 libXpm runtime library
  38. Summary(ja): X.Org X11 libXpm ランタイムライブラリ
  39. Group: System Environment/Libraries
  40. Requires: %{name} = %{version}-%{release}
  41. %description -n compat32-%{name}
  42. X.Org X11 libXpm runtime library
  43. %package -n compat32-%{name}-devel
  44. Summary: X.Org X11 libXpm development package
  45. Group: Development/Libraries
  46. Requires(pre): xorg-x11-filesystem
  47. Requires: %{name}-devel = %{version}-%{release}
  48. Requires: compat32-libX11-devel
  49. %description -n compat32-%{name}-devel
  50. X.Org X11 libXpm development package
  51. %endif
  52. %prep
  53. %setup -q
  54. # Disable static library creation by default.
  55. %define with_static 0
  56. %build
  57. %configure \
  58. %if ! %{with_static}
  59. --disable-static
  60. %endif
  61. make
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT
  65. # We intentionally don't ship *.la files
  66. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  67. %clean
  68. rm -rf $RPM_BUILD_ROOT
  69. %post -p /sbin/ldconfig
  70. %postun -p /sbin/ldconfig
  71. %files
  72. %defattr(-,root,root,-)
  73. %doc AUTHORS COPYING README ChangeLog
  74. %{_libdir}/libXpm.so.4
  75. %{_libdir}/libXpm.so.4.11.*
  76. %files devel
  77. %defattr(-,root,root,-)
  78. %{_bindir}/cxpm
  79. %{_bindir}/sxpm
  80. %dir %{_includedir}/X11
  81. %{_includedir}/X11/xpm.h
  82. %if %{with_static}
  83. %{_libdir}/libXpm.a
  84. %endif
  85. %{_libdir}/libXpm.so
  86. %{_libdir}/pkgconfig/xpm.pc
  87. #%dir %{_mandir}/man1x
  88. %{_mandir}/man1/*.1*
  89. #%{_mandir}/man1/*.1x*
  90. %if %{build_compat32}
  91. %files -n compat32-%{name}
  92. %defattr(-,root,root,-)
  93. %{_libdir}/libXpm.so.4
  94. %{_libdir}/libXpm.so.4.11.*
  95. %files -n compat32-%{name}-devel
  96. %defattr(-,root,root,-)
  97. %if %{with_static}
  98. %{_libdir}/libXpm.a
  99. %endif
  100. %{_libdir}/libXpm.so
  101. %{_libdir}/pkgconfig/xpm.pc
  102. %endif
  103. %changelog
  104. * Sun Nov 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.9-1
  105. - new upstream release
  106. * Sat Nov 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.8-3
  107. - create compat32-%%{name} and compat32-%%{name}-devel packages
  108. * Fri Sep 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.8-2
  109. - rebuild with rpm-4.8.1 for pkg-config file
  110. * Wed Nov 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5.8-1
  111. - new upstream release
  112. * Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5.7-2
  113. - spec in utf-8
  114. * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5.7-1
  115. - new versioning policy
  116. * Mon Jan 14 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5.7-0vl1
  117. - initial build for Vine Linux
  118. * Mon Sep 24 2007 Adam Jackson <ajax@redhat.com> 3.5.7-1
  119. - libXpm 3.5.7
  120. * Tue Aug 21 2007 Adam Jackson <ajax@redhat.com> - 3.5.6-2
  121. - Rebuild for build id
  122. * Sat Apr 21 2007 Matthias Clasen <mclasen@redhat.com> 3.5.6-2
  123. - Don't install INSTALL
  124. * Mon Nov 20 2006 Adam Jackson <ajax@redhat.com> 3.5.6-1
  125. - Update to 3.5.6
  126. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 3.5.5-3
  127. - rebuild
  128. * Mon Jun 05 2006 Mike A. Harris <mharris@redhat.com> 3.5.5-2
  129. - Added "BuildRequires: pkgconfig" for (#193427)
  130. - Replace "makeinstall" with "make install DESTDIR=..."
  131. - Remove package ownership of mandir/libdir/etc.
  132. * Thu Apr 26 2006 Adam Jackson <ajackson@redhat.com> 3.5.5-1
  133. - Update to 3.5.5
  134. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> 3.5.4.2-2.2
  135. - bump again for double-long bug on ppc(64)
  136. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> 3.5.4.2-2.1
  137. - rebuilt for new gcc4.1 snapshot and glibc changes
  138. * Mon Jan 23 2006 Mike A. Harris <mharris@redhat.com> 3.5.4.2-2
  139. - Bumped and rebuilt
  140. * Fri Dec 16 2005 Mike A. Harris <mharris@redhat.com> 3.5.4.2-1
  141. - Updated libXpm to version 3.5.4.2 from X11R7 RC4
  142. * Tue Dec 13 2005 Mike A. Harris <mharris@redhat.com> 3.5.4.1-1
  143. - Updated libXpm to version 3.5.4.1 from X11R7 RC3
  144. - Added "Requires(pre): xorg-x11-filesystem >= 0.99.2-3", to ensure
  145. that /usr/lib/X11 and /usr/include/X11 pre-exist.
  146. - Removed 'x' suffix from manpage directories to match RC3 upstream.
  147. - Added "Requires: libX11-devel" to devel subpackage as xpm.h includes various
  148. X headers. (#174163)
  149. - Added missing build dep libXau-devel
  150. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  151. - rebuilt
  152. * Fri Nov 11 2005 Mike A. Harris <mharris@redhat.com> 3.5.4-1
  153. - Updated libXpm to version 3.5.4 from X11R7 RC2
  154. - Changed 'Conflicts: XFree86-devel, xorg-x11-devel' to 'Obsoletes'
  155. - Changed 'Conflicts: XFree86-libs, xorg-x11-libs' to 'Obsoletes'
  156. * Mon Oct 24 2005 Mike A. Harris <mharris@redhat.com> 3.5.3-1
  157. - Updated libXpm to version 3.5.3 from X11R7 RC1
  158. - Added manpages for sxpm, cxpm
  159. * Thu Sep 29 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-5
  160. - Renamed package to remove xorg-x11 from the name due to unanimous decision
  161. between developers.
  162. - Use Fedora Extras style BuildRoot tag.
  163. - Disable static library creation by default.
  164. - Add missing defattr to devel subpackage
  165. - Add missing documentation files to doc macro
  166. - Fix BuildRequires to use new style X library package names
  167. * Sun Sep 4 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-4
  168. - Although ./configure checks for libXt and libXext, and indicates
  169. that they are missing, it continues to build anyway, and just does not
  170. build sxpm if they are not present. Therefore, libXt-devel and
  171. libXext-devel are required build deps in order to get sxpm built.
  172. - Added missing defattr to devel subpackage.
  173. * Wed Aug 24 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-3
  174. - Changed all virtual BuildRequires to the "xorg-x11-" prefixed non-virtual
  175. package names, as we want xorg-x11 libs to explicitly build against
  176. X.Org supplied libs, rather than "any implementation", which is what the
  177. virtual provides is intended for.
  178. * Tue Aug 23 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-2
  179. - Renamed package to prepend "xorg-x11" to the name for consistency with
  180. the rest of the X11R7 packages.
  181. - Added "Requires: %%{name} = %%{version}-%%{release}" dependency to devel
  182. subpackage to ensure the devel package matches the installed shared libs.
  183. - Added missing sxpm binary to devel subpackage
  184. - Added virtual "Provides: lib<name>" and "Provides: lib<name>-devel" to
  185. allow applications to use implementation agnostic dependencies.
  186. - Added post/postun scripts which call ldconfig.
  187. - Added Conflicts with XFree86-libs and xorg-x11-libs to runtime package,
  188. and Conflicts with XFree86-devel and xorg-x11-devel to devel package.
  189. * Mon Aug 22 2005 Mike A. Harris <mharris@redhat.com> 3.5.2-1
  190. - Initial build.