]>
Commit | Line | Data |
---|---|---|
bc9e72f6 | 1 | %define snap 20131127 |
1b03cd4f | 2 | %define rel 10 |
a0082f72 AM |
3 | Summary: Primecoin - First Scientific Computing Cryptocurrency |
4 | Name: primecoin | |
6f8fb279 | 5 | Version: 0.1.2 |
751ff4b4 | 6 | Release: 2.%{snap}.%{rel} |
a0082f72 AM |
7 | License: MIT/X11 |
8 | Group: X11/Applications | |
bc9e72f6 AM |
9 | # Source0: https://github.com/primecoin/primecoin/archive/v%{version}.tar.gz |
10 | Source0: %{name}-20131127.tar.bz2 | |
11 | # Source0-md5: 10ae9950aba9232a3c035e499c38aa74 | |
78db1975 | 12 | Patch0: build-i486.patch |
9787840d | 13 | Patch1: boost-1.58.patch |
a0082f72 AM |
14 | URL: http://primecoin.org |
15 | BuildRequires: QtCore-devel | |
16 | BuildRequires: QtDBus-devel | |
17 | BuildRequires: QtGui-devel | |
18 | BuildRequires: boost-devel | |
19 | BuildRequires: db-cxx-devel | |
20 | BuildRequires: miniupnpc-devel >= 1.5 | |
21 | BuildRequires: openssl-devel | |
22 | BuildRequires: qrencode-devel | |
23 | BuildRequires: qt4-qmake | |
24 | Requires: perl-base | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Primecoin - First Scientific Computing Cryptocurrency. | |
29 | ||
30 | %package qt | |
31 | Summary: Qt-based Primecoin Wallet | |
32 | Group: X11/Applications | |
33 | ||
34 | %description qt | |
35 | Qt-based Primecoin Wallet. | |
36 | ||
37 | %prep | |
bc9e72f6 | 38 | %setup -q -n %{name}-%{snap} |
78db1975 | 39 | %patch0 -p1 |
9787840d | 40 | %patch1 -p1 |
a0082f72 AM |
41 | |
42 | %build | |
bc9e72f6 | 43 | qmake-qt4 bitcoin-qt.pro \ |
a0082f72 AM |
44 | USE_UPNP=1 \ |
45 | USE_DBUS=1 \ | |
46 | USE_QRCODE=1 | |
47 | ||
48 | %{__make} | |
49 | ||
50 | %{__make} -C src -f makefile.unix \ | |
51 | CXX="%{__cxx}" \ | |
52 | CXXFLAGS="%{rpmcflags} %{rpmcxxflags} %{rpmcppflags}" | |
53 | ||
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man{1,5},%{_localedir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/kde4/services} | |
58 | ||
bc9e72f6 | 59 | install src/primeminer $RPM_BUILD_ROOT%{_bindir}/primeminer |
a0082f72 | 60 | install primecoin-qt $RPM_BUILD_ROOT%{_bindir} |
bc9e72f6 | 61 | |
a0082f72 AM |
62 | sed -e 's#bitcoin#primecoin#g' contrib/debian/bitcoin-qt.desktop > $RPM_BUILD_ROOT%{_desktopdir}/primecoin-qt.desktop |
63 | sed -e 's#bitcoin#primecoin#g' contrib/debian/bitcoin-qt.protocol > $RPM_BUILD_ROOT%{_datadir}/kde4/services/primecoin-qt.protocol | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc doc/*.txt contrib/debian/examples/bitcoin.conf | |
bc9e72f6 | 71 | %attr(755,root,root) %{_bindir}/primeminer |
a0082f72 AM |
72 | |
73 | %files qt | |
74 | %defattr(644,root,root,755) | |
75 | %attr(755,root,root) %{_bindir}/primecoin-qt | |
76 | %{_datadir}/kde4/services/primecoin-qt.protocol | |
77 | %{_desktopdir}/primecoin-qt.desktop |