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