]> git.pld-linux.org Git - packages/libhsts.git/blame - libhsts.spec
- no pandoc on x32, so no man pages
[packages/libhsts.git] / libhsts.spec
CommitLineData
a46edabd 1#
b21f366a
JR
2# Conditional build:
3%bcond_with man # build man pages (requires pandoc)
4%bcond_without tests # build without tests
5#
6%ifarch x32
7%undefine with_man
8%endif
a46edabd
AM
9Summary: C library to access the HSTS preload list
10Name: libhsts
11Version: 0.1.0
b21f366a 12Release: 2
a46edabd
AM
13License: BSD
14Group: Libraries
15Source0: https://gitlab.com/rockdaboot/libhsts/uploads/4753f61b5a3c6253acf4934217816e3f/%{name}-%{version}.tar.gz
16# Source0-md5: 5599c8b2530df6b26ed5e766a8d9ed3c
17URL: https://gitlab.com/rockdaboot/libhsts
18BuildRequires: doxygen
b21f366a 19%{?with_man:BuildRequires: pandoc}
a46edabd
AM
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23The HSTS preload list is a list of domains that support HTTPS. The
24list is compiled by Google and is utilised by Chrome, Firefox and
25others. With this information, a HTTP client may contact a website
26without trying a plain-text HTTP connection first. It prevents
27interception with redirects that take place over HTTP. None of the
28sent data will ever be unencrypted.
29
30%package devel
31Summary: Header files and develpment documentation for libhsts
32Summary(es.UTF-8): Arquivos de cabeçalho e bibliotecas de desenvolvimento para libhsts
33Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libhsts
34Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para a libhsts
35Summary(ru.UTF-8): Хедеры и библиотеки програмиста для libhsts
36Summary(uk.UTF-8): Хедери та бібліотеки програміста для libhsts
37Group: Development/Libraries
38Requires: %{name} = %{?epoch}:%{version}-%{release}
39
40%description devel
41The HSTS preload list is a list of domains that support HTTPS. The
42list is compiled by Google and is utilised by Chrome, Firefox and
43others. With this information, a HTTP client may contact a website
44without trying a plain-text HTTP connection first. It prevents
45interception with redirects that take place over HTTP. None of the
46sent data will ever be unencrypted.
47
48%description devel -l pl.UTF-8
49Pliki nagłówkowe i dokumentacja do libhsts.
50
a46edabd
AM
51%package static
52Summary: Static libhsts library
53Summary(es.UTF-8): Biblioteca estática usada no desenvolvimento de aplicativos com libhsts
54Summary(pl.UTF-8): Biblioteka statyczna libhsts
55Summary(pt_BR.UTF-8): Biblioteca estática de desenvolvimento
56Summary(ru.UTF-8): Статическая библиотека libhsts
57Summary(uk.UTF-8): Статична бібліотека libhsts
58Group: Development/Libraries
59Requires: %{name}-devel = %{?epoch}:%{version}-%{release}
60
61%description static
e3252577 62Static libhsts library.
a46edabd
AM
63
64%description static -l pl.UTF-8
65Biblioteka statyczna libhsts.
66
67%description static -l ru.UTF-8
68Статическая библиотека, необходимая для программирования с libhsts.
69
70%description static -l uk.UTF-8
71Статична бібліотека, необхідна для програмування з libhsts.
72
73%prep
74%setup -q
75
76%build
77%configure \
78 --disable-silent-rules
79
80%{__make}
81
82%{?with_tests:%{__make} check}
83
84%install
85rm -rf $RPM_BUILD_ROOT
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93%post -p /sbin/ldconfig
94%postun -p /sbin/ldconfig
95
96%files
97%defattr(644,root,root,755)
98%doc AUTHORS NEWS
99%attr(755,root,root) %{_bindir}/hsts
100%attr(755,root,root) %{_libdir}/libhsts.so.*.*
101%attr(755,root,root) %ghost %{_libdir}/libhsts.so.0
b21f366a 102%if %{with man}
a46edabd
AM
103%{_mandir}/man1/hsts.1*
104%{_mandir}/man1/hsts-make-dafsa.1*
b21f366a 105%endif
a46edabd
AM
106
107%files devel
108%defattr(644,root,root,755)
109%attr(755,root,root) %{_libdir}/libhsts.so
110%{_includedir}/libhsts.h
111%{_libdir}/libhsts.la
112%{_pkgconfigdir}/libhsts.pc
b21f366a 113%if %{with man}
a46edabd 114%{_mandir}/man3/libhsts.3*
b21f366a 115%endif
a46edabd
AM
116
117%files static
118%defattr(644,root,root,755)
119%{_libdir}/libhsts.a
This page took 0.135004 seconds and 4 git commands to generate.