/
gmime.spec
125 lines (102 loc) · 3.04 KB
/
gmime.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define major 0
%define apiver 3.0
%define libname %mklibname %{name} %{apiver} %{major}
%define girname %mklibname %{name}-gir %{apiver}
%define devname %mklibname %{name} -d
%define _disable_rebuild_configure 1
%define _gtkdocdir %{_datadir}/gtk-doc/html
%ifarch %{ix86} x86_64
%bcond_with mono
%endif
%ifarch %mips %arm
%bcond_with mono
%endif
Summary: The libGMIME library
Name: gmime
Version: 3.2.14
Release: 3
License: LGPLv2+
Group: System/Libraries
Url: https://spruce.sourceforge.net/gmime
#Active repository is now here:
Source0: https://github.com/jstedfast/gmime/releases/download/%{version}/gmime-%{version}.tar.xz
#Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source100: gmime.rpmlintrc
BuildRequires: gtk-doc
BuildRequires: gpgme-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: vala-devel
BuildRequires: gnupg2
%if %{with mono}
BuildRequires: pkgconfig(gapi-2.0)
BuildRequires: pkgconfig(gtk-sharp-2.0)
BuildRequires: pkgconfig(mono)
%endif
%description
This library allows you to manipulate MIME messages.
%package -n %{libname}
Summary: The libGMIME library
Group: System/Libraries
%description -n %{libname}
This library allows you to manipulate MIME messages.
%package -n %{girname}
Summary: GObject Introspection interface description for GMime
Group: System/Libraries
Requires: %{libname} = %{version}-%{release}
%description -n %{girname}
GObject Introspection interface description for GMime.
%package -n %{devname}
Summary: Development library and header files for the lib%{name} library
Group: Development/C
Provides: %{name}-devel
Requires: %{libname} = %{version}-%{release}
%description -n %{devname}
This package contains the lib%{name} development library and its header files.
%if %{with mono}
%package sharp
Summary: GMIME bindings for mono
Group: System/Libraries
Requires: %{libname} = %{version}-%{release}
%description sharp
This library allows you to manipulate MIME messages.
%endif
%prep
%setup -q
%build
%configure \
--disable-static \
--with-html-dir=%{_gtkdocdir} \
--enable-gtk-doc \
--enable-vala
#gw parallel build broken in 2.1.15
# (tpg) mono stuff doesn't like parallel build, this solves it
%(echo %make|perl -pe 's/-j\d+/-j1/g')
%install
%make_install
# cleanup
rm -f %{buildroot}%{_libdir}/gmimeConf.sh
%files -n %{libname}
%{_libdir}/libgmime-%{apiver}.so.%{major}*
%files -n %{devname}
%doc AUTHORS ChangeLog PORTING README TODO
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/gmime-%{apiver}.pc
%{_datadir}/gir-1.0/GMime-%{apiver}.gir
%{_includedir}/*
%{_datadir}/vala/vapi/gmime-3.0.deps
%{_datadir}/vala/vapi/gmime-3.0.vapi
%if %{with mono}
#{_datadir}/gapi-2.0/gmime-api.xml
%endif
%doc %{_gtkdocdir}/*
%files -n %{girname}
%{_libdir}/girepository-1.0/GMime-%{apiver}.typelib
%if %{with mono}
%files sharp
#{_prefix}/lib/mono/gac/%{name}-sharp
#{_prefix}/lib/mono/%{name}-sharp-%{apiver}
#{_libdir}/pkgconfig/%{name}-sharp-%{apiver}.pc
%endif