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