expat1-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
  2. %define sourcename expat
  3. %define version 1.95.8
  4. %define release 1%{?_dist_release}
  5. Summary: Expat is an XML 1.0 parser written in C
  6. Summary(ja): C で書かれた XML 1.0 パーサ
  7. Name: %{sourcename}1
  8. Version: %{version}
  9. Release: %{release}
  10. License: MIT/X
  11. Group: Applications/Text
  12. URL: http://www.libexpat.org/
  13. Source: http://download.sourceforge.net/expat/%{sourcename}-%{version}.tar.gz
  14. Patch0: expat-1.95.8-mandir.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  16. Requires: lib%{name} = %{version}-%{release}
  17. BuildPreReq: libtool
  18. %description
  19. %package -n lib%{name}
  20. Summary: Runtime library of expat
  21. Summary(ja): Expat のための実行ライブラリ
  22. Group: System Environment/Libraries
  23. Obsoletes: libexpat < 2.0.0
  24. %description -n lib%{name}
  25. This package contains the runtime, shared library of expat, the C
  26. library for parsing XML.
  27. %description -n lib%{name} -l ja
  28. Expat を動作させるために必用となるライブラリです.
  29. ## to build compat32 for x86_64 architecture support
  30. %package -n compat32-lib%{name}
  31. Summary: Runtime library of expat
  32. Group: System Environment/Libraries
  33. %description -n compat32-lib%{name}
  34. This package contains the runtime, shared library of expat, the C
  35. library for parsing XML.
  36. %prep
  37. %setup -q -n %{sourcename}-%{version}
  38. %patch0 -p1 -b .mandir
  39. %build
  40. export CFLAGS="$RPM_OPT_FLAGS -fPIC"
  41. %if %{build_compat32}
  42. ## to build compat32 for x86_64 architecture support
  43. %configure CC='gcc -m32' --enable-shared
  44. %else
  45. %configure --enable-shared
  46. %endif
  47. # Dadou - 1.1-2mdk - Don't try to use optimizations. It breaks build
  48. make
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. %makeinstall
  52. rm -rf $RPM_BUILD_ROOT%{_bindir}
  53. rm -rf $RPM_BUILD_ROOT%{_includedir}
  54. rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a
  55. rm -f $RPM_BUILD_ROOT%{_libdir}/*.so
  56. rm -rf $RPM_BUILD_ROOT%{_datadir}
  57. %clean
  58. rm -rf %buildroot
  59. %post -n lib%{name} -p /sbin/ldconfig
  60. %postun -n lib%{name} -p /sbin/ldconfig
  61. %if %{build_compat32}
  62. %post -n compat32-lib%{name} -p /sbin/ldconfig
  63. %postun -n compat32-lib%{name} -p /sbin/ldconfig
  64. %endif
  65. %if !%{build_compat32}
  66. %files -n lib%{name}
  67. %defattr(-,root,root)
  68. %doc COPYING Changes README
  69. %{_libdir}/libexpat.so.*
  70. %endif
  71. ## to build compat32 for x86_64 architecture support
  72. %if %{build_compat32}
  73. %files -n compat32-lib%{name}
  74. %defattr(-,root,root)
  75. %{_libdir}/libexpat.so.*
  76. %endif
  77. %changelog
  78. * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 1.95.8-1vl5
  79. - applied new versioning policy, spec in utf-8
  80. * Mon Feb 18 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.95.8-0vl7
  81. - rename to expat1
  82. - add -fPIC
  83. - distribute libexpat1 only
  84. - add Obsoletes: libexpat < 2.0.0
  85. * Fri Sep 07 2007 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl6
  86. - rebuilt
  87. * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl5
  88. - moved macros _lib to /usr/lib/rpm/rpmrc or macros files
  89. * Thu Feb 02 2006 Shu KONNO <owa@bg.wakwak.com> 1.95.8-0vl4
  90. - added compat32* packages for x86_64 architecture support
  91. * Tue Feb 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.95.8-0vl3
  92. - add missing header file (expat_external.h) to %%files.
  93. * Tue Feb 08 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.8-0vl2
  94. - updated/revised Patch1 (%%install will fail without this patch)
  95. * Tue Feb 08 2005 Satoshi MACHINO <machino@vinelinux.org> 1.95.8-0vl1
  96. - new upstream release
  97. -- dropped patch1
  98. * Fri Jan 30 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.95.7-1vl1
  99. - updated to 1.95.7
  100. - changed URL and Group
  101. - fixed License to MIT/X (based on rpm package at sourceforge)
  102. * Thu Apr 17 2003 IWAI Masaharu <iwai@alib.jp> 1.95.6-0vl1
  103. - version up to 1.95.6
  104. - drop expat-xmlwf-dynamiclink.patch (Patch0)
  105. - add expat-1.95.6-mandir.patch for installing manpage (Patch0)
  106. - add manpage (xmlwf.1)
  107. * Mon Mar 18 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.95.2-0vl3
  108. - fixed license ( s/MPL or GPL/distributable/ )
  109. - use License tag
  110. * Sun Oct 07 2001 akira yamada <akira@vinelinux.org> 1.95.2-0vl2
  111. - new sub-package libexpat.
  112. - added BuildPreReq: libtool
  113. * Sat Oct 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.95.2-0vl1
  114. - updated to 1.95.2 release
  115. * Sun Jun 17 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  116. - 1.95.1-3vl1
  117. - based on 1.95.1-3mdk from Mandrake 8.0
  118. - added Japanese summary and description
  119. - modified spec macros for Vine
  120. * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95.1-3mdk
  121. - real version is 1.95.1
  122. - reenable optimisations
  123. * Thu Feb 15 2001 Daouda Lo <daouda@mandrakesoft.com> 1.95-1mdk
  124. - release .
  125. * Sun Jan 07 2001 David BAUDENS <baudens@mandrakesoft.com> 1.1-2mdk
  126. - Don't try to use optimizations
  127. - Bzip2 sources
  128. * Mon Nov 20 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.1-1mdk
  129. - first version