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