Skip to content

Commit

Permalink
prepare for release 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
okbob committed Jul 12, 2015
1 parent b4be0f1 commit 32692dc
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 22 deletions.
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "plpgsql_check",
"abstract": "Additional tools for plpgsql functions validation",
"description": "The plpgsql_check is PostgreSQL extension with functionality for direct or indirect extra validation of functions in plpgsql language. It verifies a validity of SQL identifiers used in plpgsql code. It try to identify a performance issues.",
"version": "1.0.1",
"version": "1.0.2",
"maintainer": "Pavel STEHULE <[email protected]>",
"license": "bsd",
"provides": {
"plpgsql_check": {
"abstract": "Additional tools for plpgsql functions validation",
"file": "sql/plpgsql_check_active.sql",
"docfile": "README.md",
"version": "1.0.1"
"version": "1.0.2"
}
},
"prereqs": {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plpgsql_check
I founded this project, because I wanted to publish the code I wrote in the last two years,
when I tried to write enhanced checking for PostgreSQL upstream. It was not fully
successful - integration into upstream requires some larger plpgsql refactoring - probably
it will not be done in next two years (now is Dec 2013). But written code is fully functional
it will not be done in next years (now is Dec 2013). But written code is fully functional
and can be used in production (and it is used in production). So, I created this extension to
be available for all plpgsql developers.

Expand All @@ -17,7 +17,7 @@ I invite any ideas, patches, bugreports
plpgsql_check is next generation of plpgsql_lint. It allows to check source code by explicit call
<i>plpgsql_check_function</i>.

PostgreSQL 9.2 is required, PostgreSQL 9.3 and 9.4 are supported
PostgreSQL 9.2 is required, PostgreSQL 9.3, 9.4 and 9.5 are supported

The SQL statements inside PL/pgSQL functions are checked by validator for semantic errors. These errors
can be found by plpgsql_check_function:
Expand Down
15 changes: 9 additions & 6 deletions postgresql92-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 0.9.3
Release: 1%{?dist}
Version: 1.0.2
Release: 2%{?dist}
Summary: Additional tools for plpgsql functions validation

Group: Applications/Databases
License: BSD
URL: https://github.com/okbob/plpgsql_check/archive/v0.9.3.zip
Source0: plpgsql_check-0.9.3.zip
URL: https://github.com/okbob/plpgsql_check/archive/v1.0.2.zip
Source0: plpgsql_check-1.0.2.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: postgresql%{pgmajorversion}-devel
Expand All @@ -23,7 +23,7 @@ a validity of SQL identifiers used in plpgsql code. It try to identify
a performance issues.

%prep
%setup -q -n %{sname}-0.9.3
%setup -q -n %{sname}-1.0.2


%build
Expand All @@ -43,11 +43,14 @@ rm -rf %{buildroot}
%defattr(644,root,root,755)
%doc README.md
%{pginstdir}/lib/plpgsql_check.so
%{pginstdir}/share/extension/plpgsql_check--0.9.sql
%{pginstdir}/share/extension/plpgsql_check--1.0.sql
%{pginstdir}/share/extension/plpgsql_check.control


%changelog
* Thu Jul 09 2015 - Pavel STEHULE <[email protected]> 1.0.2-2
- bugfix release

* Fri Dec 19 2014 - Pavel STEHULE <[email protected]> 0.9.3-1
- fix a broken record field type checking
- add check for assign to array field
Expand Down
15 changes: 9 additions & 6 deletions postgresql93-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 0.9.3
Release: 1%{?dist}
Version: 1.0.2
Release: 2%{?dist}
Summary: Additional tools for plpgsql functions validation

Group: Applications/Databases
License: BSD
URL: https://github.com/okbob/plpgsql_check/archive/v0.9.3.zip
Source0: plpgsql_check-0.9.3.zip
URL: https://github.com/okbob/plpgsql_check/archive/v1.0.2.zip
Source0: plpgsql_check-1.0.2.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: postgresql%{pgmajorversion}-devel
Expand All @@ -23,7 +23,7 @@ a validity of SQL identifiers used in plpgsql code. It try to identify
a performance issues.

%prep
%setup -q -n %{sname}-0.9.3
%setup -q -n %{sname}-1.0.2


%build
Expand All @@ -43,11 +43,14 @@ rm -rf %{buildroot}
%defattr(644,root,root,755)
%doc README.md
%{pginstdir}/lib/plpgsql_check.so
%{pginstdir}/share/extension/plpgsql_check--0.9.sql
%{pginstdir}/share/extension/plpgsql_check--1.0.sql
%{pginstdir}/share/extension/plpgsql_check.control


%changelog
* Thu Jul 09 2015 - Pavel STEHULE <[email protected]> 1.0.2-2
- bugfix release

* Fri Dec 19 2014 - Pavel STEHULE <[email protected]> 0.9.3-1
- fix a broken record field type checking
- add check for assign to array field
Expand Down
15 changes: 9 additions & 6 deletions postgresql94-plpgsql_check.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 0.9.3
Release: 1%{?dist}
Version: 1.0.2
Release: 2%{?dist}
Summary: Additional tools for plpgsql functions validation

Group: Applications/Databases
License: BSD
URL: https://github.com/okbob/plpgsql_check/archive/v0.9.3.zip
Source0: plpgsql_check-0.9.3.zip
URL: https://github.com/okbob/plpgsql_check/archive/v1.0.2.zip
Source0: plpgsql_check-1.0.2.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: postgresql%{pgmajorversion}-devel
Expand All @@ -23,7 +23,7 @@ a validity of SQL identifiers used in plpgsql code. It try to identify
a performance issues.

%prep
%setup -q -n %{sname}-0.9.3
%setup -q -n %{sname}-1.0.2


%build
Expand All @@ -43,11 +43,14 @@ rm -rf %{buildroot}
%defattr(644,root,root,755)
%doc README.md
%{pginstdir}/lib/plpgsql_check.so
%{pginstdir}/share/extension/plpgsql_check--0.9.sql
%{pginstdir}/share/extension/plpgsql_check--1.0.sql
%{pginstdir}/share/extension/plpgsql_check.control


%changelog
* Thu Jul 09 2015 - Pavel STEHULE <[email protected]> 1.0.2-2
- bugfix release

* Fri Dec 19 2014 - Pavel STEHULE <[email protected]> 0.9.3-1
- fix a broken record field type checking
- add check for assign to array field
Expand Down
59 changes: 59 additions & 0 deletions postgresql95-plpgsql_check.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
%global pgmajorversion 95
%global pginstdir /usr/pgsql-9.5
%global sname plpgsql_check

Name: %{sname}_%{pgmajorversion}
Version: 1.0.2
Release: 2%{?dist}
Summary: Additional tools for plpgsql functions validation

Group: Applications/Databases
License: BSD
URL: https://github.com/okbob/plpgsql_check/archive/v1.0.2.zip
Source0: plpgsql_check-1.0.2.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: postgresql%{pgmajorversion}-devel
Requires: postgresql%{pgmajorversion}

%description
The plpgsql_check is PostgreSQL extension with functionality for direct
or indirect extra validation of functions in plpgsql language. It verifies
a validity of SQL identifiers used in plpgsql code. It try to identify
a performance issues.

%prep
%setup -q -n %{sname}-1.0.2


%build
PATH="%{pginstdir}/bin;$PATH" ; export PATH
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS

USE_PGXS=1 make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make USE_PGXS=1 DESTDIR=%{buildroot} install

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc README.md
%{pginstdir}/lib/plpgsql_check.so
%{pginstdir}/share/extension/plpgsql_check--1.0.sql
%{pginstdir}/share/extension/plpgsql_check.control


%changelog
* Thu Jul 09 2015 - Pavel STEHULE <[email protected]> 1.0.2-2
- bugfix release

* Fri Dec 19 2014 - Pavel STEHULE <[email protected]> 0.9.3-1
- fix a broken record field type checking
- add check for assign to array field

* Mon Aug 25 2014 - Pavel STEHULE <[email protected]> 0.9.1-1
- Initial packaging

0 comments on commit 32692dc

Please sign in to comment.