/[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 533352 - (show annotations) (download)
Sat Oct 19 15:28:57 2013 UTC (6 years, 8 months ago) by umeabot
File size: 2402 byte(s)
Mageia 4 Mass Rebuild
1 %define major 0
2 %define libname %mklibname digidocpp %major
3 %define develname %mklibname digidocpp -d
4
5 Name: libdigidocpp
6 Version: 3.7.2
7 Release: %mkrel 2
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 # VERSION=3.7.2 && svn export https://svn.eesti.ee/projektid/idkaart_public/branches/$VERSION/libdigidocpp/ libdigidocpp-$VERSION && tar cjf libdigidocpp-$VERSION.tar.bz2 libdigidocpp-$VERSION
14 Source: %{name}-%{version}.tar.bz2
15
16 BuildRequires: cmake
17 BuildRequires: pkgconfig(libdigidoc)
18 BuildRequires: xml-security-c-devel
19 BuildRequires: xsd-devel
20
21 Requires: %{_lib}digidoc2
22 Requires: esteidcerts
23
24 %description
25 libdigidocpp is a C++ library for reading, validating, and creating BDoc and
26 DDoc containers. These file formats are widespread in Estonia where they are
27 used for storing legally binding digital signatures.
28
29
30 %package -n %libname
31 Group: System/Libraries
32 Summary: Library for creating and validating bdoc and ddoc containers
33 Requires: %{name} >= %{version}-%{release}
34
35 %description -n %libname
36 libdigidocpp is a C++ library for reading, validating, and creating BDoc and
37 DDoc containers. These file formats are widespread in Estonia where they are
38 used for storing legally binding digital signatures.
39
40
41 %package -n %develname
42 Summary: Development files for %{name}
43 Group: Development/C++
44 Requires: %{libname} = %{version}-%{release}
45 Requires: libdigidoc-devel
46 Requires: libp11-devel
47 Requires: openssl-devel
48 Requires: xml-security-c-devel
49 Requires: xsd-devel
50 Provides: %{name}-devel = %{version}-%{release}
51
52 %description -n %develname
53 This package contains libraries and header files for
54 developing applications that use %{name}.
55
56
57 %prep
58 %setup -q
59
60
61 %build
62 mkdir -p %{_target_platform}
63 pushd %{_target_platform}
64 %{cmake} -DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} ../..
65 popd
66
67 %make -C %{_target_platform}/build
68
69
70 %install
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 %dir %{_sysconfdir}/digidocpp/
79 %config %{_sysconfdir}/digidocpp/digidocpp.conf
80 %{_sysconfdir}/digidocpp/schema/
81 %{_bindir}/digidoc-*
82 %{_mandir}/man1/digidoc-tool.1.*
83
84 %files -n %libname
85 %{_libdir}/*.so.%{major}
86 %{_libdir}/*.so.%{version}
87
88 %files -n %develname
89 %{_includedir}/digidocpp/
90 %{_libdir}/pkgconfig/lib*.pc
91 %{_libdir}/*.so

  ViewVC Help
Powered by ViewVC 1.1.28