]>
Commit | Line | Data |
---|---|---|
836673a2 ER |
1 | # TODO |
2 | # - use ca-certificates package and drop /usr/share/libdigidoc/certs | |
3 | # | |
4 | # Conditional build: | |
5 | %bcond_with static_libs # build static libraries | |
6 | ||
46d7d535 AM |
7 | Summary: XAdES digital signature standard library |
8 | Name: libdigidoc | |
260d025c | 9 | Version: 3.9.1.1191 |
46d7d535 | 10 | Release: 1 |
836673a2 | 11 | License: LGPL v2+ |
46d7d535 | 12 | Group: Libraries |
260d025c ER |
13 | Source0: https://installer.id.ee/media/sources/%{name}-%{version}.tar.gz |
14 | # Source0-md5: ccf88b736dda572b051b7d7fef26984d | |
15 | URL: http://www.ria.ee/ | |
836673a2 | 16 | BuildRequires: cmake |
46d7d535 AM |
17 | BuildRequires: libxml2-devel |
18 | BuildRequires: openssl-devel | |
836673a2 | 19 | BuildRequires: zlib-devel |
46d7d535 AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
46d7d535 AM |
22 | %description |
23 | DigiDoc is a generic library implementing the XAdES digital signature | |
24 | standard. It allows to create, sign, verify, and modify digidoc XML | |
25 | containers. Support for doing hardware cryptographic signing | |
26 | operations is porivded via PKCS#11. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files and development documentation for libdigidoc | |
30 | Group: Development/Libraries | |
31 | ||
32 | %description devel | |
33 | Header files and development documentation for libdigidoc. | |
34 | ||
35 | %package static | |
36 | Summary: Static libdigidoc library | |
37 | Group: Development/Libraries | |
38 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
39 | ||
40 | %description static | |
41 | Static libdigidoc library. | |
42 | ||
43 | %prep | |
44 | %setup -q | |
45 | ||
46 | %build | |
836673a2 ER |
47 | install -d build |
48 | cd build | |
49 | %cmake .. | |
50 | %{__make} | |
46d7d535 AM |
51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
836673a2 | 54 | %{__make} -C build install \ |
46d7d535 AM |
55 | DESTDIR=$RPM_BUILD_ROOT |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %post -p /sbin/ldconfig | |
61 | %postun -p /sbin/ldconfig | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
260d025c | 65 | %doc AUTHORS README RELEASE-NOTES.txt |
46d7d535 | 66 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/digidoc.conf |
836673a2 ER |
67 | %attr(755,root,root) %{_libdir}/%{name}.so.*.* |
68 | %attr(755,root,root) %ghost %{_libdir}/%{name}.so.2 | |
69 | %attr(755,root,root) %{_bindir}/cdigidoc | |
260d025c | 70 | %{_mandir}/man1/cdigidoc.1* |
46d7d535 AM |
71 | |
72 | %files devel | |
260d025c | 73 | %doc doc/* |
46d7d535 | 74 | %defattr(644,root,root,755) |
836673a2 | 75 | %attr(755,root,root) %{_libdir}/%{name}.so |
46d7d535 AM |
76 | %{_includedir}/%{name} |
77 | %{_pkgconfigdir}/%{name}.pc | |
78 | ||
836673a2 | 79 | %if %{with static_libs} |
46d7d535 AM |
80 | %files static |
81 | %defattr(644,root,root,755) | |
82 | %{_libdir}/libdigidoc.a | |
836673a2 | 83 | %endif |