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