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