gmime22-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. Summary: Library for creating and parsing MIME messages
  2. Summary(ja): MIMEメッセージを生成またパースするためのライブラリ
  3. Name: gmime22
  4. Version: 2.2.26
  5. Release: 4%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: GPL
  8. URL: http://spruce.sourceforge.net/gmime/
  9. Source0: http://spruce.sourceforge.net/gmime/sources/v2.2/gmime-%{version}.tar.bz2
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: glib2-devel >= 2.10.0
  12. BuildRequires: zlib-devel >= 1.2.1.1
  13. BuildRequires: automake, libtool, gettext, gtk-doc
  14. Patch1: gmime-2.2.3-use-pkg-config.patch
  15. Patch2: gmime-2.2.3-libdir.patch
  16. Patch3: gmime-2.2.3-automake.patch
  17. Patch4: gmime-2.2.23-gacutil.patch
  18. Patch5: gmime-2.2.26-CVE-2010-0409.patch
  19. # Mono only availible on these:
  20. %define mono_archs %ix86 x86_64 ppc ia64 armv4l sparc
  21. # no mono on s390 for now: s390 s390x
  22. %ifarch %mono_archs
  23. BuildRequires: mono-devel gtk-sharp2-gapi
  24. BuildRequires: gtk-sharp2 >= 2.8.0
  25. %define monodir %{_prefix}/lib/mono
  26. %endif
  27. %description
  28. The GMime suite provides a core library and set of utilities which may be
  29. used for the creation and parsing of messages using the Multipurpose
  30. Internet Mail Extension (MIME).
  31. %package devel
  32. Summary: Header files to develop libgmime applications
  33. Group: Development/Libraries
  34. Requires: %{name} = %{version}-%{release}
  35. Requires: glib2-devel
  36. %description devel
  37. The GMime suite provides a core library and set of utilities which may be
  38. used for the creation and parsing of messages using the Multipurpose
  39. Internet Mail Extension (MIME). The devel-package contains header files
  40. to develop applications that use libgmime.
  41. %ifarch %mono_archs
  42. %package sharp
  43. Summary: mono bindings for gmime
  44. Group: Development/Libraries
  45. Requires: %{name} = %{version}-%{release}
  46. Requires: gtk-sharp2
  47. %description sharp
  48. The GMime suite provides a core library and set of utilities which may be
  49. used for the creation and parsing of messages using the Multipurpose
  50. Internet Mail Extension (MIME). The devel-package contains support
  51. for developing mono applications that use libgmime.
  52. %endif
  53. %prep
  54. %setup -q -n gmime-%{version}
  55. %patch1 -p1 -b .use-pkg-config
  56. #%patch2 -p1 -b .libdir
  57. #%patch3 -p0 -b .automake
  58. %ifarch %mono_archs
  59. %patch4 -p1 -b .gacutil
  60. %endif
  61. %patch5 -p1 -b .CVE-2010-0409
  62. %build
  63. cp %{_datadir}/gettext/config.rpath .
  64. autoreconf --force --install
  65. %ifarch %mono_archs
  66. export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
  67. MONO_ARGS="--enable-mono"
  68. %endif
  69. %configure $MONO_ARGS
  70. make %{?_smp_mflags}
  71. %install
  72. rm -rf $RPM_BUILD_ROOT
  73. export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir}
  74. make install DESTDIR=$RPM_BUILD_ROOT
  75. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  76. # Don't conflict with sharutils:
  77. mv $RPM_BUILD_ROOT%{_bindir}/uuencode $RPM_BUILD_ROOT%{_bindir}/gmime-uuencode-2.2
  78. mv $RPM_BUILD_ROOT%{_bindir}/uudecode $RPM_BUILD_ROOT%{_bindir}/gmime-uudecode-2.2
  79. %clean
  80. rm -rf $RPM_BUILD_ROOT
  81. %post -p /sbin/ldconfig
  82. %postun -p /sbin/ldconfig
  83. %files
  84. %defattr(-,root,root,-)
  85. %doc AUTHORS COPYING ChangeLog README TODO
  86. %{_bindir}/gmime-uu??code-2.2
  87. %{_libdir}/lib*.so.*
  88. %files devel
  89. %defattr(-,root,root,-)
  90. %{_bindir}/gmime-config
  91. %{_libdir}/lib*.a
  92. %{_libdir}/lib*.so
  93. %{_libdir}/gmimeConf.sh
  94. %{_libdir}/pkgconfig/gmime-2.0.pc
  95. %{_includedir}/gmime-2.0
  96. %{_datadir}/gtk-doc/html/gmime
  97. %ifarch %mono_archs
  98. %files sharp
  99. %defattr(-,root,root,-)
  100. %{_libdir}/pkgconfig/gmime-sharp.pc
  101. %{monodir}/gac/gmime-sharp
  102. %{monodir}/gmime-sharp
  103. %{_datadir}/gapi-2.0/gmime-api.xml
  104. %endif
  105. %changelog
  106. * Fri Oct 08 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.26-4
  107. - rebuilt with mono-2.8
  108. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.26-3
  109. - rebuild with rpm-4.8.1 for pkg-config file
  110. * Mon Aug 16 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.26-2
  111. - added gmime-2.2.26-CVE-2010-0409.patch
  112. * Sun Apr 11 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.26-1
  113. - new upstream release
  114. - change package name (gmime22)
  115. * Thu Sep 18 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.23-1vl5
  116. - new upstream release
  117. - rebuilt with mono-2.0
  118. - added gmime-2.2.23-gacutil.patch
  119. * Tue Aug 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.2.9-1vl5
  120. - applied new versioning policy, spec in utf-8
  121. - updated gmime to 2.2.9
  122. - dropt gmime-2.2.3-libdir.patch
  123. - dropt gmime-2.2.3-automake.patch
  124. * Sun Apr 29 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.3-0vl1
  125. - initial build for Vine Linux
  126. * Tue Feb 6 2007 Alexander Larsson <alexl@redhat.com> - 2.2.3-5
  127. - Fix build with new automake (#224157)
  128. * Thu Oct 12 2006 Alexander Larsson <alexl@redhat.com> - 2.2.3-4
  129. - Bump glib requirement to 2.6 (#209565)
  130. * Tue Sep 5 2006 Alexander Larsson <alexl@redhat.com> - 2.2.3-3
  131. - fix gmime-config multilib conflict (#205208)
  132. * Sat Aug 19 2006 Matthias Clasen <mclasen@redhat.com> - 2.2.3-2
  133. - Rebuild
  134. * Fri Aug 18 2006 Alexander Larsson <alexl@redhat.com> - 2.2.3-1
  135. - Upgrade to 2.2.3
  136. - Use the new mono libdir
  137. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - sh: line 0: fg: no job control
  138. - rebuild
  139. * Fri Jun 9 2006 Alexander Larsson <alexl@redhat.com> - 2.2.1-2
  140. - Disable mono parts on s390* as mono doesn't build on s390 atm
  141. * Tue May 23 2006 Alexander Larsson <alexl@redhat.com> - 2.2.1-1
  142. - Update to 2.2.1
  143. - Fix multilib -devel conflict by using pkg-config in gmime-config (#192675)
  144. * Tue Feb 28 2006 Karsten Hopp <karsten@redhat.de> 2.1.19-4
  145. - BuildRequires: gtk-sharp2 on mono archs only
  146. * Sun Feb 12 2006 Christopher Aillon <caillon@redhat.com> - 2.1.19-3
  147. - Rebuild
  148. * Tue Feb 7 2006 Jesse Keating <jkeating@redhat.com> - 2.1.19-2.1
  149. - rebuilt for new gcc4.1 snapshot and glibc changes
  150. * Tue Jan 31 2006 Christopher Aillon <caillon@redhat.com> - 2.1.19-2
  151. - Rebuild
  152. * Sun Jan 22 2006 Alexander Larsson <alexl@redhat.com> - 2.1.19-1
  153. - Update to 2.1.19 (needed by beagle 0.2.0)
  154. * Thu Jan 19 2006 Alexander Larsson <alexl@redhat.com> 2.1.17-3
  155. - Build on s390x
  156. * Mon Jan 9 2006 Alexander Larsson <alexl@redhat.com> 2.1.17-2
  157. - build gmime-sharp conditionally on mono arches
  158. * Mon Jan 9 2006 Alexander Larsson <alexl@redhat.com> - 2.1.17-1
  159. - Move from Extras to Core, Update to 2.1.17, add gmime-sharp subpackage
  160. * Wed Aug 10 2005 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 2.1.15-1
  161. - Update to 2.1.15
  162. - Use dist
  163. * Wed May 18 2005 Colin Charles <colin@fedoraproject.org> - 2.1.9-5
  164. - bump release, request build on ppc
  165. * Thu Mar 31 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 2.1.9-4
  166. - add dep glib2-devel for pkgconfig in -devel package
  167. * Mon Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.9-0.fdr.3
  168. - Remove ldconfig from Requires pre and post
  169. * Mon Oct 18 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.9-0.fdr.2
  170. - BR zlib-devel
  171. - Don't ship empty news file
  172. - Fixes to the files section
  173. - Change ldconfig in post* calls to -p /sbin/ldconfig
  174. * Sun Oct 17 2004 Thorsten Leemhuis <fedora[AT]leemhuis[DOT]info> - 0:2.1.9-0.fdr.1
  175. - Initial RPM release.