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