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