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