File gmime-2_4.spec of Package gmime-2_4
#
# spec file for package gmime-2_4 (Version 2.4.21)
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gmime-2_4
%define _name gmime
BuildRequires: glib-sharp2 glib2-devel gtk-doc gtk-sharp2 gtk-sharp2-gapi mono-devel zlib-devel
Version: 2.4.21
Release: 1
Url: http://spruce.sourceforge.net/gmime/
Group: Productivity/Networking/Email/Utilities
License: LGPLv2.1+ ; Public Domain, Freeware ; MIT License (or similar)
Summary: MIME Library Utilities
Source: http://ftp.acc.umu.se/pub/GNOME/sources/gmime/2.4/%{_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: libgmime-2_4-2 = %{version}
Conflicts: gmime < 2.4
%description
GMime is a set of utilities for parsing and creating messages using the
Multipurpose Internet Mail Extension (MIME).
%package -n libgmime-2_4-2
License: LGPLv2.1+ ; Public Domain, Freeware ; MIT License (or similar)
Group: Development/Libraries/C and C++
Summary: MIME Library
%description -n libgmime-2_4-2
GMime is a set of utilities for parsing and creating messages using the
Multipurpose Internet Mail Extension (MIME).
%package sharp
License: LGPLv2.1+ ; Public Domain, Freeware ; MIT License (or similar)
Group: Development/Libraries/Other
Summary: MIME Library Mono Bindings
Requires: libgmime-2_4-2 = %{version} gtk-sharp2 glib-sharp2
%description sharp
GMime is a set of utilities for parsing and creating messages using the
Multipurpose Internet Mail Extension (MIME).
%package devel
License: LGPLv2.1+ ; Public Domain, Freeware ; MIT License (or similar)
Group: Development/Libraries/C and C++
Summary: MIME Library
Requires: libgmime-2_4-2 = %{version} glib2-devel glibc-devel
%description devel
GMime is a set of utilities for parsing and creating messages using the
Multi-purpose Internet Mail Extension (MIME).
%package doc
License: LGPLv2.1+ ; Public Domain, Freeware ; MIT License (or similar)
Group: Development/Libraries/C and C++
Summary: MIME Library documentation
%description doc
GMime is a set of utilities for parsing and creating messages using the
Multipurpose Internet Mail Extension (MIME).
This package contains additional documentation for the main package.
%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires | grep -v "no package provides" ; } '
%prep
%setup -q -n %{_name}-%{version}
%build
autoreconf -f -i
%configure\
--enable-largefile\
--disable-static\
--enable-gtk-doc
make %{?jobs:-j%jobs}
%install
%makeinstall GACUTIL_FLAGS="/package gtk-sharp /root -bootstrap $RPM_BUILD_ROOT%{_prefix}/lib"
# rename to prevent conflict with uu* utils from sharutils
mv $RPM_BUILD_ROOT%{_bindir}/uuencode $RPM_BUILD_ROOT%{_bindir}/gmime-uuencode
mv $RPM_BUILD_ROOT%{_bindir}/uudecode $RPM_BUILD_ROOT%{_bindir}/gmime-uudecode
for FILE in COPYING ; do
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
fi
done
rm $RPM_BUILD_ROOT%{_libdir}/*.*a
%clean
rm -rf $RPM_BUILD_ROOT
%post -n libgmime-2_4-2 -p /sbin/ldconfig
%postun -n libgmime-2_4-2 -p /sbin/ldconfig
%files
%defattr (-, root, root)
# NEWS is empty
%doc AUTHORS COPYING ChangeLog PORTING README TODO
%{_bindir}/*uu*
%files -n libgmime-2_4-2
%defattr (-, root, root)
%{_libdir}/*.so.*
%files sharp
%defattr (-, root, root)
%dir %{_prefix}/lib/mono/gmime-sharp-2.4
%dir %{_prefix}/lib/mono/gac/gmime-sharp
%dir %{_prefix}/lib/mono/gac/gmime-sharp/2.4.0.0__2b75c2ad004c52e4
%{_prefix}/lib/mono/gmime-sharp-2.4/gmime-sharp.dll
%{_prefix}/lib/mono/gac/gmime-sharp/2.4.0.0__2b75c2ad004c52e4/gmime-sharp.dll
%{_prefix}/lib/mono/gac/gmime-sharp/2.4.0.0__2b75c2ad004c52e4/gmime-sharp.dll.config
# devel file:
%{_libdir}/pkgconfig/gmime-sharp-2.4.pc
%files devel
%defattr (-, root, root)
%{_includedir}/gmime-2.4
%{_libdir}/*.so
%{_libdir}/pkgconfig/gmime-2.4.pc
%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/*
%changelog