/[packages]/cauldron/libdigidocpp/current/SPECS/libdigidocpp.spec
ViewVC logotype

Contents of /cauldron/libdigidocpp/current/SPECS/libdigidocpp.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 193310 - (show annotations) (download)
Sun Jan 8 14:19:43 2012 UTC (12 years, 2 months ago) by sander85
File size: 2316 byte(s)
new version: 3.5.0
1 %define major 0
2 %define libname %mklibname digidocpp %major
3 %define develname %mklibname digidocpp -d
4
5 Name: libdigidocpp
6 Version: 3.5.0
7 Release: %mkrel 1
8 Summary: Library for creating and validating BDoc and DDoc containers
9
10 Group: System/Libraries
11 License: LGPLv2
12 URL: http://id.eesti.ee
13 # svn export https://svn.eesti.ee/projektid/idkaart_public/branches/3.5/libdigidocpp/ libdigidocpp-3.5.0 && tar cjf libdigidocpp-3.5.0.tar.bz2 libdigidocpp-3.5.0
14 Source: %{name}-%{version}.tar.bz2
15
16 BuildRequires: cmake
17 BuildRequires: libdigidoc-devel
18 BuildRequires: xml-security-c-devel
19 BuildRequires: xsd-devel
20 Requires: %{_lib}digidoc2
21 Requires: esteidcerts
22
23 %description
24 libdigidocpp is a C++ library for reading, validating, and creating BDoc and
25 DDoc containers. These file formats are widespread in Estonia where they are
26 used for storing legally binding digital signatures.
27
28
29 %package -n %libname
30 Group: System/Libraries
31 Summary: Library for creating and validating bdoc and ddoc containers
32 Requires: %{name} >= %{version}-%{release}
33
34 %description -n %libname
35 libdigidocpp is a C++ library for reading, validating, and creating BDoc and
36 DDoc containers. These file formats are widespread in Estonia where they are
37 used for storing legally binding digital signatures.
38
39
40 %package -n %develname
41 Summary: Development files for %{name}
42 Group: Development/C++
43 Requires: %{libname} = %{version}-%{release}
44 Requires: libdigidoc-devel
45 Requires: libp11-devel
46 Requires: openssl-devel
47 Requires: xml-security-c-devel
48 Requires: xsd-devel
49 Provides: %{name}-devel = %{version}-%{release}
50
51 %description -n %develname
52 This package contains libraries and header files for
53 developing applications that use %{name}.
54
55
56 %prep
57 %setup -q
58
59
60 %build
61 mkdir -p %{_target_platform}
62 pushd %{_target_platform}
63 %{cmake} ../..
64 popd
65
66 %make -C %{_target_platform}/build
67
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 %makeinstall_std -C %{_target_platform}/build
72
73 # Those certs come from another package
74 rm -rf %{buildroot}%{_datadir}/esteid/certs
75
76
77 %files
78 %{_sysconfdir}/digidocpp/
79 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/digidocpp/digidocpp.conf
80 %{_bindir}/digidoc-*
81 %doc README.linux
82
83 %files -n %libname
84 %{_libdir}/*.so.%{major}
85 %{_libdir}/*.so.3.5
86
87 %files -n %develname
88 %{_includedir}/digidocpp/
89 %{_libdir}/pkgconfig/lib*.pc
90 %{_libdir}/*.so
91
92

  ViewVC Help
Powered by ViewVC 1.1.30