Skip to content

Commit 271c8fe

Browse files
committed
fix spec files
1 parent b75a322 commit 271c8fe

File tree

5 files changed

+40
-30
lines changed

5 files changed

+40
-30
lines changed

postgresql10-plpgsql_check.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ a performance issues.
2828
%build
2929
PATH="%{pginstdir}/bin;$PATH" ; export PATH
3030
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
31-
32-
USE_PGXS=1 make %{?_smp_mflags}
31+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3332

3433
%install
3534
rm -rf %{buildroot}
36-
make USE_PGXS=1 DESTDIR=%{buildroot} install
35+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3736

3837
%clean
3938
rm -rf %{buildroot}
@@ -42,8 +41,11 @@ rm -rf %{buildroot}
4241
%defattr(644,root,root,755)
4342
%doc README.md
4443
%{pginstdir}/lib/plpgsql_check.so
45-
%{pginstdir}/share/extension/plpgsql_check--2.0.sql
44+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
4645
%{pginstdir}/share/extension/plpgsql_check.control
46+
%{pginstdir}/lib/bitcode/*.bc
47+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
48+
%{pginstdir}/share/extension/*.control
4749

4850
%changelog
4951
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
@@ -113,7 +115,7 @@ rm -rf %{buildroot}
113115
- better check of dynamic SQL when it is const string
114116
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
115117

116-
* Fri Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
118+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
117119
- metada fix
118120

119121
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
@@ -137,7 +139,7 @@ rm -rf %{buildroot}
137139
- fix some bugs and false alarms
138140
- PostgreSQL 11 support
139141

140-
* Fri Now 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
142+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
141143
- support extra warnings - shadowed variables
142144

143145
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1

postgresql11-plpgsql_check.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ a performance issues.
2929
%build
3030
PATH="%{pginstdir}/bin;$PATH" ; export PATH
3131
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
32-
33-
USE_PGXS=1 make %{?_smp_mflags}
32+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3433

3534
%install
3635
rm -rf %{buildroot}
37-
make USE_PGXS=1 DESTDIR=%{buildroot} install
36+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3837

3938
%clean
4039
rm -rf %{buildroot}
@@ -43,8 +42,11 @@ rm -rf %{buildroot}
4342
%defattr(644,root,root,755)
4443
%doc README.md
4544
%{pginstdir}/lib/plpgsql_check.so
46-
%{pginstdir}/share/extension/plpgsql_check--2.0.sql
45+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
4746
%{pginstdir}/share/extension/plpgsql_check.control
47+
%{pginstdir}/lib/bitcode/*.bc
48+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
49+
%{pginstdir}/share/extension/*.control
4850

4951
%changelog
5052
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
@@ -114,7 +116,7 @@ rm -rf %{buildroot}
114116
- better check of dynamic SQL when it is const string
115117
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
116118

117-
* Fri Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
119+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
118120
- metada fix
119121

120122
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
@@ -138,7 +140,7 @@ rm -rf %{buildroot}
138140
- fix some bugs and false alarms
139141
- PostgreSQL 11 support
140142

141-
* Fri Now 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
143+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
142144
- support extra warnings - shadowed variables
143145

144146
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1

postgresql12-plpgsql_check.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ a performance issues.
2929
%build
3030
PATH="%{pginstdir}/bin;$PATH" ; export PATH
3131
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
32-
33-
USE_PGXS=1 make %{?_smp_mflags}
32+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3433

3534
%install
3635
rm -rf %{buildroot}
37-
make USE_PGXS=1 DESTDIR=%{buildroot} install
36+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3837

3938
%clean
4039
rm -rf %{buildroot}
@@ -43,8 +42,11 @@ rm -rf %{buildroot}
4342
%defattr(644,root,root,755)
4443
%doc README.md
4544
%{pginstdir}/lib/plpgsql_check.so
46-
%{pginstdir}/share/extension/plpgsql_check--2.0.sql
45+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
4746
%{pginstdir}/share/extension/plpgsql_check.control
47+
%{pginstdir}/lib/bitcode/*.bc
48+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
49+
%{pginstdir}/share/extension/*.control
4850

4951
%changelog
5052
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
@@ -114,7 +116,7 @@ rm -rf %{buildroot}
114116
- better check of dynamic SQL when it is const string
115117
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
116118

117-
* Fri Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
119+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
118120
- metada fix
119121

120122
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
@@ -138,7 +140,7 @@ rm -rf %{buildroot}
138140
- fix some bugs and false alarms
139141
- PostgreSQL 11 support
140142

141-
* Fri Now 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
143+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
142144
- support extra warnings - shadowed variables
143145

144146
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1

postgresql13-plpgsql_check.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ a performance issues.
2929
%build
3030
PATH="%{pginstdir}/bin;$PATH" ; export PATH
3131
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
32-
33-
USE_PGXS=1 make %{?_smp_mflags}
32+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3433

3534
%install
3635
rm -rf %{buildroot}
37-
make USE_PGXS=1 DESTDIR=%{buildroot} install
36+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3837

3938
%clean
4039
rm -rf %{buildroot}
@@ -43,8 +42,11 @@ rm -rf %{buildroot}
4342
%defattr(644,root,root,755)
4443
%doc README.md
4544
%{pginstdir}/lib/plpgsql_check.so
46-
%{pginstdir}/share/extension/plpgsql_check--2.0.sql
45+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
4746
%{pginstdir}/share/extension/plpgsql_check.control
47+
%{pginstdir}/lib/bitcode/*.bc
48+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
49+
%{pginstdir}/share/extension/*.control
4850

4951
%changelog
5052
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
@@ -114,7 +116,7 @@ rm -rf %{buildroot}
114116
- better check of dynamic SQL when it is const string
115117
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
116118

117-
* Fri Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
119+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
118120
- metada fix
119121

120122
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
@@ -138,7 +140,7 @@ rm -rf %{buildroot}
138140
- fix some bugs and false alarms
139141
- PostgreSQL 11 support
140142

141-
* Fri Now 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
143+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
142144
- support extra warnings - shadowed variables
143145

144146
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1

postgresql14-plpgsql_check.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ a performance issues.
2929
%build
3030
PATH="%{pginstdir}/bin;$PATH" ; export PATH
3131
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
32-
33-
USE_PGXS=1 make %{?_smp_mflags}
32+
make USE_PGXS=1 PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3433

3534
%install
3635
rm -rf %{buildroot}
37-
make USE_PGXS=1 DESTDIR=%{buildroot} install
36+
make install DESTDIR=%{buildroot} PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
3837

3938
%clean
4039
rm -rf %{buildroot}
@@ -43,8 +42,11 @@ rm -rf %{buildroot}
4342
%defattr(644,root,root,755)
4443
%doc README.md
4544
%{pginstdir}/lib/plpgsql_check.so
46-
%{pginstdir}/share/extension/plpgsql_check--2.0.sql
45+
%{pginstdir}/share/extension/plpgsql_check--2.1.sql
4746
%{pginstdir}/share/extension/plpgsql_check.control
47+
%{pginstdir}/lib/bitcode/*.bc
48+
%{pginstdir}/lib/bitcode/plpgsql_check/src/*.bc
49+
%{pginstdir}/share/extension/*.control
4850

4951
%changelog
5052
* Wed Dec 29 2021 - Pavel Stehule <pavel.stehule@gmail.com> 2.1.0
@@ -114,7 +116,7 @@ rm -rf %{buildroot}
114116
- better check of dynamic SQL when it is const string
115117
- check of SQL injection vulnerability of stmt expression at EXECUTE stmt
116118

117-
* Fri Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
119+
* Sun Dec 23 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.2-1
118120
- metada fix
119121

120122
* Fri Dec 21 2018 - Pavel STEHULE <pavel.stehule@gmail.com> 1.4.1-1
@@ -138,7 +140,7 @@ rm -rf %{buildroot}
138140
- fix some bugs and false alarms
139141
- PostgreSQL 11 support
140142

141-
* Fri Now 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
143+
* Fri Nov 11 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.2.0-1
142144
- support extra warnings - shadowed variables
143145

144146
* Thu Aug 25 2016 - Pavel STEHULE <pavel.stehule@gmail.com> 1.0.5-1

0 commit comments

Comments
 (0)