|
|
0be2c1 |
%global project copy_jdk_configs
|
|
|
0be2c1 |
%global file %{project}.lua
|
|
|
0be2c1 |
%global fixFile %{project}_fixFiles.sh
|
|
|
0be2c1 |
%global rpm_state_dir %{_localstatedir}/lib/rpm-state
|
|
|
0be2c1 |
|
|
|
0be2c1 |
Name: copy-jdk-configs
|
|
|
0be2c1 |
|
|
|
0be2c1 |
# hash relevant to version tag
|
|
|
0be2c1 |
%global htag 88d3ed89f30d8b0eb4877d860fa8d951f224f156
|
|
|
0be2c1 |
Version: 4.0
|
|
|
0be2c1 |
Release: 3%{?dist}
|
|
|
0be2c1 |
Summary: JDKs configuration files copier
|
|
|
0be2c1 |
|
|
|
0be2c1 |
License: BSD
|
|
|
0be2c1 |
URL: https://pagure.io/%{project}
|
|
|
0be2c1 |
Source0: %{URL}/blob/%{htag}/f/%{file}
|
|
|
0be2c1 |
Source1: %{URL}/blob/%{htag}/f/LICENSE
|
|
|
0be2c1 |
Source2: %{URL}/blob/%{htag}/f/%{fixFile}
|
|
|
0be2c1 |
|
|
|
0be2c1 |
# we need to duplicate msot of the percents in that script so they survive rpm expansion (even in that sed they have to be duplicated)
|
|
|
0be2c1 |
%global pretrans_install %(cat %{SOURCE0} | sed s/%%/%%%%/g | sed s/\\^%%%%/^%%/g)
|
|
|
0be2c1 |
|
|
|
0be2c1 |
BuildArch: noarch
|
|
|
0be2c1 |
|
|
|
0be2c1 |
Requires: lua
|
|
|
0be2c1 |
Requires: lua-posix
|
|
|
0be2c1 |
# rh1965305 - copy-jdk-configs script uses find and xargs but RPM does not depend on them
|
|
|
0be2c1 |
Requires: findutils
|
|
|
0be2c1 |
OrderWithRequires: findutils
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%description
|
|
|
0be2c1 |
Utility script to transfer JDKs configuration files between updates or for
|
|
|
0be2c1 |
archiving. With script to fix incorrectly created rpmnew files
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%prep
|
|
|
0be2c1 |
cp -a %{SOURCE1} .
|
|
|
0be2c1 |
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%build
|
|
|
0be2c1 |
#blob
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%pretrans -p <lua>
|
|
|
0be2c1 |
function createPretransScript()
|
|
|
0be2c1 |
-- the sript must be available during pretrans, so multiply it to tmp
|
|
|
0be2c1 |
os.execute("mkdir -p %{rpm_state_dir}")
|
|
|
0be2c1 |
temp_path="%{rpm_state_dir}/%{file}"
|
|
|
0be2c1 |
-- print("generating " .. temp_path)
|
|
|
0be2c1 |
file = io.open(temp_path, "w")
|
|
|
0be2c1 |
file:write([[%{pretrans_install}]])
|
|
|
0be2c1 |
file:close()
|
|
|
0be2c1 |
end
|
|
|
0be2c1 |
|
|
|
0be2c1 |
-- in netinst, the above call may fail. pcall should save instalation (as there is nothing to copy anyway)
|
|
|
0be2c1 |
-- https://bugzilla.redhat.com/show_bug.cgi?id=1295701
|
|
|
0be2c1 |
-- todo, decide whether to check for {rpm_state_dir} and skip on not-existing, or keep creating
|
|
|
0be2c1 |
if pcall(createPretransScript) then
|
|
|
0be2c1 |
-- ok
|
|
|
0be2c1 |
else
|
|
|
0be2c1 |
-- print("Error running %{name} pretrans.")
|
|
|
0be2c1 |
end
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%install
|
|
|
0be2c1 |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}
|
|
|
0be2c1 |
cp -a %{SOURCE0} $RPM_BUILD_ROOT/%{_libexecdir}/%{file}
|
|
|
0be2c1 |
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_libexecdir}/%{fixFile}
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%posttrans
|
|
|
0be2c1 |
# remove file created in pretrans
|
|
|
0be2c1 |
# echo "removing %{rpm_state_dir}/%{file}" || :
|
|
|
0be2c1 |
rm "%{rpm_state_dir}/%{file}" 2> /dev/null || :
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%files
|
|
|
0be2c1 |
%{_libexecdir}/%{file}
|
|
|
0be2c1 |
%{_libexecdir}/%{fixFile}
|
|
|
0be2c1 |
%license LICENSE
|
|
|
0be2c1 |
|
|
|
0be2c1 |
%changelog
|
|
|
0be2c1 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.0-3
|
|
|
0be2c1 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
0be2c1 |
Related: rhbz#1991688
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Jun 08 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-1
|
|
|
0be2c1 |
- added requires and orderWithRequires of findutils to provide find and xargs (rh1965305)
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Thu Apr 29 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.0-0
|
|
|
0be2c1 |
- bumped to 4.0 to resolve remvoed rpm 4.17 removing arg from global table
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-8
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-7
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Jun 30 2020 Andrew Hughes <gnu.andrew@redhat.com> - 3.7-6
|
|
|
0be2c1 |
- Rebuilt for lua 5.4.0.
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-5
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-4
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-3
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.7-2
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.7-1
|
|
|
0be2c1 |
- udpated to latst relase
|
|
|
0be2c1 |
- configurable blacklist
|
|
|
0be2c1 |
- listed all java keystores
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-12
|
|
|
0be2c1 |
- blackidrs put on single line
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-11
|
|
|
0be2c1 |
- added more files to balcklist based on oralce and ibm jdks
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Mon Apr 30 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-10
|
|
|
0be2c1 |
- added javaws.policy and blacklist
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Apr 03 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-5
|
|
|
0be2c1 |
- fixed rhbz#1541838
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-3
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Oct 18 2017 Jiri Vanek <jvanek@redhat.com> - 3.3-2
|
|
|
0be2c1 |
- added another subdirs for policies files
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Oct 18 2017 Jiri Vanek <jvanek@redhat.com> - 3.3-1
|
|
|
0be2c1 |
- handled new paths for policies files
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Thu Oct 05 2017 Jiri Vanek <jvanek@redhat.com> - 3.1-1
|
|
|
0be2c1 |
- moved to newest release 3.1 whcih conf and lib/security as directories
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Thu Oct 05 2017 Jiri Vanek <jvanek@redhat.com> - 3.0-1
|
|
|
0be2c1 |
- moved to newest release 3.0 whcih support linked configs
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Feb 22 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3
|
|
|
0be2c1 |
- updated to latest head
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Feb 22 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2
|
|
|
0be2c1 |
- added "jre/lib/security/blacklisted.certs" to cared files
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Fri Feb 03 2017 Jiri Vanek <jvanek@redhat.com> - 2.1-1
|
|
|
0be2c1 |
- moved to newest release 2.1
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Fri Jan 20 2017 Jiri Vanek <jvanek@redhat.com> - 2.0-1
|
|
|
0be2c1 |
- moved to new upstream at pagure.io
|
|
|
0be2c1 |
- moved to newest release 2.0
|
|
|
0be2c1 |
- added new script of copy_jdk_configs_fixFiles.sh
|
|
|
0be2c1 |
- copy_jdk_configs.lua aligned to it
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Aug 09 2016 Jiri Vanek <jvanek@redhat.com> - 1.2-1
|
|
|
0be2c1 |
- updated to 1,3 which fixing nss minor issue
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Tue Jul 12 2016 Jiri Vanek <jvanek@redhat.com> - 1.1-5
|
|
|
0be2c1 |
- posttrans silenced, the error is appearing only in state, when there is nothing to copy
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
|
|
0be2c1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Fri Jan 08 2016 Jiri Vanek <jvanek@redhat.com> - 1.1-3
|
|
|
0be2c1 |
- pretrasn lua call now done in pcall (protected call)
|
|
|
0be2c1 |
- also posttrans now always return 0
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Dec 16 2015 Jiri Vanek <jvanek@redhat.com> - 1.1-2
|
|
|
0be2c1 |
- package now "installs" also during pretrans, so pretrasn scripts can use it
|
|
|
0be2c1 |
- pretrasn "install" is removed in postrans
|
|
|
0be2c1 |
|
|
|
0be2c1 |
* Wed Nov 25 2015 Jiri Vanek <jvanek@redhat.com> - 1.1-1
|
|
|
0be2c1 |
- initial package
|