|
|
3f0890 |
%global project copy_jdk_configs
|
|
|
3f0890 |
%global file %{project}.lua
|
|
|
3f0890 |
%global fixFile %{project}_fixFiles.sh
|
|
|
3f0890 |
%global rpm_state_dir %{_localstatedir}/lib/rpm-state
|
|
|
3f0890 |
|
|
|
3f0890 |
Name: copy-jdk-configs
|
|
|
3f0890 |
|
|
|
3f0890 |
# hash relevant to version tag
|
|
|
10d287 |
%global htag 88d3ed89f30d8b0eb4877d860fa8d951f224f156
|
|
|
10d287 |
Version: 4.0
|
|
|
7243a5 |
Release: 2%{?dist}
|
|
|
3f0890 |
Summary: JDKs configuration files copier
|
|
|
3f0890 |
|
|
|
3f0890 |
License: BSD
|
|
|
3f0890 |
URL: https://pagure.io/%{project}
|
|
|
3f0890 |
Source0: %{URL}/blob/%{htag}/f/%{file}
|
|
|
3f0890 |
Source1: %{URL}/blob/%{htag}/f/LICENSE
|
|
|
3f0890 |
Source2: %{URL}/blob/%{htag}/f/%{fixFile}
|
|
|
3f0890 |
|
|
|
3f0890 |
# 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)
|
|
|
3f0890 |
%global pretrans_install %(cat %{SOURCE0} | sed s/%%/%%%%/g | sed s/\\^%%%%/^%%/g)
|
|
|
3f0890 |
|
|
|
3f0890 |
BuildArch: noarch
|
|
|
3f0890 |
|
|
|
3f0890 |
Requires: lua
|
|
|
7243a5 |
#Requires: lua-posix
|
|
|
10d287 |
# rh1965305 - copy-jdk-configs script uses find and xargs but RPM does not depend on them
|
|
|
10d287 |
Requires: findutils
|
|
|
10d287 |
OrderWithRequires: findutils
|
|
|
3f0890 |
|
|
|
3f0890 |
%description
|
|
|
3f0890 |
Utility script to transfer JDKs configuration files between updates or for
|
|
|
3f0890 |
archiving. With script to fix incorrectly created rpmnew files
|
|
|
3f0890 |
|
|
|
3f0890 |
%prep
|
|
|
3f0890 |
cp -a %{SOURCE1} .
|
|
|
3f0890 |
|
|
|
3f0890 |
|
|
|
3f0890 |
%build
|
|
|
3f0890 |
#blob
|
|
|
3f0890 |
|
|
|
3f0890 |
%pretrans -p <lua>
|
|
|
3f0890 |
function createPretransScript()
|
|
|
3f0890 |
-- the sript must be available during pretrans, so multiply it to tmp
|
|
|
3f0890 |
os.execute("mkdir -p %{rpm_state_dir}")
|
|
|
3f0890 |
temp_path="%{rpm_state_dir}/%{file}"
|
|
|
3f0890 |
-- print("generating " .. temp_path)
|
|
|
3f0890 |
file = io.open(temp_path, "w")
|
|
|
3f0890 |
file:write([[%{pretrans_install}]])
|
|
|
3f0890 |
file:close()
|
|
|
3f0890 |
end
|
|
|
3f0890 |
|
|
|
3f0890 |
-- in netinst, the above call may fail. pcall should save instalation (as there is nothing to copy anyway)
|
|
|
3f0890 |
-- https://bugzilla.redhat.com/show_bug.cgi?id=1295701
|
|
|
3f0890 |
-- todo, decide whether to check for {rpm_state_dir} and skip on not-existing, or keep creating
|
|
|
3f0890 |
if pcall(createPretransScript) then
|
|
|
3f0890 |
-- ok
|
|
|
3f0890 |
else
|
|
|
3f0890 |
-- print("Error running %{name} pretrans.")
|
|
|
3f0890 |
end
|
|
|
3f0890 |
|
|
|
3f0890 |
%install
|
|
|
3f0890 |
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}
|
|
|
10d287 |
cp -a %{SOURCE0} $RPM_BUILD_ROOT/%{_libexecdir}/%{file}
|
|
|
3f0890 |
chmod 644 $RPM_BUILD_ROOT/%{_libexecdir}/%{file}
|
|
|
3f0890 |
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_libexecdir}/%{fixFile}
|
|
|
3f0890 |
|
|
|
3f0890 |
%posttrans
|
|
|
3f0890 |
# remove file created in pretrans
|
|
|
3f0890 |
# echo "removing %{rpm_state_dir}/%{file}" || :
|
|
|
3f0890 |
rm "%{rpm_state_dir}/%{file}" 2> /dev/null || :
|
|
|
3f0890 |
|
|
|
3f0890 |
%files
|
|
|
3f0890 |
%{_libexecdir}/%{file}
|
|
|
3f0890 |
%{_libexecdir}/%{fixFile}
|
|
|
3f0890 |
%license LICENSE
|
|
|
3f0890 |
|
|
|
3f0890 |
%changelog
|
|
|
7243a5 |
* Tue Jun 08 2021 Jiri Vanek <jvanek@redhat.com> - 4.0-2
|
|
|
7243a5 |
- commented out requires lua-posix, it was always commented out in el8, never in fedora. IDK
|
|
|
7243a5 |
- Resolves: rhbz#1953923
|
|
|
7243a5 |
|
|
|
10d287 |
* Tue Jun 08 2021 Jiri Vanek <jvanek@redhat.com> - 4.0-1
|
|
|
10d287 |
- rebased to 4.0
|
|
|
10d287 |
- Resolves: rhbz#1953923
|
|
|
10d287 |
|
|
|
3f0890 |
* Thu Jul 09 2020 Jiri Vanek <jvanek@redhat.com> - 3.7-3
|
|
|
3f0890 |
- added link to http://hydra.brq.redhat.com:8080/view/c~j~c/#projectstatus
|
|
|
3f0890 |
- removed source check from test.yaml
|
|
|
3f0890 |
- added gating.yaml
|
|
|
3f0890 |
- Resolves: rhbz#1855374
|
|
|
3f0890 |
|
|
|
3f0890 |
* Thu Jul 09 2020 Jiri Vanek <jvanek@redhat.com> - 3.7-3
|
|
|
3f0890 |
- added gatnig placeholder
|
|
|
3f0890 |
- Resolves: rhbz#1855374
|
|
|
3f0890 |
|
|
|
3f0890 |
* Thu Jul 09 2020 Jiri Vanek <jvanek@redhat.com> - 3.7-2
|
|
|
3f0890 |
- added nss.fips.cfg to cared files
|
|
|
3f0890 |
- Resolves: rhbz#1855374
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.7-1
|
|
|
3f0890 |
- udpated to latst relase
|
|
|
3f0890 |
- configurable blacklist
|
|
|
3f0890 |
- listed all java keystores
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-12
|
|
|
3f0890 |
- blackidrs put on single line
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed May 02 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-11
|
|
|
3f0890 |
- added more files to balcklist based on oralce and ibm jdks
|
|
|
3f0890 |
|
|
|
3f0890 |
* Mon Apr 30 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-10
|
|
|
3f0890 |
- added javaws.policy and blacklist
|
|
|
3f0890 |
- fixed rhbz#1541838
|
|
|
3f0890 |
|
|
|
3f0890 |
* Tue Apr 03 2018 Jiri Vanek <jvanek@redhat.com> - 3.3-5
|
|
|
3f0890 |
- fixed rhbz#1541838
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-3
|
|
|
3f0890 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Oct 18 2017 Jiri Vanek <jvanek@redhat.com> - 3.3-2
|
|
|
3f0890 |
- added another subdirs for policies files
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Oct 18 2017 Jiri Vanek <jvanek@redhat.com> - 3.3-1
|
|
|
3f0890 |
- handled new paths for policies files
|
|
|
3f0890 |
|
|
|
3f0890 |
* Thu Oct 05 2017 Jiri Vanek <jvanek@redhat.com> - 3.1-1
|
|
|
3f0890 |
- moved to newest release 3.1 whcih conf and lib/security as directories
|
|
|
3f0890 |
|
|
|
3f0890 |
* Thu Oct 05 2017 Jiri Vanek <jvanek@redhat.com> - 3.0-1
|
|
|
3f0890 |
- moved to newest release 3.0 whcih support linked configs
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-2
|
|
|
3f0890 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Feb 22 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3
|
|
|
3f0890 |
- updated to latest head
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Feb 22 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2
|
|
|
3f0890 |
- added "jre/lib/security/blacklisted.certs" to cared files
|
|
|
3f0890 |
|
|
|
3f0890 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
|
|
|
3f0890 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
3f0890 |
|
|
|
3f0890 |
* Fri Feb 03 2017 Jiri Vanek <jvanek@redhat.com> - 2.1-1
|
|
|
3f0890 |
- moved to newest release 2.1
|
|
|
3f0890 |
|
|
|
3f0890 |
* Fri Jan 20 2017 Jiri Vanek <jvanek@redhat.com> - 2.0-1
|
|
|
3f0890 |
- moved to new upstream at pagure.io
|
|
|
3f0890 |
- moved to newest release 2.0
|
|
|
3f0890 |
- added new script of copy_jdk_configs_fixFiles.sh
|
|
|
3f0890 |
- copy_jdk_configs.lua aligned to it
|
|
|
3f0890 |
|
|
|
3f0890 |
* Tue Aug 09 2016 Jiri Vanek <jvanek@redhat.com> - 1.2-1
|
|
|
3f0890 |
- updated to 1,3 which fixing nss minor issue
|
|
|
3f0890 |
|
|
|
3f0890 |
* Tue Jul 12 2016 Jiri Vanek <jvanek@redhat.com> - 1.1-5
|
|
|
3f0890 |
- posttrans silenced, the error is appearing only in state, when there is nothing to copy
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
|
|
|
3f0890 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
3f0890 |
|
|
|
3f0890 |
* Fri Jan 08 2016 Jiri Vanek <jvanek@redhat.com> - 1.1-3
|
|
|
3f0890 |
- pretrasn lua call now done in pcall (protected call)
|
|
|
3f0890 |
- also posttrans now always return 0
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Dec 16 2015 Jiri Vanek <jvanek@redhat.com> - 1.1-2
|
|
|
3f0890 |
- package now "installs" also during pretrans, so pretrasn scripts can use it
|
|
|
3f0890 |
- pretrasn "install" is removed in postrans
|
|
|
3f0890 |
|
|
|
3f0890 |
* Wed Nov 25 2015 Jiri Vanek <jvanek@redhat.com> - 1.1-1
|
|
|
3f0890 |
- initial package
|