summaryrefslogtreecommitdiff
path: root/gmime.spec
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 21:52:54 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 21:52:54 +0900
commit295c0af040ee0c94b603d7965658dd63524117a7 (patch)
tree537aca5c5c1e32e4579ba8bf0fbdfd92f328e204 /gmime.spec
parente3c3b2b8eb7042f3fda8ab96fc5c98003284449b (diff)
downloadgmime-tizen_2.3.1.tar.gz
gmime-tizen_2.3.1.tar.bz2
gmime-tizen_2.3.1.zip
Diffstat (limited to 'gmime.spec')
-rw-r--r--gmime.spec109
1 files changed, 109 insertions, 0 deletions
diff --git a/gmime.spec b/gmime.spec
new file mode 100644
index 0000000..55d03eb
--- /dev/null
+++ b/gmime.spec
@@ -0,0 +1,109 @@
+# Note that this is NOT a relocatable package
+%define ver 2.6.15
+%define prefix /usr
+%define enable_mono 0
+%define enable_gtk_doc 0
+
+%if %{enable_mono}
+%define mono_configure_flags --enable-mono
+%else
+%define mono_configure_flags --disable-mono
+%endif
+
+%if %{enable_gtk_doc}
+%define gtkdoc_configure_flags --enable-gtk-doc
+%else
+%define gtkdoc_configure_flags --disable-gtk-doc
+%endif
+
+Summary: MIME library
+Name: gmime
+Version: %ver
+Release: 1
+Copyright: LGPL
+Group: Development/Libraries
+URL: http://spruce.sourceforge.net/gmime/
+
+Source: ftp://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/gmime-%{version}.tar.bz2
+BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
+
+Requires: glib2 >= 2.12.0
+BuildRequires: glib2-devel >= 2.12.0
+
+%description
+GMime is a set of utilities for parsing and creating messages using
+the Multipurpose Internet Mail Extension (MIME)
+
+%if %{enable_mono}
+
+%package sharp
+Summary: .NET bindings for GMime
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+BuildRequires: mono-core >= 2.0.0
+BuildRequires: gtk-sharp >= 2.4.0
+Requires: mono-core >= 2.0.0
+Requires: gtk-sharp >= 2.4.0
+
+%description sharp
+.NET Bindings for GMime
+
+%endif
+
+%prep
+%setup
+
+%build
+if [ ! -f configure ]; then
+ CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh $ARCHFLAG %{config_opts} %{mono_configure_flags}
+fi
+CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix %{mono_configure_flags}
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=${RPM_BUILD_ROOT} GACUTIL_FLAGS="/package gtk-sharp /root ${RPM_BUILD_ROOT}/usr/lib"
+
+# rename to prevent conflict with uu* utils from sharutils
+
+mv $RPM_BUILD_ROOT%{prefix}/bin/uuencode $RPM_BUILD_ROOT%{prefix}/bin/gmime-uuencode
+mv $RPM_BUILD_ROOT%{prefix}/bin/uudecode $RPM_BUILD_ROOT%{prefix}/bin/gmime-uudecode
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+
+%doc doc/html/* AUTHORS ChangeLog NEWS README COPYING TODO
+%{prefix}/bin/*
+%{prefix}/lib/*.sh
+%{prefix}/lib/libgmime*
+%{prefix}/lib/pkgconfig/*
+%{prefix}/include/gmime-2.6/gmime/*.h
+%if %{enable_gtk_doc}
+%{_datadir}/gtk-doc/html/*/*
+%endif
+
+%if %{enable_mono}
+
+%files sharp
+%{prefix}/lib/mono/gmime-sharp/*
+%{prefix}/lib/mono/gac/gmime-sharp/*
+%{prefix}/share/gapi/gmime-api.xml
+
+%endif
+
+%changelog
+* Mon Nov 29 2004 Ryan Skadberg <skadz@stigmata.org>
+- Added in sharp package for .NET bindings
+
+* Wed Dec 9 2002 Benjamin Lee <benjamin.lee@aspectdata.com>
+- fixed sharutils conflict with uudecode and uuencode.
+- removed duplicate libgmime inclusion in %files.
+
+* Wed Dec 4 2002 Benjamin Lee <benjamin.lee@aspectdata.com>
+- fixed files for gtk-doc, pkconfig, and includes.
+
+* Sat Mar 24 2001 Leland Elie <lelie@airmail.net>
+- created spec file.