]> git.pld-linux.org Git - packages/libdigidoc.git/blob - libdigidoc.spec
cec172f7b72fe0a6557cbc9b09c5781692a9bef1
[packages/libdigidoc.git] / libdigidoc.spec
1 Summary:        XAdES digital signature standard library
2 Summary(pl.UTF-8):      Biblioteka obsługująca standard podpisów cyfrowych XAdES
3 Name:           libdigidoc
4 # Note: 3.10.3 is tagged, but release tarball is not published;
5 # as it doesn't have substantial improvements on Linux and requires git submodules,
6 # stick to 3.10.2 for now.
7 Version:        3.10.2
8 Release:        2
9 License:        LGPL v2.1+
10 Group:          Libraries
11 #Source0Download: https://github.com/open-eid/libdigidoc/releases
12 Source0:        https://github.com/open-eid/libdigidoc/releases/download/v%{version}/%{name}-%{version}.tar.gz
13 # Source0-md5:  987a21c44a8b627794b6f810bf15465f
14 Patch0:         %{name}-cmake.patch
15 URL:            https://github.com/open-eid/libdigidoc
16 BuildRequires:  cmake >= 2.8
17 BuildRequires:  libxml2-devel >= 2
18 BuildRequires:  openssl-devel
19 BuildRequires:  pkgconfig
20 BuildRequires:  zlib-devel
21 Requires:       ca-certificates
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 DigiDoc is a generic library implementing the XAdES digital signature
26 standard. It allows to create, sign, verify, and modify digidoc XML
27 containers. Support for doing hardware cryptographic signing
28 operations is provided via PKCS#11.
29
30 %description -l pl.UTF-8
31 DigiDoc to ogólna biblioteka implementująca standard podpisów
32 cyfrowych XAdES. Pozwala na tworzenie, podpisywanie, sprawdzanie i
33 modyfikowanie kontenerów XML digidoc. Obsługa podpisywania przy użyciu
34 kryptografii sprzętowej jest zapewniana poprzez PKCS#11.
35
36 %package devel
37 Summary:        Header files for libdigidoc library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libdigidoc
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       openssl-devel
42 Requires:       libxml2-devel >= 2
43 Obsoletes:      libdigidoc-static
44
45 %description devel
46 Header files for libdigidoc library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libdigidoc.
50
51 %package apidocs
52 Summary:        Development documentation for libdigidoc
53 Summary(pl.UTF-8):      Dokumentacja programistyczna biblioteki libdigidoc
54 Group:          Documentation
55
56 %description apidocs
57 Development documentation for libdigidoc.
58
59 %description apidocs -l pl.UTF-8
60 Dokumentacja programistyczna biblioteki libdigidoc.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65
66 %build
67 install -d build
68 cd build
69 %cmake ..
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} -C build install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 # certs come from ca-certificates package
79 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/*.crt
80
81 %clean
82 rm -rf $RPM_BUILD_ROOT
83
84 %post   -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
86
87 %files
88 %defattr(644,root,root,755)
89 %doc AUTHORS README.md RELEASE-NOTES.txt
90 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/digidoc.conf
91 %attr(755,root,root) %{_libdir}/libdigidoc.so.*.*
92 %attr(755,root,root) %ghost %{_libdir}/libdigidoc.so.2
93 %attr(755,root,root) %{_bindir}/cdigidoc
94 %{_mandir}/man1/cdigidoc.1*
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libdigidoc.so
99 %{_includedir}/libdigidoc
100 %{_pkgconfigdir}/libdigidoc.pc
101
102 %files apidocs
103 %defattr(644,root,root,755)
104 %doc doc/{SK-CDD-PRG-GUIDE.pdf,SK-COM-PRG-GUIDE.pdf,sample_files_CDD.zip}
This page took 0.089643 seconds and 3 git commands to generate.