Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Cloud:OTC:Tools
cloud-otc-keyring
cloud-otc-keyring.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cloud-otc-keyring.spec of Package cloud-otc-keyring
Name: cloud-otc-keyring Version: 2024.1.0 Release: 1 Summary: GnuPG archive key for the Cloud:OTC archives Group: Development/Tools License: CC-BY-SA-3.0 Source: %{name}-%{version}.tar.bz2 Autoreqprov: on # CentOS: gnupg2 # Suse: gpg2 %if 0%{?suse_version} BuildRequires: gpg2 %else BuildRequires: gnupg2 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %define instpath /etc/pki/rpm-gpg %define gpghome_suse /usr/lib/rpm/gnupg/keys %define rpmlock_orig /var/lib/rpm/.rpm.lock %define rpmlock_tmp /var/lib/rpm/.rpm.lock.tmp %description Some useful tools for OpenTelekomCloud, a public cloud offering from T-Systems International based on OpenStack. %define gpg_pubkey 05a6c49c %define GPG_PUBKEY_OLD gpg-pubkey-05a6c49c-5f324c09 %define GPG_PUBKEY_NEW gpg-pubkey-05a6c49c-633ec846 %prep %setup -c %{name}-%{version} %build %install %if 0%{?suse_version} %define package_path %{buildroot}%{_datadir} %define keyfile gpg-pubkey-%{gpg_pubkey}.asc %else %define package_path %{buildroot}%{instpath} %define keyfile RPM-GPG-KEY-CLOUD-OTC %endif mkdir -p %{package_path} install -m 0644 cloud-otc-archive.gpg %{package_path}/%{keyfile} %clean rm -rf %{buildroot} %post %if 0%{?suse_version} %define install_path %{_datadir} gpg2 --homedir=%{gpghome_suse} --import %{install_path}/%{keyfile} rm -f %{install_path}/%{keyfile} %else %define install_path %{instpath} mv %{rpmlock_orig} %{rpmlock_tmp} rpm --import %{install_path}/%{keyfile} rm -f %{install_path}/RPM-GPG-KEY-OBS-OTC mv %{rpmlock_tmp} %{rpmlock_orig} %endif %preun if [[ $1 -ge 1 ]];then echo "-----------------------" echo "Package is getting upgraded" mv %{rpmlock_orig} %{rpmlock_tmp} rpm -e %{GPG_PUBKEY_OLD} mv %{rpmlock_tmp} %{rpmlock_orig} fi if [[ $1 -eq 0 ]];then echo "-----------------------" echo "Package is getting removed/uninstalled" mv %{rpmlock_orig} %{rpmlock_tmp} rpm -e %{GPG_PUBKEY_NEW} mv %{rpmlock_tmp} %{rpmlock_orig} fi %files %defattr(0644,root,root,0755) %if 0%{?suse_version} %{_datadir}/%{keyfile} %else %{install_path}/%{keyfile} %endif
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