Summary: Library for creating and parsing MIME messages Summary(ja): MIMEメッセージを生成またパースするためのライブラリ Name: gmime22 Version: 2.2.26 Release: 4%{?_dist_release} Group: System Environment/Libraries License: GPL URL: http://spruce.sourceforge.net/gmime/ Source0: http://spruce.sourceforge.net/gmime/sources/v2.2/gmime-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: glib2-devel >= 2.10.0 BuildRequires: zlib-devel >= 1.2.1.1 BuildRequires: automake, libtool, gettext, gtk-doc Patch1: gmime-2.2.3-use-pkg-config.patch Patch2: gmime-2.2.3-libdir.patch Patch3: gmime-2.2.3-automake.patch Patch4: gmime-2.2.23-gacutil.patch Patch5: gmime-2.2.26-CVE-2010-0409.patch # Mono only availible on these: %define mono_archs %ix86 x86_64 ppc ia64 armv4l sparc # no mono on s390 for now: s390 s390x %ifarch %mono_archs BuildRequires: mono-devel gtk-sharp2-gapi BuildRequires: gtk-sharp2 >= 2.8.0 %define monodir %{_prefix}/lib/mono %endif %description The GMime suite provides a core library and set of utilities which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME). %package devel Summary: Header files to develop libgmime applications Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: glib2-devel %description devel The GMime suite provides a core library and set of utilities which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME). The devel-package contains header files to develop applications that use libgmime. %ifarch %mono_archs %package sharp Summary: mono bindings for gmime Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: gtk-sharp2 %description sharp The GMime suite provides a core library and set of utilities which may be used for the creation and parsing of messages using the Multipurpose Internet Mail Extension (MIME). The devel-package contains support for developing mono applications that use libgmime. %endif %prep %setup -q -n gmime-%{version} %patch1 -p1 -b .use-pkg-config #%patch2 -p1 -b .libdir #%patch3 -p0 -b .automake %ifarch %mono_archs %patch4 -p1 -b .gacutil %endif %patch5 -p1 -b .CVE-2010-0409 %build cp %{_datadir}/gettext/config.rpath . autoreconf --force --install %ifarch %mono_archs export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} MONO_ARGS="--enable-mono" %endif %configure $MONO_ARGS make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT export MONO_SHARED_DIR=%{_builddir}/%{?buildsubdir} make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' # Don't conflict with sharutils: mv $RPM_BUILD_ROOT%{_bindir}/uuencode $RPM_BUILD_ROOT%{_bindir}/gmime-uuencode-2.2 mv $RPM_BUILD_ROOT%{_bindir}/uudecode $RPM_BUILD_ROOT%{_bindir}/gmime-uudecode-2.2 %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog README TODO %{_bindir}/gmime-uu??code-2.2 %{_libdir}/lib*.so.* %files devel %defattr(-,root,root,-) %{_bindir}/gmime-config %{_libdir}/lib*.a %{_libdir}/lib*.so %{_libdir}/gmimeConf.sh %{_libdir}/pkgconfig/gmime-2.0.pc %{_includedir}/gmime-2.0 %{_datadir}/gtk-doc/html/gmime %ifarch %mono_archs %files sharp %defattr(-,root,root,-) %{_libdir}/pkgconfig/gmime-sharp.pc %{monodir}/gac/gmime-sharp %{monodir}/gmime-sharp %{_datadir}/gapi-2.0/gmime-api.xml %endif %changelog * Fri Oct 08 2010 Shu KONNO 2.2.26-4 - rebuilt with mono-2.8 * Sat Sep 25 2010 Yoji TOYODA 2.2.26-3 - rebuild with rpm-4.8.1 for pkg-config file * Mon Aug 16 2010 Shu KONNO 2.2.26-2 - added gmime-2.2.26-CVE-2010-0409.patch * Sun Apr 11 2010 Yoji TOYODA 2.2.26-1 - new upstream release - change package name (gmime22) * Thu Sep 18 2008 Shu KONNO 2.2.23-1vl5 - new upstream release - rebuilt with mono-2.0 - added gmime-2.2.23-gacutil.patch * Tue Aug 26 2008 Shu KONNO 2.2.9-1vl5 - applied new versioning policy, spec in utf-8 - updated gmime to 2.2.9 - dropt gmime-2.2.3-libdir.patch - dropt gmime-2.2.3-automake.patch * Sun Apr 29 2007 Daisuke SUZUKI 2.2.3-0vl1 - initial build for Vine Linux * Tue Feb 6 2007 Alexander Larsson - 2.2.3-5 - Fix build with new automake (#224157) * Thu Oct 12 2006 Alexander Larsson - 2.2.3-4 - Bump glib requirement to 2.6 (#209565) * Tue Sep 5 2006 Alexander Larsson - 2.2.3-3 - fix gmime-config multilib conflict (#205208) * Sat Aug 19 2006 Matthias Clasen - 2.2.3-2 - Rebuild * Fri Aug 18 2006 Alexander Larsson - 2.2.3-1 - Upgrade to 2.2.3 - Use the new mono libdir * Wed Jul 12 2006 Jesse Keating - sh: line 0: fg: no job control - rebuild * Fri Jun 9 2006 Alexander Larsson - 2.2.1-2 - Disable mono parts on s390* as mono doesn't build on s390 atm * Tue May 23 2006 Alexander Larsson - 2.2.1-1 - Update to 2.2.1 - Fix multilib -devel conflict by using pkg-config in gmime-config (#192675) * Tue Feb 28 2006 Karsten Hopp 2.1.19-4 - BuildRequires: gtk-sharp2 on mono archs only * Sun Feb 12 2006 Christopher Aillon - 2.1.19-3 - Rebuild * Tue Feb 7 2006 Jesse Keating - 2.1.19-2.1 - rebuilt for new gcc4.1 snapshot and glibc changes * Tue Jan 31 2006 Christopher Aillon - 2.1.19-2 - Rebuild * Sun Jan 22 2006 Alexander Larsson - 2.1.19-1 - Update to 2.1.19 (needed by beagle 0.2.0) * Thu Jan 19 2006 Alexander Larsson 2.1.17-3 - Build on s390x * Mon Jan 9 2006 Alexander Larsson 2.1.17-2 - build gmime-sharp conditionally on mono arches * Mon Jan 9 2006 Alexander Larsson - 2.1.17-1 - Move from Extras to Core, Update to 2.1.17, add gmime-sharp subpackage * Wed Aug 10 2005 Thorsten Leemhuis - 2.1.15-1 - Update to 2.1.15 - Use dist * Wed May 18 2005 Colin Charles - 2.1.9-5 - bump release, request build on ppc * Thu Mar 31 2005 Michael Schwendt - 2.1.9-4 - add dep glib2-devel for pkgconfig in -devel package * Mon Oct 18 2004 Thorsten Leemhuis - 0:2.1.9-0.fdr.3 - Remove ldconfig from Requires pre and post * Mon Oct 18 2004 Thorsten Leemhuis - 0:2.1.9-0.fdr.2 - BR zlib-devel - Don't ship empty news file - Fixes to the files section - Change ldconfig in post* calls to -p /sbin/ldconfig * Sun Oct 17 2004 Thorsten Leemhuis - 0:2.1.9-0.fdr.1 - Initial RPM release.