Name: toddpkgs-riot-repo Version: 1.0 Release: 8%{?dist}.taw Summary: Repository configuration to enable management of Riot packages Group: System Environment/Base License: MIT URL: https://github.com/taw00/riot-rpm Source0: https://github.com/taw00/riot-rpm/raw/master/source/SOURCES/toddpkgs-riot-repo-1.0.tar.gz BuildArch: noarch %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 Riot messaging client RPM package for Fedora Linux and CentOS/RHEL/EPEL. Install this, then... * For fedora: sudo dnf install riot -y --refresh * For CentOS or RHEL: sudo yum clean expire-cache sudo yum install riot -y * For OpenSuse Leap sudo zypper refresh sudo zypper modifyrepo -er "riot-stable" sudo zypper install riot * For OpenSuse Tumbleweed sudo zypper refresh sudo zypper modifyrepo -er "riot-stable" sudo zypper install riot You can edit /etc/yum.repos.d/riot.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/riot-rpm and (for now) all the binary OpenSuse packages * 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}/zypp/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 ## ## Fedora ## %if 0%{?fedora:1} install -D -m644 riot-fedora.repo %{buildroot}%{_sysconfdir}/yum.repos.d/riot.repo %endif ## ## EL (Epel) ## %if 0%{?rhel:1} %if 0%{?rhel} < 8 install -D -m644 riot-el7.repo %{buildroot}%{_sysconfdir}/yum.repos.d/riot.repo %else %if 0%{?rhel} < 9 install -D -m644 riot-el8.repo %{buildroot}%{_sysconfdir}/yum.repos.d/riot.repo %endif %endif %endif ## ## OpenSUSE ## # https://en.opensuse.org/openSUSE:Packaging_for_Leap#RPM_Distro_Version_Macros %if 0%{?is_opensuse:1} %if 0%{?sle_version:1} # We're not checking for version of leap install -D -m644 riot-suse-leap.repo %{buildroot}%{_sysconfdir}/zypp/repos.d/riot.repo %else install -D -m644 riot-suse-tumbleweed.repo %{buildroot}%{_sysconfdir}/zypp/repos.d/riot.repo %endif %endif %files %attr(644, root,root) %{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-todd-694673ED-public %license LICENSE %if 0%{?fedora:1} %config(noreplace) %attr(644, root,root) %{_sysconfdir}/yum.repos.d/riot.repo %endif %if 0%{?rhel:1} %config(noreplace) %attr(644, root,root) %{_sysconfdir}/yum.repos.d/riot.repo %endif %if 0%{?suse_version:1} %config(noreplace) %attr(644, root,root) %{_sysconfdir}/zypp/repos.d/riot.repo %endif %changelog * Wed Mar 27 2019 Todd Warner 1.0-8..taw * Wed Mar 27 2019 Todd Warner 1.0-7.1.testing..taw - got leap and tumbleweed working! In COPR! * Wed Mar 20 2019 Todd Warner 1.0-7.taw * Wed Mar 20 2019 Todd Warner 1.0-6.1.testing.taw - Apparently, my EPEL URL was "too generic" and would fail for some people. Made more explicit. * Tue Mar 12 2019 Todd Warner 1.0-6.taw * Tue Mar 12 2019 Todd Warner 1.0-5.1.testing.taw - OpenSuse Tumbleweed now supported by COPR * Mon Dec 17 2018 Todd Warner 1.0-5.taw * Mon Dec 17 2018 Todd Warner 1.0-4.1.testing.taw - enabled_metadata needs to be set to 0 because COPR repos do not managed appstream metadata correctly * Sat May 26 2018 Todd Warner 1.0-4.taw * Sat May 26 2018 Todd Warner 1.0-3.3.testing.taw * Sat May 26 2018 Todd Warner 1.0-3.2.testing.taw - OpenSuse uses /etc/zypp and not /etc/yum... apparently. :/ - Need a license for this package. Punted, like everyone else, and chose MIT - Added type and autorefresh flags to repofile - Made leap specific SPEC file. This (primary spec) will work generically though defaulting to opensuse tumbleweed. * Fri May 25 2018 Todd Warner 1.0-3.1.testing.taw - Support for OpenSuse * Sat May 12 2018 Todd Warner 1.0-3.taw - Update. * Sat May 12 2018 Todd Warner 1.0-2.1.testing.taw - metadata for test repo expires immediately. - fixed error in test repo URL (for fedora) * Sun May 6 2018 Todd Warner 1.0-2.taw - Update. * Sun May 6 2018 Todd Warner 1.0-1.1.testing.taw - Made the rep info desplayed when updating less noisy. It annoyed me. * Sun Apr 15 2018 Todd Warner 1.0-1.taw - Initial build * Sun Apr 15 2018 Todd Warner 1.0-0.1.testing.taw - Initial test build