]> git.pld-linux.org Git - packages/gnutls.git/blame_incremental - gnutls.spec
- updated to 3.0.9
[packages/gnutls.git] / gnutls.spec
... / ...
CommitLineData
1#
2# Conditional build:
3%bcond_with gcrypt # use gcrypt crypto backend instead of nettle (broken or withdrawn?)
4#
5Summary: The GNU Transport Layer Security Library
6Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
7Name: gnutls
8Version: 3.0.9
9Release: 1
10License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools)
11Group: Libraries
12Source0: ftp://ftp.gnutls.org/pub/gnutls/%{name}-%{version}.tar.xz
13# Source0-md5: 7e5d749f28eda1c781c89a2e520913c8
14Patch0: %{name}-info.patch
15Patch1: %{name}-link.patch
16Patch2: %{name}-pl.po-update.patch
17URL: http://www.gnu.org/software/gnutls/
18BuildRequires: autoconf >= 2.61
19BuildRequires: automake >= 1:1.11
20BuildRequires: gettext-devel >= 0.17
21BuildRequires: gtk-doc >= 1.1
22BuildRequires: guile-devel >= 5:2.0
23BuildRequires: libcfg+-devel
24%{?with_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.0}
25BuildRequires: libidn-devel
26BuildRequires: libstdc++-devel
27BuildRequires: libtasn1-devel >= 2.10
28BuildRequires: libtool >= 2:1.5
29%{!?with_gcrypt:BuildRequires: nettle-devel >= 2.4}
30# miniopencdk is included in sources and currently maintained
31# as part of gnutls, not external package
32#BuildRequires: opencdk-devel >= 0.6.6
33BuildRequires: p11-kit-devel >= 0.4
34BuildRequires: pkgconfig
35BuildRequires: readline-devel
36BuildRequires: rpmbuild(macros) >= 1.383
37BuildRequires: tar >= 1:1.22
38BuildRequires: texinfo >= 4.8
39BuildRequires: xz
40BuildRequires: zlib-devel
41Requires(post,postun): /sbin/ldconfig
42%{?with_gcrypt:Requires: libgcrypt >= 1.4.0}
43Requires: libtasn1 >= 2.10
44%{!?with_gcrypt:Requires: nettle >= 2.4}
45#Requires: opencdk >= 0.6.6
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48%description
49GnuTLS is a project that aims to develop a library which provides a
50secure layer, over a reliable transport layer (ie. TCP/IP). Currently
51the gnuTLS library implements the proposed standards by the IETF's TLS
52working group.
53
54%description -l pl.UTF-8
55GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
56powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
57Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
58grupę roboczą IETF TLS.
59
60%package devel
61Summary: Header files etc to develop gnutls applications
62Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
63License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
64Group: Development/Libraries
65Requires: %{name} = %{version}-%{release}
66%{?with_gcrypt:Requires: libgcrypt-devel >= 1.4.0}
67Requires: libtasn1-devel >= 2.10
68%{!?with_gcrypt:Requires: nettle-devel >= 2.4}
69#Requires: opencdk-devel >= 0.6.6
70Requires: p11-kit-devel >= 0.4
71Requires: zlib-devel
72
73%description devel
74Header files etc to develop gnutls applications.
75
76%description devel -l pl.UTF-8
77Pliki nagłówkowe i inne do gnutls.
78
79%package static
80Summary: Static gnutls library
81Summary(pl.UTF-8): Biblioteka statyczna gnutls
82License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
83Group: Development/Libraries
84Requires: %{name}-devel = %{version}-%{release}
85
86%description static
87Static gnutls library.
88
89%description static -l pl.UTF-8
90Biblioteka statyczna gnutls.
91
92%package c++
93Summary: libgnutlsxx - C++ interface to gnutls library
94Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
95License: LGPL v2.1+
96Group: Libraries
97Requires: %{name} = %{version}-%{release}
98
99%description c++
100libgnutlsxx - C++ interface to gnutls library.
101
102%description c++ -l pl.UTF-8
103libgnutlsxx - interfejs C++ do biblioteki gnutls.
104
105%package c++-devel
106Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
107Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
108License: LGPL v2.1+
109Group: Development/Libraries
110Requires: %{name}-c++ = %{version}-%{release}
111Requires: %{name}-devel = %{version}-%{release}
112Requires: libstdc++-devel
113
114%description c++-devel
115Header files for libgnutlsxx, a C++ interface to gnutls library.
116
117%description c++-devel -l pl.UTF-8
118Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
119
120%package c++-static
121Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
122Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
123License: LGPL v2.1+
124Group: Development/Libraries
125Requires: %{name}-c++-devel = %{version}-%{release}
126
127%description c++-static
128Static version of libgnutlsxx, a C++ interface to gnutls library.
129
130%description c++-static -l pl.UTF-8
131Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
132
133%package -n guile-gnutls
134Summary: Guile bindings for GnuTLS
135Summary(pl.UTF-8): Wiązania Guile do GnuTLS
136License: LGPL v2.1+
137Group: Development/Languages
138Requires: %{name} = %{version}-%{release}
139Requires: guile >= 5:2.0
140
141%description -n guile-gnutls
142Guile bindings for GnuTLS.
143
144%description -n guile-gnutls -l pl.UTF-8
145Wiązania Guile do GnuTLS.
146
147%prep
148%setup -q
149%patch0 -p1
150%patch1 -p1
151%patch2 -p1
152
153%{__rm} po/stamp-po
154
155%build
156%{__libtoolize}
157%{__aclocal} -I m4 -I gl/m4
158%{__autoconf}
159%{__autoheader}
160%{__automake}
161%configure \
162 --disable-silent-rules \
163 %{?with_gcrypt:--with-libgcrypt}
164
165%{__make}
166
167%install
168rm -rf $RPM_BUILD_ROOT
169
170%{__make} install \
171 DESTDIR=$RPM_BUILD_ROOT
172
173# although libgnutls.la is obsoleted by pkg-config, there is
174# .pc file missing for libgnutls-openssl, and it needs libgnutls.la
175
176# guile module - dynamic only
177%{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
178
179rm -f $RPM_BUILD_ROOT%{_infodir}/dir
180
181%find_lang %{name}
182
183%clean
184rm -rf $RPM_BUILD_ROOT
185
186%post
187/sbin/ldconfig
188[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
189
190%postun
191/sbin/ldconfig
192[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
193
194%post c++ -p /sbin/ldconfig
195%postun c++ -p /sbin/ldconfig
196
197%post -n guile-gnutls -p /sbin/ldconfig
198%postun -n guile-gnutls -p /sbin/ldconfig
199
200%files -f %{name}.lang
201%defattr(644,root,root,755)
202%doc AUTHORS ChangeLog NEWS README THANKS
203%attr(755,root,root) %{_bindir}/certtool
204%attr(755,root,root) %{_bindir}/crywrap
205%attr(755,root,root) %{_bindir}/gnutls-*
206%attr(755,root,root) %{_bindir}/p11tool
207%attr(755,root,root) %{_bindir}/psktool
208%attr(755,root,root) %{_bindir}/srptool
209%attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
210%attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
211%attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
212%attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
213%{_mandir}/man1/certtool.1*
214%{_mandir}/man1/gnutls-*.1*
215%{_mandir}/man1/p11tool.1*
216%{_mandir}/man1/psktool.1*
217%{_mandir}/man1/srptool.1*
218%{_infodir}/gnutls.info*
219%{_infodir}/gnutls-*.png
220%{_infodir}/pkcs11-vision.png
221
222%files devel
223%defattr(644,root,root,755)
224%attr(755,root,root) %{_libdir}/libgnutls.so
225%attr(755,root,root) %{_libdir}/libgnutls-openssl.so
226%{_libdir}/libgnutls.la
227%{_libdir}/libgnutls-openssl.la
228%{_includedir}/gnutls
229%exclude %{_includedir}/gnutls/gnutlsxx.h
230%{_pkgconfigdir}/gnutls.pc
231%{_mandir}/man3/gnutls_*.3*
232
233%files static
234%defattr(644,root,root,755)
235%{_libdir}/libgnutls.a
236%{_libdir}/libgnutls-openssl.a
237
238%files c++
239%defattr(644,root,root,755)
240%attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
241%attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
242
243%files c++-devel
244%defattr(644,root,root,755)
245%attr(755,root,root) %{_libdir}/libgnutlsxx.so
246%{_libdir}/libgnutlsxx.la
247%{_includedir}/gnutls/gnutlsxx.h
248
249%files c++-static
250%defattr(644,root,root,755)
251%{_libdir}/libgnutlsxx.a
252
253%files -n guile-gnutls
254%defattr(644,root,root,755)
255%attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
256%{_datadir}/guile/site/gnutls.scm
257%{_datadir}/guile/site/gnutls
258%{_infodir}/gnutls-guile.info*
This page took 0.039736 seconds and 4 git commands to generate.