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