Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:marec2000:cryptocoins
globalboosty
globalboosty.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File globalboosty.spec of Package globalboosty
# # spec file for package globalboosty # # Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ # # options %define with_bench yes %define with_gui yes %define with_man yes %define with_tests no %define with_checks no # progname %define progname globalboost Name: globalboosty Version: 0.17.2 Release: 0 Summary: P2P digital currency License: MIT Group: Productivity/Networking/Other Url: https://%{progname}-y.org/ Source0: %{name}-%{version}.tar.xz Patch0: %{name}-boost.patch Patch1: %{name}-qt.patch Patch2: %{name}-queue.patch BuildRequires: automake %if 0%{?suse_version} && 0%{?suse_version} > 1320 BuildRequires: libboost_filesystem-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_system-devel %if "%{with_tests}" == "yes" BuildRequires: libboost_test-devel %endif BuildRequires: libboost_thread-devel %else BuildRequires: boost-devel %endif BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: libdb-4_8-devel BuildRequires: libevent-devel BuildRequires: libminiupnpc-devel BuildRequires: libtool BuildRequires: qrencode-devel %if 0%{?suse_version} && 0%{?suse_version} >= 1315 %if 0%{?suse_version} && 0%{?suse_version} > 1320 BuildRequires: libopenssl-1_0_0-devel %else BuildRequires: libopenssl-devel %endif BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qttools-devel %else BuildRequires: libqt4-devel %endif BuildRequires: libunivalue-devel BuildRequires: protobuf-devel %if 0%{?suse_version} && 0%{?is_opensuse} && 0%{?suse_version} == 1315 && 0%{?sle_version} && 0%{?sle_version} >= 120200 BuildRequires: shadow %endif BuildRequires: update-desktop-files BuildRequires: zeromq-devel %if ! %{defined _rundir} %define _rundir %{_localstatedir}/run %endif %global qt4_version qt %global qt5_version qt5 %global qt4c_version qt4 %if 0%{?suse_version} && 0%{?suse_version} >= 1315 %define qt_version %{qt5_version} %define qt_version_obsolete %{qt4_version} %define qt_config %{qt5_version} %else %define qt_version %{qt4_version} %define qt_version_obsolete %{qt5_version} %define qt_config %{qt4c_version} %endif # set binary names %define display_name GlobalBoost %define daemon_name %{progname}d %define cli_name %{progname}-cli %define tx_name %{progname}-tx %define bench_name bench_%{progname} %define gui_name %{progname}-qt %define test_name test_%{progname} %define test_gui_name test_%{gui_name} # set package names %define daemon_packname %{name}d # set ports %define p2p_port 9301 %define rpc_port 9302 # set configuration options %if "%{with_bench}" == "yes" %define conf_bench enable %else %define conf_bench disable %endif %if "%{with_gui}" == "no" %define qt_config no %endif %if "%{with_man}" == "yes" %define conf_man enable %else %define conf_man disable %endif %if "%{with_tests}" == "yes" %define conf_tests enable %else %define conf_tests disable %endif %define description_text MonaCoin is an experimental digital currency that enables instant payments to anyone, anywhere in the world. MonaCoin uses peer-to-peer technology to operate with no central authority: managing transactions and issuing money are carried out collectively by the network. MonaCoin Core is the name of open source software which enables the use of this currency. # set summary and description for test package %if "%{with_tests}" == "yes" && "%{with_bench}" == "yes" %define pkg_test_summary Benchmarks and automated tests for %{progname} client %define pkg_test_description This package provides benchmarks and automated tests for %{gui_name} and %{daemon_name}. %endif %if "%{with_tests}" == "yes" && "%{with_bench}" == "no" %define pkg_test_summary Automated tests for %{progname} client %define pkg_test_description This package provides automated tests for %{gui_name} and %{daemon_name}. %endif %if "%{with_tests}" == "no" && "%{with_bench}" == "yes" %define pkg_test_summary Benchmarks for %{progname} client %define pkg_test_description This package provides benchmarks. %endif %description %{description_text} %package utils Summary: Utils for the %{display_name} crypto-currency Group: Productivity/Networking/Other %description utils %{description_text} This package provides %{display_name}-CLI and %{display_name}-TX, a command line interface for %{display_name}. %if "%{with_gui}" == "yes" %package %{qt_version} Summary: GUI for the %{display_name} crypto-currency Group: Productivity/Networking/Other Obsoletes: %{name}-%{qt_version_obsolete} %description %{qt_version} %{description_text} This package provides %{display_name}-Qt, a GUI for %{display_name} based on Qt. %endif %package -n %{daemon_packname} Summary: Headless daemon for %{progname} crypto-currency Group: Productivity/Networking/Other %description -n %{daemon_packname} %{description_text} This package provides %{daemon_name}, a headless %{progname} daemon. %if "%{with_tests}" == "yes" || "%{with_bench}" == "yes" %package test Summary: Automated tests for %{progname} client Group: Productivity/Networking/Other %if "%{with_bench}" == "yes" Obsoletes: %{name}-bench %endif %description test %{description_text} %{pkg_test_description} %endif %package doc Summary: Documentation for %{progname} Group: Documentation/Man BuildArch: noarch %description doc %{description_text} This package contains the documentation for %{progname}. %prep %setup -q %if 0%{?suse_version} && 0%{?suse_version} > 1500 %patch0 %patch1 %patch2 %endif /usr/bin/dos2unix -k doc/README_windows.txt # setup systemd service %{__sed} -i 's#^Description=Bitcoin daemon$#Description=%{display_name} Daemon#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^PIDFile=/run/bitcoind/bitcoind.pid$#PIDFile=%{_rundir}/%{progname}/%{daemon_name}.pid#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^ExecStart=/usr/bin/bitcoind -daemon -conf=/etc/bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoind.pid$#ExecStart=%{_bindir}/%{daemon_name} -daemon -pid=%{_rundir}/%{progname}/%{daemon_name}.pid -conf=%{_sysconfdir}/%{progname}.conf -datadir=%{_localstatedir}/lib/%{progname} -disablewallet#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^\# Creates /run/bitcoind owned by bitcoin$#ExecReload=/bin/kill -HUP \$MAINPID#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^RuntimeDirectory=bitcoind$#RuntimeDirectory=%{progname}#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^User=bitcoin$#User=%{progname}#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^Group=bitcoin$#Group=%{progname}#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^\# \$ systemctl edit bitcoind.service$#\# $ systemctl edit %{daemon_name}.service#g' contrib/init/%{daemon_name}.service %{__sed} -i 's#^\# /etc/bitcoin/bitcoin.conf$#\# %{_sysconfdir}/%{progname}.conf#g' contrib/init/%{daemon_name}.service # setup default config file %{__sed} -i 's#globalboost#%{progname}#g' share/examples/%{progname}.conf %{__sed} -i 's#GlobalBoost-Qt#%{gui_name}#g' share/examples/%{progname}.conf %{__sed} -i 's#GlobalBoost#%{progname}#g' share/examples/%{progname}.conf # setup firewall config %if 0%{?suse_version} && ( 0%{?suse_version} < 1500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} <= 150200 ) ) echo "## Name: %{display_name} Daemon" > %{progname}.firewall echo "## Description: Opens ports for %{daemon_name} in order to allow remote connections." >> %{progname}.firewall echo -e "\nTCP=\"%{rpc_port}:%{p2p_port}\"" >> %{progname}.firewall %endif # setup run folder echo "d %{_rundir}/%{progname} 0770 root %{progname}" > rundir.conf %build ./autogen.sh %configure --docdir=%{_defaultdocdir}/%{name} --enable-silent-rules --enable-wallet --enable-upnp-default --%{conf_bench}-bench --%{conf_tests}-tests --%{conf_man}-man --enable-hardening --enable-reduce-exports --with-miniupnpc --with-qrencode --with-boost --with-utils --without-libs --with-daemon --with-gui=%{qt_config} --with-qtdbus --with-system-univalue --disable-static CXXFLAGS="${CXXFLAGS} -DBUILD_SUFFIX=%{_host_vendor}" %if 0%{?suse_version} && 0%{?suse_version} >= 1500 %make_build %else %{__make} %{?_smp_mflags} %endif %{__strip} -s src/%{cli_name} %{__strip} -s src/%{tx_name} %if "%{with_bench}" == "yes" %{__strip} -s src/bench/%{bench_name} %endif %if "%{with_gui}" == "yes" %{__strip} -s src/qt/%{gui_name} %endif %{__strip} -s src/%{daemon_name} %if "%{with_tests}" == "yes" %if "%{with_gui}" == "yes" %{__strip} -s src/qt/test/%{test_gui_name} %endif %{__strip} -s src/test/%{test_name} %endif %install %if 0%{?suse_version} && 0%{?suse_version} >= 1500 %make_install %else %{__make} %{?_smp_mflags} install DESTDIR=%{buildroot} %endif # install daemon supplementary files %{__install} -D -m 0644 share/examples/%{progname}.conf %{buildroot}%{_sysconfdir}/%{progname}.conf %{__install} -D -m 0644 contrib/init/%{daemon_name}.service %{buildroot}%{_unitdir}/%{daemon_name}.service %{__mkdir_p} %{buildroot}%{_localstatedir}/lib/%{progname} %{__install} -d -m 0755 %{buildroot}%{_sbindir} %{__ln_s} %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{daemon_name} # install firewall config file %if 0%{?suse_version} && ( 0%{?suse_version} < 1500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} <= 150200 ) ) %{__install} -D -m 644 %{progname}.firewall %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{daemon_name} %endif # install desktop file %if "%{with_gui}" == "yes" %{__install} -D -m 0644 src/qt/res/icons/%{progname}.png %{buildroot}%{_datadir}/pixmaps/%{progname}.png %suse_update_desktop_file -c %{gui_name} %{display_name} "%{display_name} Wallet" %{gui_name} %{progname} Office Finance %endif # install run folder configuration %{__install} -D -m 0644 rundir.conf %{buildroot}/%{_tmpfilesdir}/%{progname}_rundir.conf # install documentation %{__install} -d -m 0755 %{buildroot}%{_defaultdocdir}/%{name} %{__install} -m 0644 -p -t %{buildroot}%{_defaultdocdir}/%{name} CONTRIBUTING.md README.md %{__install} -d -m 0755 %{buildroot}%{_defaultlicensedir}/%{name} %{__install} -m 0644 -p -t %{buildroot}%{_defaultlicensedir}/%{name} COPYING %{__cp} -a doc %{buildroot}%{_defaultdocdir}/%{name}/ %{__rm} -fr %{buildroot}%{_defaultdocdir}/%{name}/doc/man %{_bindir}/find %{buildroot}%{_defaultdocdir}/%{name} -type d -exec %{__chmod} -R 755 {} \; %{_bindir}/find %{buildroot}%{_defaultdocdir}/%{name} -type f -exec %{__chmod} -R 644 {} \; %fdupes %{buildroot}%{_defaultdocdir}/%{name} # no rpath check on arm architectures %ifarch %arm export NO_BRP_CHECK_RPATH=true %endif %if "%{with_checks}" == "yes" %check %{__make} %{?_smp_mflags} check %endif %pre -n %{daemon_packname} getent group %{progname} > /dev/null || groupadd -r %{progname} getent passwd %{progname} > /dev/null || useradd -r -g %{progname} -d %{_localstatedir}/lib/%{progname} -s /sbin/nologin -c "%{progname} daemon" %{progname} %service_add_pre %{daemon_name}.service %preun -n %{daemon_packname} %service_del_preun %{daemon_name}.service %post -n %{daemon_packname} %service_add_post %{daemon_name}.service %if 0%{?suse_version} && ( 0%{?suse_version} > 1320 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1315 && 0%{?sle_version} && 0%{?sle_version} >= 120100 ) ) %tmpfiles_create %{_tmpfilesdir}/%{progname}_rundir.conf %else systemd-tmpfiles --create %{_tmpfilesdir}/%{progname}_rundir.conf >/dev/null 2>&1 || : %endif %if "%{with_gui}" == "yes" %if 0%{?suse_version} && 0%{?suse_version} < 1500 %post %{qt_version} %desktop_database_post %postun %{qt_version} %desktop_database_postun %endif %endif %postun -n %{daemon_packname} %service_del_postun %{daemon_name}.service %files utils %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/%{cli_name} %attr(755,root,root) %{_bindir}/%{tx_name} %if "%{with_man}" == "yes" %{_mandir}/man1/%{cli_name}.1%{?ext_man} %{_mandir}/man1/%{tx_name}.1%{?ext_man} %endif %files %{qt_version} %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/%{gui_name} %{_datadir}/pixmaps/%{progname}.png %{_datadir}/applications/%{gui_name}.desktop %{_mandir}/man1/%{gui_name}.1%{?ext_man} %files -n %{daemon_packname} %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/%{daemon_name} %{_sbindir}/rc%{daemon_name} %{_unitdir}/%{daemon_name}.service %config(noreplace) %{_sysconfdir}/%{progname}.conf %if 0%{?suse_version} && ( 0%{?suse_version} < 1500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} <= 150200 ) ) %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{daemon_name} %endif %dir %attr(700,%{progname},%{progname}) %{_localstatedir}/lib/%{progname} %ghost %{_rundir}/%{progname} %{_tmpfilesdir}/%{progname}_rundir.conf %if "%{with_man}" == "yes" %{_mandir}/man1/%{daemon_name}.1%{?ext_man} %endif %if "%{with_tests}" == "yes" || "%{with_bench}" == "yes" %files test %defattr(-,root,root,-) %if "%{with_bench}" == "yes" %attr(755,root,root) %{_bindir}/%{bench_name} %endif %if "%{with_tests}" == "yes" %attr(755,root,root) %{_bindir}/%{test_name} %attr(755,root,root) %{_bindir}/%{test_gui_name} %endif %endif %files doc %defattr(-,root,root,-) %{_defaultdocdir}/%{name}/ %{_defaultlicensedir}/%{name}/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor