File trezarcoin.spec of Package Trezarcoin

# spec file for package 
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           trezarcoin
Version:	0.13
Release:	0
License:	MIT	
Summary:	Port of Cryptocoin Wallet implementation for Trezarcoinwallet

Group:		Productivity/Office/Finance
Source0:	%{name}-%{version}.tar.gz
#Source1:	% { name }.desktop
#Icon:		% { name }.gif

%if 0%{?fedora} || 0%{?centos}
BuildRequires: miniupnpc-devel libdb-cxx-devel
BuildRequires: qt4-devel

BuildRequires: libminiupnpc-devel
BuildRequires: libQt5Core-devel libQt5Gui-devel libQt5Network-devel libQt5Widgets-devel 
BuildRequires: libQt5PrintSupport-devel libqt5-qtbase-devel  libqt5-linguist  
BuildRequires: db-devel
Buildrequires: boost-devel libboost_system-devel libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel libboost_thread-devel gcc-c++
BuildRequires: update-desktop-files 

BuildRequires:	autoconf automake libtool 
BuildRequires:  boost-devel >= 1.53  libboost_system-devel libboost_filesystem-devel libboost_program_options-devel 
BuildRequires:  libboost_thread-devel libboost_chrono-devel
BuildRequires:  gcc-c++ 
BuildRequires: 	protobuf-devel libevent-devel
BuildRequires:	qrencode-devel openssl-devel  
BuildRequires:  zeromq-devel


Provides:	trezarcoin-qt = %{version} trezarcoind = %{version}
Obsoletes:	trezarcoin-qt < %{version} trezarcoind < %{version} 

A Wallet for the cryptocoin Trezarcoin
Original sources and actual versions of the source can be found at:

Trezarcoin is an Open Source cryptographic Internet currency

For more information visit

 If you want to support the Trezarcoin development donate to: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
%package -n trezarcoin-qt
Summary: Trezarcoin GUI
%description -n trezarcoin-qt
The GUI interface to the Trezarcoin wallet. It's designed for end users running an X11 environment

%package -n trezarcoind
Group: Productivity/Office/Finance
Summary: The trezarcoin daemon and command line interface 
%description -n trezarcoind
The daemon and command line interface for the Trezarcoin wallet. The daemon can be used for server 
only environments, e.g. by pool operators.
The command line interface provides command line access to the wallet functions without the need of 
a X11 environment.

%setup -n trezarcoin-%{version}

#echo "starting build section"
#echo "snmp_flags: %{?_smp_mflags}"

export QT_SELECT=5 
# original configure statemment
#./configure  --disable-tests --with-incompatible-bdb  --enable-static=no --with-gui=qt5 --with-qt-bindir=/usr/bin CFLAGS="-fPIC"
./configure  --disable-tests --with-incompatible-bdb  --enable-shared=no CFLAGS="-fPIC" 


#compile the forms into ui_ headerfiles
#cd contrib
#make compiler_uic_make_all 
#mv ui_* ../src/qt/forms/
#cd -

# build the executables

%pre -n trezarcoind


install -D -m 0755 src/%{name}d %{buildroot}%{_bindir}/%{name}d
install -D -m 0755 src/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli

install -D -m 0755 src/qt/%{name}-qt %{buildroot}%{_bindir}/%{name}-qt
install -p -D -m 644 share/pixmaps/bitcoin32.png %{buildroot}/usr/share/icons/%{name}32.png
install -p -D -m 644 share/pixmaps/bitcoin64.png %{buildroot}/usr/share/icons/%{name}64.png
install -p -D -m 644 share/pixmaps/bitcoin64.png %{buildroot}/usr/share/pixmaps/%{name}.png
install -p -D -m 644 ../../SOURCES/%{name}.desktop  %{buildroot}/usr/share/applications/%{name}.desktop

install -p -D -m 644 contrib/debian/manpages/trezarcoin-qt.1  %{buildroot}%{_mandir}/man1/%{name}-qt.1
install -p -D -m 644 contrib/debian/manpages/trezarcoind.1  %{buildroot}%{_mandir}/man1/%{name}d.1
install -p -D -m 644 contrib/debian/manpages/trezarcoind.1  %{buildroot}%{_mandir}/man1/%{name}-cli.1
install -p -D -m 644 contrib/debian/manpages/trezarcoin.conf.5  %{buildroot}%{_mandir}/man5/%{name}.conf.5

%if 0%{?suse_version}
%suse_update_desktop_file -i %{name} Office Finance

echo "post"

%defattr (-,root,root,-)


* Tue Dec 04 2018
- version 1.2
  *  update to code based on bitcoin code v0.13