]> git.pld-linux.org Git - packages/libhsts.git/blame - libhsts.spec
- rename man bcond to pandoc and install pre-built man pages on x32
[packages/libhsts.git] / libhsts.spec
CommitLineData
a46edabd 1#
b21f366a 2# Conditional build:
0723f2a9 3%bcond_with pandoc # build man pages with pandoc
b21f366a
JR
4%bcond_without tests # build without tests
5#
6%ifarch x32
0723f2a9 7%undefine with_pandoc
b21f366a 8%endif
a46edabd
AM
9Summary: C library to access the HSTS preload list
10Name: libhsts
11Version: 0.1.0
0723f2a9 12Release: 3
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
0723f2a9 19%{?with_pandoc: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
0723f2a9
JR
90%if %{without pandoc}
91install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3}
92cp -p docs/man/man1/hsts*.1 $RPM_BUILD_ROOT%{_mandir}/man1
93cp -p docs/man/man3/libhsts.3 $RPM_BUILD_ROOT%{_mandir}/man3
94%endif
95
a46edabd
AM
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%post -p /sbin/ldconfig
100%postun -p /sbin/ldconfig
101
102%files
103%defattr(644,root,root,755)
104%doc AUTHORS NEWS
105%attr(755,root,root) %{_bindir}/hsts
106%attr(755,root,root) %{_libdir}/libhsts.so.*.*
107%attr(755,root,root) %ghost %{_libdir}/libhsts.so.0
108%{_mandir}/man1/hsts.1*
109%{_mandir}/man1/hsts-make-dafsa.1*
110
111%files devel
112%defattr(644,root,root,755)
113%attr(755,root,root) %{_libdir}/libhsts.so
114%{_includedir}/libhsts.h
115%{_libdir}/libhsts.la
116%{_pkgconfigdir}/libhsts.pc
117%{_mandir}/man3/libhsts.3*
118
119%files static
120%defattr(644,root,root,755)
121%{_libdir}/libhsts.a
This page took 0.089503 seconds and 4 git commands to generate.