gmime-vl.spec 6.4 KB

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