Name: toddpkgs-element-repo Version: 1.7 %define targetIsProduction 0 %define _release 4 %if ! %{targetIsProduction} %define _release 3.1.testing %endif Release: %{_release}%{?dist}.taw # Name of package is no longer toddpkgs-riot-repo Provides: toddpkgs-riot-repo = 1.7 Obsoletes: toddpkgs-riot-repo < 1.7 Summary: Repository configuration to enable management of Element packages Group: System Environment/Base License: MIT URL: https://github.com/taw00/element-rpm Source0: https://github.com/taw00/element-rpm/raw/master/SOURCES/toddpkgs-element-repo-1.7.tar.gz BuildArch: noarch %description Todd (aka, taw, taw00, t0dd in various communities) packages applications for the Fedora, Red Hat(IBM), and OpenSUSE family of desktop linuxes. This package deploys the repository configuration file necessary to enable on-going management of the Element messaging client RPM package. Install this package, and then... * For fedora or CentOS/RHEL: sudo dnf install element -y --refresh * For OpenSUSE Leap or Tumbleweed sudo zypper refresh sudo zypper modifyrepo -er "element-stable" sudo zypper install element You can edit /etc/yum.repos.d/element.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/element-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 element-fedora.repo %{buildroot}%{_sysconfdir}/yum.repos.d/element.repo %endif ## ## EL (Epel) ## %if 0%{?rhel:1} %if 0%{?rhel} < 8 %{error: "Builds for versions of RHEL/CentOS < 8 can no longer be supported."} %else %if 0%{?rhel} < 9 install -D -m644 element-el8.repo %{buildroot}%{_sysconfdir}/yum.repos.d/element.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 element-suse-leap.repo %{buildroot}%{_sysconfdir}/zypp/repos.d/element.repo %else install -D -m644 element-suse-tumbleweed.repo %{buildroot}%{_sysconfdir}/zypp/repos.d/element.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/element.repo %endif %if 0%{?rhel:1} %config(noreplace) %attr(644, root,root) %{_sysconfdir}/yum.repos.d/element.repo %endif %if 0%{?suse_version:1} %config(noreplace) %attr(644, root,root) %{_sysconfdir}/zypp/repos.d/element.repo %endif %changelog * Sat Jul 18 2020 Todd Warner 1.7-4.taw * Sat Jul 18 2020 Todd Warner 1.7-3.1.testing.taw - s/copr-be.cloud/download.copr/cg * Sat Jul 18 2020 Todd Warner 1.7-3.taw * Sat Jul 18 2020 Todd Warner 1.7-2.1.testing.taw - github repo: taw00/riot-rpm --> taw00/element-rpm * Sat Jul 18 2020 Todd Warner 1.7-2.taw * Sat Jul 18 2020 Todd Warner 1.7-1.1.testing.taw * Sat Jul 18 2020 Todd Warner 1.7-1.taw * Sat Jul 18 2020 Todd Warner 1.7-0.1.testing.taw - Riot is now Element - SUSE uses the COPR repos as well. - Repo moved from COPR taw/Riot to taw/element * 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