]>
Commit | Line | Data |
---|---|---|
6bdf2934 JB |
1 | # |
2 | # Conditional build: | |
1df1aae6 | 3 | %bcond_without dotnet # without .net support |
514088e0 | 4 | |
f8fce8dd | 5 | %ifarch i386 x32 |
d6196998 JB |
6 | %undefine with_dotnet |
7 | %endif | |
514088e0 | 8 | |
3f512692 | 9 | %{?with_dotnet:%include /usr/lib/rpm/macros.mono} |
74822717 | 10 | Summary: GMIME library |
dc026c15 | 11 | Summary(pl.UTF-8): Biblioteka GMIME |
fdd96852 | 12 | Name: gmime22 |
842020bf | 13 | Version: 2.2.27 |
97853d0d | 14 | Release: 5 |
3f512692 | 15 | License: LGPL v2.1+ |
b43b24b0 | 16 | Group: Libraries |
fdd96852 | 17 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gmime/2.2/gmime-%{version}.tar.bz2 |
842020bf | 18 | # Source0-md5: 16d89accbe5c79ba22e3dfabf53e3b7e |
afa25620 | 19 | Patch0: %{name}-link.patch |
fdd96852 | 20 | Patch1: %{name}-dont-delay-sign.patch |
f8fce8dd | 21 | Patch2: format-security.patch |
7910b378 | 22 | URL: http://spruce.sourceforge.net/gmime/ |
55c4e464 | 23 | BuildRequires: autoconf |
320494f4 | 24 | BuildRequires: automake |
254c1d0a | 25 | BuildRequires: gettext-devel |
37756320 | 26 | BuildRequires: glib2-devel >= 1:2.12.1 |
254c1d0a | 27 | BuildRequires: gtk-doc >= 1.0 |
28 | BuildRequires: gtk-doc-automake | |
44a4bad7 | 29 | BuildRequires: libtool |
afa25620 | 30 | BuildRequires: pkgconfig |
471bdf54 | 31 | BuildRequires: zlib-devel |
df6e21d1 | 32 | %if %{with dotnet} |
5cc702b0 | 33 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.9.0 |
37756320 | 34 | BuildRequires: mono-csharp >= 1.1.16.1 |
df6e21d1 | 35 | %endif |
fdd96852 | 36 | Obsoletes: gmime < 2.2.23 |
320494f4 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ef085262 | 38 | |
39 | %description | |
40 | This library allows you to manipulate MIME messages. | |
41 | ||
e50828cc JR |
42 | %description -l pl.UTF-8 |
43 | Ta biblioteka pozwala na manipulowanie wiadomościami MIME. | |
0131add0 | 44 | |
ef085262 | 45 | %package devel |
b43b24b0 | 46 | Summary: Header files to develop libgmime applications |
dc026c15 | 47 | Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z użyciem libgmime |
320494f4 | 48 | Group: Development/Libraries |
9488f1eb | 49 | Requires: %{name} = %{version}-%{release} |
16187821 | 50 | Requires: glib2-devel >= 1:2.12.1 |
471bdf54 | 51 | Requires: zlib-devel |
fdd96852 | 52 | Obsoletes: gmime-devel < 2.2.23 |
ef085262 | 53 | |
54 | %description devel | |
b43b24b0 | 55 | Header files develop libgmime applications. |
ef085262 | 56 | |
e50828cc JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe do tworzenia programów z użyciem libgmime. | |
0131add0 | 59 | |
320494f4 | 60 | %package static |
b43b24b0 | 61 | Summary: Static gmime library |
dc026c15 | 62 | Summary(pl.UTF-8): Statyczna biblioteka gmime |
320494f4 | 63 | Group: Development/Libraries |
9488f1eb | 64 | Requires: %{name}-devel = %{version}-%{release} |
fdd96852 | 65 | Obsoletes: gmime-static < 2.2.23 |
ef085262 | 66 | |
320494f4 | 67 | %description static |
b43b24b0 | 68 | Static gmime library. |
ef085262 | 69 | |
e50828cc | 70 | %description static -l pl.UTF-8 |
b43b24b0 | 71 | Statyczna biblioteka gmime. |
18ab2d20 | 72 | |
16187821 MB |
73 | %package apidocs |
74 | Summary: gmime library API documentation | |
75 | Summary(pl.UTF-8): Dokumentacja API biblioteki gmime | |
76 | Group: Documentation | |
77 | Requires: gtk-doc-common | |
514088e0 ER |
78 | %if "%{_rpmversion}" >= "5" |
79 | BuildArch: noarch | |
80 | %endif | |
16187821 MB |
81 | |
82 | %description apidocs | |
83 | gmime library API documentation. | |
84 | ||
85 | %description apidocs -l pl.UTF-8 | |
86 | Dokumentacja API biblioteki gmime. | |
87 | ||
fdd96852 | 88 | %package -n dotnet-gmime22-sharp |
1df1aae6 | 89 | Summary: .NET language bindings for gmime |
dc026c15 | 90 | Summary(pl.UTF-8): Wiązania gmime dla .NET |
1df1aae6 | 91 | Group: Development/Libraries |
3f512692 | 92 | Requires: %{name} = %{version}-%{release} |
797d6e91 | 93 | Requires: dotnet-gtk-sharp2 >= 2.9.0 |
5cc702b0 | 94 | Requires: mono >= 1.1.16.1 |
fdd96852 | 95 | Obsoletes: dotnet-gmime-sharp < 2.2.23 |
1df1aae6 | 96 | |
fdd96852 MB |
97 | %description -n dotnet-gmime22-sharp |
98 | .NET language bindings for gmime. | |
1df1aae6 | 99 | |
fdd96852 MB |
100 | %description -n dotnet-gmime22-sharp -l pl.UTF-8 |
101 | Wiązania gmime dla .NET. | |
1df1aae6 | 102 | |
fdd96852 | 103 | %package -n dotnet-gmime22-sharp-devel |
1df1aae6 | 104 | Summary: Development part of dotnet-gmime-sharp |
dc026c15 | 105 | Summary(pl.UTF-8): Część dla programistów dotnet-gmime-sharp |
1df1aae6 | 106 | Group: Development/Libraries |
3f512692 | 107 | Requires: dotnet-%{name}-sharp = %{version}-%{release} |
fdd96852 | 108 | Obsoletes: dotnet-gmime-sharp-devel < 2.2.23 |
1df1aae6 | 109 | |
fdd96852 | 110 | %description -n dotnet-gmime22-sharp-devel |
16187821 | 111 | Development part of dotnet-gmime-sharp. |
1df1aae6 | 112 | |
fdd96852 | 113 | %description -n dotnet-gmime22-sharp-devel -l pl.UTF-8 |
16187821 | 114 | Część dla programistów dotnet-gmime-sharp. |
1df1aae6 | 115 | |
ef085262 | 116 | %prep |
fdd96852 | 117 | %setup -q -n gmime-%{version} |
320494f4 | 118 | %patch0 -p1 |
fdd96852 | 119 | %patch1 -p1 |
f8fce8dd | 120 | %patch2 -p1 |
ef085262 | 121 | |
122 | %build | |
fdd96852 | 123 | touch config.rpath |
22a58279 | 124 | %{__libtoolize} |
2ba613ed | 125 | %{__aclocal} |
22a58279 | 126 | %{__autoconf} |
44a4bad7 | 127 | %{__automake} |
f8fce8dd | 128 | CFLAGS="%{rpmcflags} -UG_DISABLE_DEPRECATED" |
7910b378 | 129 | %configure \ |
7a13a80f | 130 | --enable-largefile \ |
ae22027e | 131 | --%{?with_dotnet:enable}%{!?with_dotnet:disable}-mono \ |
7910b378 JB |
132 | --with-html-dir=%{_gtkdocdir} |
133 | ||
a4043669 | 134 | %{__make} |
ef085262 | 135 | |
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
138 | ||
320494f4 | 139 | %{__make} install \ |
7910b378 | 140 | DESTDIR=$RPM_BUILD_ROOT \ |
fdd96852 | 141 | HTML_DIR=%{_gtkdocdir} |
320494f4 | 142 | |
e53b2ced | 143 | rm -f $RPM_BUILD_ROOT%{_bindir}/uu{de,en}code |
144 | ||
ef085262 | 145 | %clean |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | ||
320494f4 | 148 | %post -p /sbin/ldconfig |
ef085262 | 149 | %postun -p /sbin/ldconfig |
150 | ||
151 | %files | |
320494f4 | 152 | %defattr(644,root,root,755) |
7a13a80f | 153 | %doc AUTHORS ChangeLog README TODO |
fdd96852 MB |
154 | %attr(755,root,root) %{_libdir}/libgmime-2.0.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libgmime-2.0.so.2 | |
7a13a80f JB |
156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
159 | %doc PORTING | |
fdd96852 MB |
160 | %attr(755,root,root) %{_bindir}/gmime-config |
161 | %attr(755,root,root) %{_libdir}/libgmime-2.0.so | |
162 | %{_libdir}/libgmime-2.0.la | |
163 | %attr(755,root,root) %{_libdir}/gmimeConf.sh | |
164 | %{_pkgconfigdir}/gmime-2.0.pc | |
165 | %{_includedir}/gmime-2.0 | |
7a13a80f JB |
166 | |
167 | %files static | |
168 | %defattr(644,root,root,755) | |
fdd96852 | 169 | %{_libdir}/libgmime-2.0.a |
16187821 MB |
170 | |
171 | %files apidocs | |
172 | %defattr(644,root,root,755) | |
173 | %{_gtkdocdir}/gmime | |
ef085262 | 174 | |
ae22027e | 175 | %if %{with dotnet} |
fdd96852 | 176 | %files -n dotnet-gmime22-sharp |
1df1aae6 | 177 | %defattr(644,root,root,755) |
a0f9f151 | 178 | %{_prefix}/lib/mono/gac/gmime-sharp |
1df1aae6 | 179 | |
fdd96852 | 180 | %files -n dotnet-gmime22-sharp-devel |
1df1aae6 | 181 | %defattr(644,root,root,755) |
fdd96852 MB |
182 | %{_prefix}/lib/mono/gmime-sharp |
183 | %{_datadir}/gapi-2.0/gmime-api.xml | |
184 | %{_pkgconfigdir}/gmime-sharp.pc | |
ae22027e | 185 | %endif |