some cleanups

Version: 10.5-2
This commit is contained in:
Pavel Raiskup 2018-08-27 14:04:24 +02:00
parent 51abe650bc
commit 15c9a5a7e3

View File

@ -59,7 +59,7 @@ Summary: PostgreSQL client programs
Name: postgresql Name: postgresql
%global majorversion 10 %global majorversion 10
Version: 10.5 Version: 10.5
Release: 1%{?dist} Release: 2%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI # The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well. # recognizes it as an independent license, so we do as well.
@ -375,7 +375,13 @@ benchmarks.
%prep %prep
( cd %_sourcedir; sha256sum -c %{SOURCE16}; sha256sum -c %{SOURCE17} ) (
cd "$(dirname "%{SOURCE0}")"
sha256sum -c %{SOURCE16}
%if %upgrade
sha256sum -c %{SOURCE17}
%endif
)
%setup -q -a 12 %setup -q -a 12
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
@ -795,24 +801,14 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plperl.so
rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so rm -f $RPM_BUILD_ROOT%{_bindir}/pgsql/hstore_plpython2.so
%endif %endif
# initialize file lists
cp /dev/null main.lst
cp /dev/null libs.lst
cp /dev/null server.lst
cp /dev/null contrib.lst
cp /dev/null devel.lst
cp /dev/null plperl.lst
cp /dev/null pltcl.lst
cp /dev/null plpython.lst
cp /dev/null plpython3.lst
%if %nls %if %nls
find_lang_bins () find_lang_bins ()
{ {
lstfile=$1 ; shift lstfile=$1 ; shift
cp /dev/null "$lstfile"
for binary; do for binary; do
%find_lang "$binary"-%{majorversion} %find_lang "$binary"-%{majorversion}
cat "$binary"-%{majorversion}.lang >>$lstfile cat "$binary"-%{majorversion}.lang >>"$lstfile"
done done
} }
find_lang_bins devel.lst ecpg pg_config find_lang_bins devel.lst ecpg pg_config
@ -1198,6 +1194,9 @@ make -C postgresql-setup-%{setup_version} check
%changelog %changelog
* Mon Aug 27 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-2
- packaging cleanup
* Wed Aug 08 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-1 * Wed Aug 08 2018 Pavel Raiskup <praiskup@redhat.com> - 10.5-1
- update to 10.5 per release notes: - update to 10.5 per release notes:
https://www.postgresql.org/docs/10/static/release-10-5.html https://www.postgresql.org/docs/10/static/release-10-5.html