]>
Commit | Line | Data |
---|---|---|
92159e3c | 1 | Summary: Qt Cryptographic Architecture (QCA) Library |
f12f8c56 | 2 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) |
92159e3c | 3 | Name: qca |
796873fe | 4 | Version: 2.1.3 |
9aff6615 | 5 | Release: 4 |
92159e3c | 6 | License: LGPL v2.1 |
7 | Group: Libraries | |
9703bc0f | 8 | Source0: http://download.kde.org/stable/qca/%{version}/src/%{name}-%{version}.tar.xz |
796873fe | 9 | # Source0-md5: 5019cc29efcf828681cd93164238ce26 |
d625c23e | 10 | Patch0: openssl.patch |
9aff6615 | 11 | Patch1: qt5.patch |
92159e3c | 12 | URL: http://delta.affinix.com/qca/ |
18e276c8 WF |
13 | BuildRequires: Qt5Core-devel |
14 | BuildRequires: Qt5Gui-devel | |
15 | BuildRequires: Qt5Network-devel | |
16 | BuildRequires: Qt5Test-devel | |
9703bc0f WF |
17 | BuildRequires: QtCore-devel |
18 | BuildRequires: QtGui-devel | |
19 | BuildRequires: QtNetwork-devel | |
20 | BuildRequires: QtTest-devel | |
21 | BuildRequires: cmake >= 2.8.2 | |
92159e3c | 22 | BuildRequires: libstdc++-devel |
18e276c8 | 23 | BuildRequires: nss-devel |
92159e3c | 24 | BuildRequires: openssl-devel >= 0.9.7d |
c9566a15 JB |
25 | BuildRequires: qt4-build >= 4.3.3-3 |
26 | BuildRequires: qt4-qmake >= 4.3.3-3 | |
9703bc0f | 27 | BuildRequires: qt5-build |
f48ed202 | 28 | BuildRequires: which |
796873fe BS |
29 | Provides: qt4-plugin-qca-ossl = %{version} |
30 | Obsoletes: qt4-plugin-qca-cyrus-sasl | |
31 | Obsoletes: qt4-plugin-qca-gnupg | |
32 | Obsoletes: qt4-plugin-qca-ossl | |
92159e3c | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
36 | Qt Cryptographic Architecture (QCA) Library. | |
37 | ||
b4a1f0b7 | 38 | %description -l pl.UTF-8 |
92159e3c | 39 | Biblioteka Qt Cryptographic Architecture (QCA). |
40 | ||
41 | %package devel | |
42 | Summary: Qt Cryptographic Architecture (QCA) Library - development files | |
f12f8c56 | 43 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla programistów |
12b4f66c | 44 | Group: Development/Libraries |
45 | Requires: %{name} = %{version}-%{release} | |
e1737055 | 46 | Requires: QtCore-devel |
92159e3c | 47 | |
48 | %description devel | |
49 | Qt Cryptographic Architecture (QCA) Library - development files. | |
50 | ||
b4a1f0b7 | 51 | %description devel -l pl.UTF-8 |
e1737055 AM |
52 | Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla |
53 | programistów. | |
92159e3c | 54 | |
18e276c8 WF |
55 | %package -n qca-qt5 |
56 | Summary: Qt Cryptographic Architecture (QCA) Library | |
57 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) | |
58 | Group: Libraries | |
59 | URL: http://download.kde.org/stable/qca/ | |
60 | ||
61 | %description -n qca-qt5 | |
62 | Qt Cryptographic Architecture (QCA) Library. qt5 version | |
63 | ||
64 | %description -n qca-qt5 -l pl.UTF-8 | |
65 | Biblioteka Qt Cryptographic Architecture (QCA). | |
66 | ||
67 | %package -n qca-qt5-devel | |
68 | Summary: Qt Cryptographic Architecture (QCA) Library - development files | |
69 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla programistów | |
70 | Group: Development/Libraries | |
18e276c8 | 71 | Requires: QtCore-devel |
9703bc0f | 72 | Requires: qca-qt5 = %{version}-%{release} |
18e276c8 WF |
73 | |
74 | %description -n qca-qt5-devel | |
75 | Qt Cryptographic Architecture (QCA) Library - development files. | |
76 | ||
77 | %description -n qca-qt5-devel -l pl.UTF-8 | |
78 | Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla | |
79 | programistów. | |
80 | ||
92159e3c | 81 | %prep |
82 | %setup -q | |
d625c23e | 83 | %patch0 -p1 |
9aff6615 | 84 | %patch1 -p1 |
92159e3c | 85 | |
86 | %build | |
18e276c8 WF |
87 | install -d build4 |
88 | cd build4 | |
4d97f186 | 89 | QC_CERTSTORE_PATH=/etc/certs/ca-certificates.crt; export QC_CERTSTORE_PATH |
18e276c8 WF |
90 | %cmake \ |
91 | -DQCA_LIBRARY_INSTALL_DIR=%{_libdir} \ | |
92 | -DQCA_FEATURE_INSTALL_DIR=%{_datadir}/qt4/mkspecs/features/ \ | |
93 | -DQT4_BUILD=ON \ | |
94 | .. | |
95 | %{__make} | |
96 | cd .. | |
97 | ||
98 | install -d build5 | |
99 | cd build5 | |
100 | %cmake \ | |
101 | -DQCA_INSTALL_IN_QT_PREFIX=ON \ | |
102 | -DQCA_MAN_INSTALL_DIR=%{_mandir} \ | |
103 | .. | |
92159e3c | 104 | %{__make} |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
18e276c8 WF |
108 | %{__make} -C build4 install \ |
109 | DESTDIR=$RPM_BUILD_ROOT | |
92159e3c | 110 | |
18e276c8 WF |
111 | %{__make} -C build5 install \ |
112 | DESTDIR=$RPM_BUILD_ROOT | |
1d3a1cca | 113 | |
92159e3c | 114 | %clean |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
08d17fca | 117 | %post -p /sbin/ldconfig |
118 | %postun -p /sbin/ldconfig | |
119 | ||
18e276c8 WF |
120 | %post -n qca-qt5 -p /sbin/ldconfig |
121 | %postun -n qca-qt5 -p /sbin/ldconfig | |
122 | ||
92159e3c | 123 | %files |
124 | %defattr(644,root,root,755) | |
125 | %doc README | |
18e276c8 | 126 | %attr(755,root,root) %{_bindir}/qcatool |
9703bc0f | 127 | %attr(755,root,root) %{_bindir}/mozcerts |
f9b137e1 JR |
128 | %ghost %attr(755,root,root) %{_libdir}/libqca.so.2 |
129 | %attr(755,root,root) %{_libdir}/libqca.so.*.* | |
9703bc0f WF |
130 | %dir %{_libdir}/qca |
131 | %dir %{_libdir}/qca/crypto | |
132 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-cyrus-sasl.so | |
133 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-gcrypt.so | |
134 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-gnupg.so | |
135 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-logger.so | |
136 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-nss.so | |
137 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-ossl.so | |
138 | %attr(755,root,root) %{_libdir}/qca/crypto/libqca-softstore.so | |
18e276c8 | 139 | %{_mandir}/man1/qcatool.1* |
92159e3c | 140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
f9b137e1 | 143 | %attr(755,root,root) %{_libdir}/libqca.so |
e1737055 | 144 | %{_includedir}/QtCrypto |
18e276c8 | 145 | %{_pkgconfigdir}/qca2.pc |
e1737055 | 146 | %{_datadir}/qt4/mkspecs/features/crypto.prf |
18e276c8 WF |
147 | %{_libdir}/cmake/Qca |
148 | ||
149 | %files -n qca-qt5 | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/qt5/bin/mozcerts-qt5 | |
152 | %attr(755,root,root) %{_libdir}/qt5/bin/qcatool-qt5 | |
153 | #%{_prefix}/certs/rootcerts.pem | |
154 | %attr(755,root,root) %ghost %{_libdir}/libqca-qt5.so.2 | |
155 | %attr(755,root,root) %{_libdir}/libqca-qt5.so.*.* | |
3e15329c | 156 | %dir %{_libdir}/qt5/plugins/crypto |
18e276c8 WF |
157 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-cyrus-sasl.so |
158 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-gcrypt.so | |
159 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-gnupg.so | |
160 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-logger.so | |
161 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-nss.so | |
162 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-ossl.so | |
163 | %attr(755,root,root) %{_libdir}/qt5/plugins/crypto/libqca-softstore.so | |
164 | %{_mandir}/man1/qcatool-qt5.1* | |
165 | ||
166 | %files -n qca-qt5-devel | |
167 | %defattr(644,root,root,755) | |
168 | %{_includedir}/qt5/Qca-qt5 | |
169 | %{_libdir}/cmake/Qca-qt5 | |
170 | %attr(755,root,root) %{_libdir}/libqca-qt5.so | |
171 | %{_pkgconfigdir}/qca2-qt5.pc | |
172 | %{_libdir}/qt5/mkspecs/features/crypto.prf |