Sisyphus repository
Last update: 14 october 2019 | SRPMs: 17518 | Visits: 15270551
en ru br
ALT Linux repos
5.0: 2.4.7-alt1
4.1: 2.2.23-alt0.M41.1
4.0: 2.2.4-alt1
3.0: 2.1.9-alt1

Group :: System/Libraries
RPM: libgmime

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _name gmime
%def_disable static
%define ver_major 2.4

Name: lib%_name
Version: %ver_major.7
Release: alt1

Summary: MIME library
License: GPLv2+
Group: System/Libraries
Url: http://spruce.sourceforge.net/%_name/
Packager: GNOME Maintainers Team <gnome at packages.altlinux.org>

Source: %gnome_ftp/%_name/%ver_major/%_name-%version.tar.bz2

BuildPreReq: rpm-build-mono rpm-build-gnome
BuildPreReq: glib2-devel >= 2.12.0
BuildPreReq: zlib-devel
BuildPreReq: libgtk-sharp2-devel >= 2.4.0 libgtk-sharp2-gapi
BuildPreReq: gtk-doc >= 1.8 docbook-utils
BuildRequires: gcc-c++ mono-mcs
BuildRequires: /proc

%description
GMime is a set of utilities for parsing and creating messages using
the Multipurpose Internet Mail Extension (MIME)

%package -n %name-devel
Summary: Development files for libgmime
Group: Development/C
PreReq: %name = %version-%release

%description -n %name-devel
This package contains development files required for packaging
libgmime-based software.

%package -n %name-devel-doc
Summary: Development documentation for %name
Group: Development/GNOME and GTK+
Conflicts: %name < %version-%release
BuildArch: noarch

%description -n %name-devel-doc
This package provides development documentation for %name.

%package -n %name-sharp
Summary: C# bindings
Group: Development/Other
PreReq: %name = %version-%release

%description -n %name-sharp
C# bindings for %_name

%package -n %name-devel-static
Summary: Static libraries for libgmime
Group: Development/C
PreReq: %name-devel = %version-%release

%description -n %name-devel-static
This package contains development libraries required for packaging
statically linked libgmime-based software.

%define _gtk_docdir %_datadir/gtk-doc/html

%prep
%setup -n %_name-%version

# fix dll.config

%__subst 's|libgmime-2.0.so. at GMIME_VERSION at |libgmime- at GMIME_API_VERSION at .so.2|' mono/gmime-sharp.dll.config.in

%build
%autoreconf
%configure  %{subst_enable static} \
   --disable-rpath \
   --enable-mono \
   --enable-largefile \
   --enable-rfc2047-workarounds
%make

%install
%make_install DESTDIR=%buildroot install

# rename to prevent conflict with uu* utils from sharutils

mv %buildroot%_bindir/uuencode %buildroot%_bindir/gmime-uuencode
mv %buildroot%_bindir/uudecode %buildroot%_bindir/gmime-uudecode

%files
%doc AUTHORS ChangeLog README
%_libdir/lib*.so.*

%files -n %name-devel
%_bindir/*
%_includedir/*
%_libdir/*.so
%_pkgconfigdir/%_name-%ver_major.pc

%files -n %name-devel-doc
%_gtk_docdir/*

%files -n %name-sharp
%_monogacdir/gmime-sharp
%_monodir/gmime-sharp-*
%_pkgconfigdir/gmime-sharp-*.pc

%if_enabled static
%files -n %name-devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin