]>
Commit | Line | Data |
---|---|---|
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 |
9 | Summary: C library to access the HSTS preload list |
10 | Name: libhsts | |
11 | Version: 0.1.0 | |
0723f2a9 | 12 | Release: 3 |
a46edabd AM |
13 | License: BSD |
14 | Group: Libraries | |
15 | Source0: https://gitlab.com/rockdaboot/libhsts/uploads/4753f61b5a3c6253acf4934217816e3f/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: 5599c8b2530df6b26ed5e766a8d9ed3c | |
17 | URL: https://gitlab.com/rockdaboot/libhsts | |
18 | BuildRequires: doxygen | |
0723f2a9 | 19 | %{?with_pandoc:BuildRequires: pandoc} |
a46edabd AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | The HSTS preload list is a list of domains that support HTTPS. The | |
24 | list is compiled by Google and is utilised by Chrome, Firefox and | |
25 | others. With this information, a HTTP client may contact a website | |
26 | without trying a plain-text HTTP connection first. It prevents | |
27 | interception with redirects that take place over HTTP. None of the | |
28 | sent data will ever be unencrypted. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files and develpment documentation for libhsts | |
32 | Summary(es.UTF-8): Arquivos de cabeçalho e bibliotecas de desenvolvimento para libhsts | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumetacja do libhsts | |
34 | Summary(pt_BR.UTF-8): Bibliotecas e arquivos de inclusão para a libhsts | |
35 | Summary(ru.UTF-8): Хедеры и библиотеки програмиста для libhsts | |
36 | Summary(uk.UTF-8): Хедери та бібліотеки програміста для libhsts | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{?epoch}:%{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | The HSTS preload list is a list of domains that support HTTPS. The | |
42 | list is compiled by Google and is utilised by Chrome, Firefox and | |
43 | others. With this information, a HTTP client may contact a website | |
44 | without trying a plain-text HTTP connection first. It prevents | |
45 | interception with redirects that take place over HTTP. None of the | |
46 | sent data will ever be unencrypted. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe i dokumentacja do libhsts. | |
50 | ||
a46edabd AM |
51 | %package static |
52 | Summary: Static libhsts library | |
53 | Summary(es.UTF-8): Biblioteca estática usada no desenvolvimento de aplicativos com libhsts | |
54 | Summary(pl.UTF-8): Biblioteka statyczna libhsts | |
55 | Summary(pt_BR.UTF-8): Biblioteca estática de desenvolvimento | |
56 | Summary(ru.UTF-8): Статическая библиотека libhsts | |
57 | Summary(uk.UTF-8): Статична бібліотека libhsts | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{?epoch}:%{version}-%{release} | |
60 | ||
61 | %description static | |
e3252577 | 62 | Static libhsts library. |
a46edabd AM |
63 | |
64 | %description static -l pl.UTF-8 | |
65 | Biblioteka 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 | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
0723f2a9 JR |
90 | %if %{without pandoc} |
91 | install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3} | |
92 | cp -p docs/man/man1/hsts*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
93 | cp -p docs/man/man3/libhsts.3 $RPM_BUILD_ROOT%{_mandir}/man3 | |
94 | %endif | |
95 | ||
a46edabd AM |
96 | %clean |
97 | rm -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 |