Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37396242
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 

%def_disable static

Name: libgmime
Version: 2.2.4
Release: alt1

Summary: MIME library
License: GPL
Group: System/Libraries
Url: http://spruce.sourceforge.net/gmime/
Packager: Andrey Semenov <mitrofan at altlinux.ru>

Source: gmime-%version.tar.gz

BuildRequires: gcc-c++ glib2-devel libgtk-sharp2-gapi libgtk-sharp2-devel mono-mcs packages-info-i18n-common zlib-devel
BuildRequires: /proc
BuildPreReq: rpm-build-mono

%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
License: GPL

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

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

%description -n %name-sharp
C# bindings

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

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

%prep
%setup -q -n gmime-%version

%build
%configure  %{subst_enable static} \
   --enable-gtk-doc \
   --enable-mono
%make

%install
%makeinstall

# 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

%post -n %name -p %post_ldconfig

%postun -n %name -p %postun_ldconfig

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

%files -n %name-devel
%_bindir/*
%_libdir/*.sh
%_includedir/gmime-2.0/gmime/*.h
%_libdir/*.so
%_libdir/pkgconfig/gmime-2.0.pc
%dir %_datadir/gtk-doc/html/gmime
%_datadir/gtk-doc/html/gmime/*

%files -n %name-sharp
%dir %_monogacdir/gmime-sharp
%_monogacdir/gmime-sharp/*/*
%dir %_monodir/gmime-sharp
%_monodir/gmime-sharp/*
%_libdir/pkgconfig/gmime-sharp.pc
%_datadir/gapi-2.0/gmime-api.xml

%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