]> git.pld-linux.org Git - packages/gmime22.git/blame - gmime22.spec
- updated to 2.4.2; merged changes from DEVEL
[packages/gmime22.git] / gmime22.spec
CommitLineData
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 9Summary: GMIME library
dc026c15 10Summary(pl.UTF-8): Biblioteka GMIME
320494f4 11Name: gmime
16187821 12Version: 2.4.2
3f512692
JB
13Release: 1
14License: LGPL v2.1+
b43b24b0 15Group: Libraries
16187821
MB
16Source0: http://ftp.gnome.org/pub/GNOME/sources/gmime/2.4/%{name}-%{version}.tar.bz2
17# Source0-md5: 070d61056d20318dadc0465b61fd1d27
afa25620 18Patch0: %{name}-link.patch
7910b378 19URL: http://spruce.sourceforge.net/gmime/
55c4e464 20BuildRequires: autoconf
320494f4 21BuildRequires: automake
37756320 22BuildRequires: glib2-devel >= 1:2.12.1
16187821 23BuildRequires: gtk-doc >= 1.8
44a4bad7 24BuildRequires: libtool
afa25620 25BuildRequires: pkgconfig
471bdf54 26BuildRequires: zlib-devel
df6e21d1 27%if %{with dotnet}
5cc702b0 28BuildRequires: dotnet-gtk-sharp2-devel >= 2.9.0
37756320 29BuildRequires: mono-csharp >= 1.1.16.1
df6e21d1 30%endif
320494f4 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ef085262 32
33%description
34This library allows you to manipulate MIME messages.
35
e50828cc
JR
36%description -l pl.UTF-8
37Ta biblioteka pozwala na manipulowanie wiadomościami MIME.
0131add0 38
ef085262 39%package devel
b43b24b0 40Summary: Header files to develop libgmime applications
dc026c15 41Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z użyciem libgmime
320494f4 42Group: Development/Libraries
9488f1eb 43Requires: %{name} = %{version}-%{release}
16187821 44Requires: glib2-devel >= 1:2.12.1
471bdf54 45Requires: zlib-devel
ef085262 46
47%description devel
b43b24b0 48Header files develop libgmime applications.
ef085262 49
e50828cc
JR
50%description devel -l pl.UTF-8
51Pliki nagłówkowe do tworzenia programów z użyciem libgmime.
0131add0 52
320494f4 53%package static
b43b24b0 54Summary: Static gmime library
dc026c15 55Summary(pl.UTF-8): Statyczna biblioteka gmime
320494f4 56Group: Development/Libraries
9488f1eb 57Requires: %{name}-devel = %{version}-%{release}
ef085262 58
320494f4 59%description static
b43b24b0 60Static gmime library.
ef085262 61
e50828cc 62%description static -l pl.UTF-8
b43b24b0 63Statyczna biblioteka gmime.
18ab2d20 64
16187821
MB
65%package apidocs
66Summary: gmime library API documentation
67Summary(pl.UTF-8): Dokumentacja API biblioteki gmime
68Group: Documentation
69Requires: gtk-doc-common
70
71%description apidocs
72gmime library API documentation.
73
74%description apidocs -l pl.UTF-8
75Dokumentacja API biblioteki gmime.
76
1df1aae6
MK
77%package -n dotnet-gmime-sharp
78Summary: .NET language bindings for gmime
dc026c15 79Summary(pl.UTF-8): Wiązania gmime dla .NET
1df1aae6 80Group: Development/Libraries
3f512692 81Requires: %{name} = %{version}-%{release}
797d6e91 82Requires: dotnet-gtk-sharp2 >= 2.9.0
5cc702b0 83Requires: 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
89Wiązania gmime dla .NET
1df1aae6
MK
90
91%package -n dotnet-gmime-sharp-devel
92Summary: Development part of dotnet-gmime-sharp
dc026c15 93Summary(pl.UTF-8): Część dla programistów dotnet-gmime-sharp
1df1aae6 94Group: Development/Libraries
3f512692 95Requires: dotnet-%{name}-sharp = %{version}-%{release}
1df1aae6
MK
96
97%description -n dotnet-gmime-sharp-devel
16187821 98Development part of dotnet-gmime-sharp.
1df1aae6 99
e50828cc 100%description -n dotnet-gmime-sharp-devel -l pl.UTF-8
16187821 101Część 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
121rm -rf $RPM_BUILD_ROOT
122
320494f4 123%{__make} install \
7910b378 124 DESTDIR=$RPM_BUILD_ROOT \
16187821 125 HTML_DIR=%{_gtkdocdir}/gmime
320494f4 126
e53b2ced 127rm -f $RPM_BUILD_ROOT%{_bindir}/uu{de,en}code
128
ef085262 129%clean
130rm -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
This page took 0.105966 seconds and 4 git commands to generate.