Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Jiri Vanek
e61555f617 Adjsuted for rhel 2024-10-21 14:12:29 +02:00
3 changed files with 1 additions and 11 deletions

View file

@ -1,3 +0,0 @@
[adoptium-temurin-java-repository]
type=dnf

View file

@ -1,6 +1,6 @@
[adoptium-temurin-java-repository] [adoptium-temurin-java-repository]
name=Adoptium name=Adoptium
baseurl=https://packages.adoptium.net/artifactory/rpm/fedora/$releasever/$basearch baseurl=https://packages.adoptium.net/artifactory/rpm/rhel/$releasever/$basearch
enabled=0 enabled=0
gpgcheck=1 gpgcheck=1
gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public gpgkey=https://packages.adoptium.net/artifactory/api/gpg/key/public

View file

@ -1,6 +1,5 @@
%global reponame %{name}.repo %global reponame %{name}.repo
%global repodir %{_sysconfdir}/yum.repos.d %global repodir %{_sysconfdir}/yum.repos.d
%global thirdparty %{_prefix}/lib/fedora-third-party/conf.d
# 0/1 may vary in time, and is always enabled to 1 per FESCO exception # 0/1 may vary in time, and is always enabled to 1 per FESCO exception
%global enabled_by_default 0 %global enabled_by_default 0
@ -12,14 +11,10 @@ Summary: Fedora package repository files for yum and dnf along with gpg publi
License: EPL-2.0 License: EPL-2.0
URL: https://adoptium.net/installation/linux/#_centosrhelfedora_instructions URL: https://adoptium.net/installation/linux/#_centosrhelfedora_instructions
Source0: LICENSE Source0: LICENSE
Source1: %{name}.conf
Source2: %{reponame} Source2: %{reponame}
Source3: README.md Source3: README.md
BuildArch: noarch BuildArch: noarch
# fedora-third-party contains tools to work with 3rd party repos and owns fedora-third-party/conf.d/ directory
Requires: fedora-third-party
%description %description
This package adds configuration to add a remote repository This package adds configuration to add a remote repository
@ -35,13 +30,11 @@ cat %{SOURCE2} | sed "s/^enabled=0/enabled=%{enabled_by_default}/" > %{reponame
%install %install
install -D -m0644 %{SOURCE0} %{buildroot}%{_datadir}/licenses/%{name}/LICENSE install -D -m0644 %{SOURCE0} %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
install -D -m0644 %{SOURCE1} -t %{buildroot}%{thirdparty}/
install -D -m0644 %{reponame} -t %{buildroot}%{repodir}/ install -D -m0644 %{reponame} -t %{buildroot}%{repodir}/
install -D -m0644 %{SOURCE3} -t %{buildroot}%{_docdir}/%{name}/ install -D -m0644 %{SOURCE3} -t %{buildroot}%{_docdir}/%{name}/
%files %files
%license LICENSE %license LICENSE
%{thirdparty}/*
%config %{repodir}/%{reponame} %config %{repodir}/%{reponame}
%doc README.md %doc README.md