diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-01-31 16:15:26 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-01-31 16:15:26 +0900 |
commit | 38b35d807dd817aa4aede2fa94dd21e5d05d0036 (patch) | |
tree | 1de949a24c959a37d4207a2119d6b6dac77cd171 /gmime.spec.in | |
parent | e3c3b2b8eb7042f3fda8ab96fc5c98003284449b (diff) | |
download | gmime-38b35d807dd817aa4aede2fa94dd21e5d05d0036.tar.gz gmime-38b35d807dd817aa4aede2fa94dd21e5d05d0036.tar.bz2 gmime-38b35d807dd817aa4aede2fa94dd21e5d05d0036.zip |
tizen 2.3 releasetizen_2.3_releasesubmit/tizen_2.3/20150202.054917submit/tizen/20150403.075132submit/tizen/20150403.074558tizen_2.3
Diffstat (limited to 'gmime.spec.in')
-rw-r--r-- | gmime.spec.in | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/gmime.spec.in b/gmime.spec.in new file mode 100644 index 0000000..046f00b --- /dev/null +++ b/gmime.spec.in @@ -0,0 +1,109 @@ +# Note that this is NOT a relocatable package +%define ver @VERSION@ +%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. |