gmime-vl.spec 6.6 KB

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