Skip to content

Commit 48648b6

Browse files
committed
spec file for PostgreSQL 15
1 parent 271c8fe commit 48648b6

File tree

1 file changed

+164
-0
lines changed

1 file changed

+164
-0
lines changed

postgresql15-plpgsql_check.spec

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
%global pgmajorversion 15
2+
%global pginstdir /usr/pgsql-15
3+
%global sname plpgsql_check
4+
5+
Name: %{sname}_%{pgmajorversion}
6+
Version: 2.1.5
7+
Release: 1%{?dist}
8+
Summary: Additional tools for plpgsql functions validation
9+
10+
Group: Applications/Databases
11+
License: BSD
12+
URL: https://github.com/okbob/plpgsql_check/archive/v%{version}.zip
13+
Source0: plpgsql_check-%{version}.zip
14+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15+
16+
BuildRequires: postgresql%{pgmajorversion}-devel
17+
Requires: postgresql%{pgmajorversion}
18+
19+
%description
20+
The plpgsql_check is PostgreSQL extension with functionality for direct
21+
or indirect extra validation of functions in plpgsql language. It verifies
22+
a validity of SQL identifiers used in plpgsql code. It try to identify
23+
a performance issues.
24+
25+
%prep
26+
%setup -q -n %{sname}-%{version}
27+
28+
29+
%build
30+
PATH="%{pginstdir}/bin;$PATH" ; export PATH
31+
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
32+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
33+
34+
%install
35+
rm -rf %{buildroot}
36+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
37+
38+
%clean
39+
rm -rf %{buildroot}
40+
41+
%files
42+
%defattr(644,root,root,755)
43+
%doc README.md
44+
%{pginstdir}/lib/plpgsql_check.so
45+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
46+
%{pginstdir}/share/extension/plpgsql_check.control
47+
%{pginstdir}/lib/bitcode/*.bc
48+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
49+
%{pginstdir}/share/extension/*.control
50+
51+
%changelog
52+
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
53+
- possibility to count statement's aborted execution
54+
- possibility to count "unfinished" statements due exception
55+
56+
* Mon Sep 27 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.0.0
57+
- pragma type for setting type to record variable
58+
- pragma table for creating ephemeral table
59+
60+
* Mon Jun 21 2021 - Pavel Stehule <pavel.stehule@gmail.com> 1.17.0
61+
- remove support for PostgreSQL 9.5 and 9.6
62+
63+
* Sat Mar 6 2021 - Pavel Stehule <pavel.stehule@gmail.com> 1.16.0
64+
- plpgsql_profiler_functions_all
65+
66+
* Mon Nov 16 2020 - Pavel Stehule <pavel.stehule@gmail.com> 1.14.0
67+
- queryid can be displayed in profiler's reports (Julien Rouhaud)
68+
- new profiler's GUC plpgsql_check.profiler_max_shared_chunks (Julien Rouhaud)
69+
- few minor bugfixes
70+
71+
* Fri Aug 14 2020 - Pavel Stehule <pavel.stehule@gmail.com> 1.13.0
72+
- tracer
73+
- pragma support to control checks, warnings and tracing
74+
75+
* Thu Jul 2 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.11.0
76+
- possibility to check functions with arguments of polymorphic type
77+
- possibility to specify type used as real type instead polymorphic type
78+
79+
* Fri Jun 05 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.10.0
80+
- deduction record type structure from result of polymorphic function
81+
82+
* Mon Apr 27 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.9.1
83+
- minor bugfixes
84+
85+
* Mon Mar 30 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.9.0
86+
- statement and branch coverage metrics
87+
- remove support for Postgres 9.4
88+
89+
* Mon Jan 06 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.2
90+
- fix of compilation issue
91+
92+
* Sun Jan 05 2020 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.1
93+
- cleaner detection function oid from name or signature
94+
95+
* Sun Dec 29 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.8.0
96+
- use Postgres tool for calling functions from plpgsql library instead dynamic linking
97+
- it solve issues related to dependency plpgsq_check on plpgsql
98+
99+
* Mon Sep 23 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.6
100+
- fix false alarm - multiple plans in EXECUTE statement, and possible crash
101+
102+
* Tue Sep 10 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.5
103+
- allow some work on tables with rules
104+
105+
* Wed Jul 24 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.3
106+
- profiler bugfixes
107+
108+
* Tue May 21 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.2
109+
- profiler bugfixes
110+
111+
* Fri Apr 26 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.1
112+
- bugfixes
113+
114+
* Wed Apr 17 2019 - Pavel STEHULE <pavel.stehule@gmail.com> 1.7.0
115+
- check of format of fmt string of "format" function
116+
- better check of dynamic SQL when it is const string
117+
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
118+
119+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
120+
- metada fix
121+
122+
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
123+
- minor bugfixes
124+
125+
* Sun Dec 2 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.0-1
126+
- possible to show function's dependency on functions and tables
127+
- integrated profiler
128+
- bug fixes (almost false alarms)
129+
130+
* Wed Jun 6 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.3-1
131+
- PostgreSQL 11 support
132+
- detect hidden casts in expressions
133+
134+
* Thu Oct 26 2017 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.2-1
135+
- never read variables detection
136+
- fix false alarm on MOVE command
137+
138+
* Fri Sep 15 2017 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.1-1
139+
- missing RETURN detection
140+
- fix some bugs and false alarms
141+
- PostgreSQL 11 support
142+
143+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
144+
- support extra warnings - shadowed variables
145+
146+
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1
147+
- minor fixes, support for PostgreSQL 10
148+
149+
* Fri Apr 15 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.4-1
150+
- support for PostgreSQL 9.6
151+
152+
* Mon Oct 12 2015 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.3-1
153+
- fix false alarms of unused cursor variables
154+
- fix regress tests
155+
156+
* Thu Jul 09 2015 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.2-2
157+
- bugfix release
158+
159+
* Fri Dec 19 2014 - Pavel STEHULE <pavel.stehule@gmail.com> 0.9.3-1
160+
- fix a broken record field type checking
161+
- add check for assign to array field
162+
163+
* Mon Aug 25 2014 - Pavel STEHULE <pavel.stehule@gmail.com> 0.9.1-1
164+
- Initial packaging

0 commit comments

Comments
 (0)