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