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