/[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 128035 - (show annotations) (download)
Sat Jul 23 10:39:55 2011 UTC (12 years, 9 months ago) by sander85
File size: 2327 byte(s)
rebuild for new libp11
1 %define major 0
2 %define libname %mklibname digidocpp %major
3 %define develname %mklibname digidocpp -d
4
5 Name: libdigidocpp
6 Version: 3.1.0
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 # svn co https://svn.eesti.ee/projektid/idkaart_public/branches/3.4/libdigidocpp/ libdigidocpp-3.1.0 && tar cjf libdigidocpp-3.1.0.tar.bz2 libdigidocpp-3.1.0
14 Source: %{name}-%{version}.tar.bz2
15
16 BuildRequires: cmake
17 BuildRequires: libdigidoc-devel
18 BuildRequires: libp11-devel
19 BuildRequires: xml-security-c-devel
20 BuildRequires: xsd-devel
21 Requires: %{_lib}digidoc2
22 Requires: opensc
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 %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 %build
60 mkdir -p %{_target_platform}
61 pushd %{_target_platform}
62 %{cmake} ../..
63 popd
64
65 %make -C %{_target_platform}/build
66
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 %makeinstall_std -C %{_target_platform}/build
71
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76
77 %files
78 %defattr(-,root,root,-)
79 %{_sysconfdir}/digidocpp/
80 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/digidocpp/digidocpp.conf
81 %{_bindir}/digidoc-*
82 %doc README.linux
83
84
85 %files -n %libname
86 %defattr(-,root,root,-)
87 %{_libdir}/*.so.*
88
89
90 %files -n %develname
91 %defattr(-,root,root,-)
92 %{_includedir}/digidocpp/
93 %{_libdir}/pkgconfig/lib*.pc
94 %{_libdir}/*.so
95
96

  ViewVC Help
Powered by ViewVC 1.1.30