Name: toddpkgs-dashcore-repo Version: 1.0 Summary: Repository configuration to enable management of dashcore packages (Dash Cryptocurrency Core Wallet and Node) %define targetIsProduction 1 # Release... %define _rel 3 %define _snapinfo testing %define _minorbump taw0 %if %{targetIsProduction} Release: %{_rel}%{?dist}.%{_minorbump} %else Release: %{_rel}.%{_snapinfo}%{?dist}.%{_minorbump} %endif License: MIT URL: https://github.com/taw00/dashcore-rpm Source0: https://raw.githubusercontent.com/taw00/dashcore-rpm/master/source/SOURCES/toddpkgs-dashcore-repo-1.0.tar.gz BuildArch: noarch #BuildRequires: tree # CentOS/RHEL/EPEL can't do "Suggests:" %if 0%{?fedora:1} Suggests: distribution-gpg-keys-copr %endif %description Todd (aka, taw, taw00, t0dd in various communities) packages applications for Fedora Linux and RHEL/CentOS/EPEL. This package deploys the repository configuration file necessary to enable on-going management of the (Dash Cryptocurrency) Dash Core Wallet and Masternode/Full-node RPM package for Fedora Linux and CentOS and RHEL. Install this, then... * For fedora: sudo dnf install dashcore -y --refresh * For CentOS or RHEL: sudo yum clean expire-cache sudo yum install dashcore -y You can edit /etc/yum.repos.d/dashcore.repo (as root) and 'enable=1' or '0' whether you want the stable or the testing repositories. Notes about GPG keys: * An RPM signing key is included. It is used to sign RPMs that I build by hand. Namely any *.src.rpm found in github.com/taw00/dashcore-rpm * RPMs from the copr repositories are signed by fedoraproject build system keys. %prep %setup -q # For debugging purposes... #cd .. ; tree -df -L 1 ; cd - %build # no-op %install # Builds generically. Will need a disto specific RPM though. install -d %{buildroot}%{_sysconfdir}/yum.repos.d install -d %{buildroot}%{_sysconfdir}/pki/rpm-gpg install -D -m644 todd-694673ED-public-2030-01-04.2016-11-07.asc %{buildroot}%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-todd-694673ED-public %if 0%{?rhel:1} %if %{targetIsProduction} install -D -m644 dashcore-epel.repo %{buildroot}%{_sysconfdir}/yum.repos.d/dashcore.repo %else install -D -m644 dashcore-epel.repo-enabled-testing-repo %{buildroot}%{_sysconfdir}/yum.repos.d/dashcore.repo %endif %else %if %{targetIsProduction} install -D -m644 dashcore-fedora.repo %{buildroot}%{_sysconfdir}/yum.repos.d/dashcore.repo %else install -D -m644 dashcore-fedora.repo-enabled-testing-repo %{buildroot}%{_sysconfdir}/yum.repos.d/dashcore.repo %endif %endif %files #%%config(noreplace) %%attr(644, root,root) %%{_sysconfdir}/yum.repos.d/dashcore.repo %config %attr(644, root,root) %{_sysconfdir}/yum.repos.d/dashcore.repo %attr(644, root,root) %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-todd-694673ED-public %changelog * Tue Jul 03 2018 Todd Warner 1.0-3.taw * Tue Jul 03 2018 Todd Warner 1.0-2.2.testing.taw - v12.3 repo flipped on * Sun Jun 03 2018 Todd Warner 1.0-2.1.testing.taw - testing repo turned on by default for testing repos ;) * Tue May 1 2018 Todd Warner 1.0-2.taw * Tue May 1 2018 Todd Warner 1.0-1.1.testing.taw - Commented out the old 12.1 repo. It kept polluting the journal with error messages about missing metadata. * Mon Apr 16 2018 Todd Warner 1.0-1.taw - GA release * Mon Apr 16 2018 Todd Warner 1.0-0.1.testing.taw - Initial test build