diff --git a/.gitignore b/.gitignore index 8b8c838..6a237d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -/postgresql-setup-*.tar.gz -/postgresql-*-US.pdf -/postgresql-*.tar.bz2 -/postgresql-*.tar.bz2.sha256 +/postgresql-9.4.12.tar.bz2 +/postgresql-9.4.12.tar.bz2.sha256 +/postgresql-9.5.7.tar.bz2 +/postgresql-9.5.7.tar.bz2.sha256 +/postgresql-setup-4.0.tar.gz +/postgresql-9.5.7-US.pdf diff --git a/generate-pdf.sh b/generate-pdf.sh index a268981..e0ed008 100755 --- a/generate-pdf.sh +++ b/generate-pdf.sh @@ -18,7 +18,10 @@ set -e # Pass package version (e.g., 9.1.2) as argument VERSION=$1 +test -z "$VERSION" && VERSION=`awk '/^Version:/ { print $2; }' postgresql.spec` + TARGETFILE=postgresql-$VERSION-US.pdf +test -f "$TARGETFILE" && echo "$TARGETFILE exists" && exit 1 echo Building $TARGETFILE ... diff --git a/generate-sources-and-gitignore.sh b/generate-sources-and-gitignore.sh new file mode 100755 index 0000000..51b2fc8 --- /dev/null +++ b/generate-sources-and-gitignore.sh @@ -0,0 +1,13 @@ +#! /bin/sh + +rm sources .gitignore +set -e +spectool -S *.spec | cut -d' ' -f2 \ + | grep -E -e 'postgresql-.*\.tar\.*' -e 'postgresql.*\.pdf' | sort | \ +while read line +do + base=`basename "$line"` + echo " * handling $base" + sha512sum --tag "$base" >> sources + echo "/$base" >> .gitignore +done diff --git a/postgresql.spec b/postgresql.spec index ef4af1f..8b1a078 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -66,7 +66,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 9.5 -Version: 9.5.6 +Version: 9.5.7 Release: 1%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI @@ -82,7 +82,7 @@ Url: http://www.postgresql.org/ # in-place upgrade of an old database. In most cases it will not be critical # that this be kept up with the latest minor release of the previous series; # but update when bugs affecting pg_dump output are fixed. -%global prevversion 9.4.11 +%global prevversion 9.4.12 %global prevmajorversion 9.4 %global setup_version 4.0 @@ -1216,6 +1216,10 @@ fi %endif %changelog +* Thu May 11 2017 Pavel Raiskup - 9.5.7-1 +- update to 9.5.7 per release notes: + http://www.postgresql.org/docs/9.5/static/release-9-5-7.html + * Tue Feb 07 2017 Pavel Raiskup - 9.5.6-1 - update to 9.5.6 per release notes: http://www.postgresql.org/docs/9.5/static/release-9-5-6.html diff --git a/sources b/sources index 3f4fc86..6a127c8 100644 --- a/sources +++ b/sources @@ -1,6 +1,6 @@ -SHA512 (postgresql-9.4.11.tar.bz2) = a3ed866d82ab4b90c2a7ec2abec0308015845947f42b76e420cce8f268e1c374806a9fab00ba0563d742a53014a30fa0eaa90804a09fd162b76fcbfbeff6b70f -SHA512 (postgresql-9.4.11.tar.bz2.sha256) = 6fe7cb5b67b7cbbbc9b1351695dcc889679b2572fc099c6d3de69791e85b7b7473970046b33bb1ea2418f612799d4e82010a748b877ebca27045c3ed26e11a0b -SHA512 (postgresql-9.5.6.tar.bz2) = fabaeb2d4841ca2f2fd7b0f9c90368debc91f569ade5ad4dc9250c27d790a97ed58a670319f0fe59404fce7e986e8dafb1408edbe6fc149531bdb230b1b913fe -SHA512 (postgresql-9.5.6.tar.bz2.sha256) = 6c8581fe42bb74ec095e244dc84c55e0c3e8be9be6402d98d3794218e94543475025ee5624c566753bcfef498eccdb5947b671b12083d1194af3e6833df46f2f +SHA512 (postgresql-9.4.12.tar.bz2) = 69951f9e66069aad1049a0ea9fdcd7bf2f84b42e7c6e0f761d78ab22131a39cf56448ef0ddc28170b66970bf53edf2d2355530fcfc0a2dca92b66d69686b7ecb +SHA512 (postgresql-9.4.12.tar.bz2.sha256) = 21d805aac0e504275806c10115b0418c628fb1458f0fdcbc88ee824f9daca87bdfbfe533e0959320ca7348994200582d8d5bdcf2c3e6e34d0def547b10369a2e +SHA512 (postgresql-9.5.7.tar.bz2) = 0f879a8d7587739aa9a696d60f909f819d567c67dff7c730d5e856639ed78ebc35beeb3cdaf782573d7e62c7056560a934f64cf11ccac6e309f58bb82d1ca78f +SHA512 (postgresql-9.5.7.tar.bz2.sha256) = 60ac2b6bbfb40303b3fe30ce3685c637bcd89382ced722572d34e4248639e159c300c5bd28c4b094f54b1c72c7f2421f0d9db2cc06efc2e5814d4932e3c2d5e0 SHA512 (postgresql-setup-4.0.tar.gz) = ed5cb7046f9db4c16ef4f3f390768979b68cef47588c2e4b48efe7d4da815f5c656f58c1758e94b536a31a6ec4e2a5b1295752cac537561aea9c8c292b45b158 -SHA512 (postgresql-9.5.6-US.pdf) = 56f94e40224aba4ab0aa437fe476da83fecc992605efdf104c92a959530e55e95b4af0175d509b8fa50db9075dc0c8517e629dcfcb80a70336dfc47632f88053 +SHA512 (postgresql-9.5.7-US.pdf) = a3b9eaa0ef48d5d37e64161921c8cbb7c7271adfd34df7b094c9d60195a43607cb19e7afef098a1ad57bafe5e2304aa6caf0a3a1942712bc0892c694b1ebc2c3