]>
Commit | Line | Data |
---|---|---|
e1737055 AM |
1 | # TODO: |
2 | # - fix chrpath | |
3 | # | |
4 | # chrpath stripping fails | |
5 | %define no_install_post_chrpath 1 | |
92159e3c | 6 | Summary: Qt Cryptographic Architecture (QCA) Library |
f12f8c56 | 7 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) |
92159e3c | 8 | Name: qca |
e1737055 AM |
9 | Version: 2.0.0 |
10 | Release: 1 | |
92159e3c | 11 | License: LGPL v2.1 |
12 | Group: Libraries | |
e1737055 AM |
13 | Source0: http://delta.affinix.com/download/qca/2.0/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 07d54358ef4880d05b3c6f56b629aa55 | |
92159e3c | 15 | URL: http://delta.affinix.com/qca/ |
e1737055 | 16 | BuildRequires: QtCore-devel |
dca94c6f | 17 | BuildRequires: QtGui-devel |
e1737055 AM |
18 | BuildRequires: QtNetwork-devel |
19 | BuildRequires: QtTest-devel | |
92159e3c | 20 | BuildRequires: libstdc++-devel |
21 | BuildRequires: openssl-devel >= 0.9.7d | |
dca94c6f | 22 | BuildRequires: qt4-build |
e1737055 | 23 | BuildRequires: qt4-qmake |
92159e3c | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Qt Cryptographic Architecture (QCA) Library. | |
28 | ||
b4a1f0b7 | 29 | %description -l pl.UTF-8 |
92159e3c | 30 | Biblioteka Qt Cryptographic Architecture (QCA). |
31 | ||
32 | %package devel | |
33 | Summary: Qt Cryptographic Architecture (QCA) Library - development files | |
f12f8c56 | 34 | Summary(pl.UTF-8): Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla programistów |
12b4f66c | 35 | Group: Development/Libraries |
36 | Requires: %{name} = %{version}-%{release} | |
e1737055 | 37 | Requires: QtCore-devel |
92159e3c | 38 | |
39 | %description devel | |
40 | Qt Cryptographic Architecture (QCA) Library - development files. | |
41 | ||
b4a1f0b7 | 42 | %description devel -l pl.UTF-8 |
e1737055 AM |
43 | Biblioteka Qt Cryptographic Architecture (QCA) - pliki dla |
44 | programistów. | |
92159e3c | 45 | |
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
30f1c2dd | 50 | ./configure \ |
51 | --prefix=%{_prefix} \ | |
e1737055 AM |
52 | --libdir=%{_libdir} \ |
53 | --datadir=%{_datadir} | |
cb692175 | 54 | qt4-qmake |
92159e3c | 55 | %{__make} |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
e1737055 AM |
60 | install -d $RPM_BUILD_ROOT%{_pkgconfigdir} |
61 | ||
92159e3c | 62 | %{__make} install \ |
63 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
64 | ||
e1737055 | 65 | install lib/*.pc $RPM_BUILD_ROOT%{_pkgconfigdir} |
dca94c6f | 66 | |
967f695c | 67 | %if "%{_lib}" == "lib64" |
e1737055 | 68 | rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig |
dca94c6f | 69 | %endif |
e1737055 | 70 | |
92159e3c | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
08d17fca | 74 | %post -p /sbin/ldconfig |
75 | %postun -p /sbin/ldconfig | |
76 | ||
92159e3c | 77 | %files |
78 | %defattr(644,root,root,755) | |
79 | %doc README | |
e1737055 AM |
80 | %attr(755,root,root) %{_bindir}/* |
81 | %attr(755,root,root) %{_libdir}/*.so.* | |
82 | %{_mandir}/man1/*.1* | |
83 | %{_datadir}/qca | |
92159e3c | 84 | |
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,root) %{_libdir}/*.so | |
e1737055 AM |
88 | %{_includedir}/QtCrypto |
89 | %{_pkgconfigdir}/*.pc | |
90 | %{_libdir}/libqca.prl | |
91 | %{_datadir}/qt4/mkspecs/features/crypto.prf |