]> git.pld-linux.org Git - packages/gmime22.git/blame - gmime22.spec
- release 2
[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
7d7f14e0 8%{?with_dotnet: %include /usr/lib/rpm/macros.mono}
74822717 9Summary: GMIME library
dc026c15 10Summary(pl.UTF-8): Biblioteka GMIME
320494f4 11Name: gmime
17ad4485 12Version: 2.2.21
e8ed551a 13Release: 2
16c71dc2 14License: GPL v2+
b43b24b0 15Group: Libraries
5cc702b0 16Source0: http://spruce.sourceforge.net/gmime/sources/v2.2/gmime-%{version}.tar.gz
17ad4485 17# Source0-md5: 5dca78fabb4808ba3e536a380f6c10d5
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
a0d8aa03 23# disabled by default, broken and very incomplete
3f907de9 24#BuildRequires: gtk-doc >= 1.0
44a4bad7 25BuildRequires: libtool
afa25620 26BuildRequires: pkgconfig
471bdf54 27BuildRequires: zlib-devel
df6e21d1 28%if %{with dotnet}
5cc702b0 29BuildRequires: dotnet-gtk-sharp2-devel >= 2.9.0
37756320 30BuildRequires: mono-csharp >= 1.1.16.1
df6e21d1 31%endif
320494f4 32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ef085262 33
34%description
35This library allows you to manipulate MIME messages.
36
e50828cc
JR
37%description -l pl.UTF-8
38Ta biblioteka pozwala na manipulowanie wiadomościami MIME.
0131add0 39
ef085262 40%package devel
b43b24b0 41Summary: Header files to develop libgmime applications
dc026c15 42Summary(pl.UTF-8): Pliki nagłówkowe do tworzenia programów z użyciem libgmime
320494f4 43Group: Development/Libraries
9488f1eb 44Requires: %{name} = %{version}-%{release}
c02b6c29 45Requires: glib2-devel >= 1:2.11.4
5cc702b0 46#Requires: gtk-doc-common
471bdf54 47Requires: zlib-devel
ef085262 48
49%description devel
b43b24b0 50Header files develop libgmime applications.
ef085262 51
e50828cc
JR
52%description devel -l pl.UTF-8
53Pliki nagłówkowe do tworzenia programów z użyciem libgmime.
0131add0 54
320494f4 55%package static
b43b24b0 56Summary: Static gmime library
dc026c15 57Summary(pl.UTF-8): Statyczna biblioteka gmime
320494f4 58Group: Development/Libraries
9488f1eb 59Requires: %{name}-devel = %{version}-%{release}
ef085262 60
320494f4 61%description static
b43b24b0 62Static gmime library.
ef085262 63
e50828cc 64%description static -l pl.UTF-8
b43b24b0 65Statyczna biblioteka gmime.
18ab2d20 66
1df1aae6
MK
67%package -n dotnet-gmime-sharp
68Summary: .NET language bindings for gmime
dc026c15 69Summary(pl.UTF-8): Wiązania gmime dla .NET
1df1aae6 70Group: Development/Libraries
797d6e91 71Requires: dotnet-gtk-sharp2 >= 2.9.0
5cc702b0 72Requires: mono >= 1.1.16.1
1df1aae6
MK
73Requires: %{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
79Wiązania gmime dla .NET
1df1aae6
MK
80
81%package -n dotnet-gmime-sharp-devel
82Summary: Development part of dotnet-gmime-sharp
dc026c15 83Summary(pl.UTF-8): Część dla programistów dotnet-gmime-sharp
1df1aae6 84Group: Development/Libraries
1df1aae6
MK
85Requires: dotnet-%{name}-sharp = %{epoch}:%{version}-%{release}
86
87%description -n dotnet-gmime-sharp-devel
88Development part of dotnet-gmime-sharp
89
e50828cc
JR
90%description -n dotnet-gmime-sharp-devel -l pl.UTF-8
91Część dla programistów dotnet-gmime-sharp
1df1aae6 92
ef085262 93%prep
6bdf2934 94%setup -q
320494f4 95%patch0 -p1
ef085262 96
97%build
2354f568 98touch 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
111rm -rf $RPM_BUILD_ROOT
112
320494f4 113%{__make} install \
7910b378
JB
114 DESTDIR=$RPM_BUILD_ROOT \
115 HTML_DIR=%{_gtkdocdir}
320494f4 116
e53b2ced 117rm -f $RPM_BUILD_ROOT%{_bindir}/uu{de,en}code
118
ef085262 119%clean
120rm -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
This page took 0.04773 seconds and 4 git commands to generate.