diff options
author | jk7744.park <jk7744.park@samsung.com> | 2015-09-08 21:52:54 +0900 |
---|---|---|
committer | jk7744.park <jk7744.park@samsung.com> | 2015-09-08 21:52:54 +0900 |
commit | 295c0af040ee0c94b603d7965658dd63524117a7 (patch) | |
tree | 537aca5c5c1e32e4579ba8bf0fbdfd92f328e204 /packaging | |
parent | e3c3b2b8eb7042f3fda8ab96fc5c98003284449b (diff) | |
download | gmime-295c0af040ee0c94b603d7965658dd63524117a7.tar.gz gmime-295c0af040ee0c94b603d7965658dd63524117a7.tar.bz2 gmime-295c0af040ee0c94b603d7965658dd63524117a7.zip |
tizen 2.3.1 releasetizen_2.3.1_releasesubmit/tizen_2.3.1/20150915.074416tizen_2.3.1
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/gmime.spec | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/packaging/gmime.spec b/packaging/gmime.spec new file mode 100644 index 0000000..2709778 --- /dev/null +++ b/packaging/gmime.spec @@ -0,0 +1,90 @@ +# Note that this is NOT a relocatable package +%define ver 2.6.15 +%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: 2 +License: LGPL-2.1+ +Group: Development/Libraries +URL: http://spruce.sourceforge.net/gmime/ + +Source: gmime-%{version}.tar.bz2 + +Requires: glib2 >= 2.12.0 +BuildRequires: glib2-devel >= 2.12.0 +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(zlib) + +%description +GMime is a set of utilities for parsing and creating messages using +the Multipurpose Internet Mail Extension (MIME) + +%package devel +Summary: GMime Development package +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +GMime Development package + +%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 %{buildroot} +make install DESTDIR=%{buildroot} + +mkdir -p %{buildroot}/usr/share/license/gmime +cp -p ./COPYING %{buildroot}/usr/share/license/gmime/COPYING +# rename to prevent conflict with uu* utils from sharutils +#mv %{buildroot}%{_prefix}/bin/uuencode %{buildroot}%{_prefix}/bin/gmime-uuencode +#mv %{buildroot}%{_prefix}/bin/uudecode %{buildroot}%{_prefix}/bin/gmime-uudecode + +%clean +rm -rf %{buildroot} + +%files +%defattr(-, root, root) + +#%doc doc/html/* AUTHORS ChangeLog NEWS README COPYING TODO +#%{_prefix}/bin/* +#%{_prefix}/lib/*.sh +%{_libdir}/libgmime* +%{_prefix}/share/license/gmime/* +%exclude %{_libdir}/*.a +%exclude %{_libdir}/*.la + + +%files devel +%{_includedir}/gmime-2.6/gmime/*.h +%{_libdir}/libgmime* +%{_libdir}/pkgconfig/*.pc +%exclude %{_libdir}/*.a +%exclude %{_libdir}/*.la + +%changelog +* Mon Jun 17 2013 Minsoo Kim <minnsoo.kim@samsung.com> +- Modify .spec for Tizen |