Group :: System/Libraries
RPM: libgmime
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
# This spec is backported to ALTLinux 4.1 automatically by rpmbph script. Do not edit it.
#
%define _name gmime
%def_disable static
%define ver_major 2.2
Name: lib%_name
Version: %ver_major.23
Release: alt0.M41.1
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.0.0
BuildPreReq: zlib-devel
BuildPreReq: libgtk-sharp2-devel >= 2.4.0 libgtk-sharp2-gapi
BuildPreReq: gtk-doc >= 0.18 docbook-utils
BuildRequires: gcc-c++ mono-mcs
BuildRequires: /proc
BuildRequires: rpm-build-compat >= 0.95
%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-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.
%prep
%setup -n %_name-%version
# fix dll.config
%__subst 's| at GMIME_VERSION at |2|' mono/gmime-sharp.dll.config.in
%build
%configure %{subst_enable static} \
--disable-rpath \
--enable-gtk-doc \
--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
%post -n %name -p %post_ldconfig
%postun -n %name -p %postun_ldconfig
%files
%doc AUTHORS ChangeLog README
%_libdir/lib*.so.*
%files -n %name-devel
%_bindir/*
%_libdir/*.sh
%_includedir/gmime-2.0
%_libdir/*.so
%_pkgconfigdir/gmime-2.0.pc
%_datadir/gtk-doc/html/gmime
%files -n %name-sharp
%_monogacdir/gmime-sharp
%_monodir/gmime-sharp
%_pkgconfigdir/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
#
%define _name gmime
%def_disable static
%define ver_major 2.2
Name: lib%_name
Version: %ver_major.23
Release: alt0.M41.1
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.0.0
BuildPreReq: zlib-devel
BuildPreReq: libgtk-sharp2-devel >= 2.4.0 libgtk-sharp2-gapi
BuildPreReq: gtk-doc >= 0.18 docbook-utils
BuildRequires: gcc-c++ mono-mcs
BuildRequires: /proc
BuildRequires: rpm-build-compat >= 0.95
%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-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.
%prep
%setup -n %_name-%version
# fix dll.config
%__subst 's| at GMIME_VERSION at |2|' mono/gmime-sharp.dll.config.in
%build
%configure %{subst_enable static} \
--disable-rpath \
--enable-gtk-doc \
--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
%post -n %name -p %post_ldconfig
%postun -n %name -p %postun_ldconfig
%files
%doc AUTHORS ChangeLog README
%_libdir/lib*.so.*
%files -n %name-devel
%_bindir/*
%_libdir/*.sh
%_includedir/gmime-2.0
%_libdir/*.so
%_pkgconfigdir/gmime-2.0.pc
%_datadir/gtk-doc/html/gmime
%files -n %name-sharp
%_monogacdir/gmime-sharp
%_monodir/gmime-sharp
%_pkgconfigdir/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