Skip to content

Commit

Permalink
Postgres specs refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Nov 21, 2024
1 parent ce45ef8 commit 6363597
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 17 deletions.
1 change: 0 additions & 1 deletion specs/postgresql-12/SOURCES/postgresql-12-libs.conf

This file was deleted.

3 changes: 1 addition & 2 deletions specs/postgresql-12/postgresql-12.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Source2: Makefile.regress
Source3: pg_config.h
Source4: README.rpm-dist
Source5: ecpg_config.h
Source6: %{realname}-%{majorver}-libs.conf
Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf
Source8: %{realname}.pam
Source9: filter-requires-perl-Pg.sh
Expand Down Expand Up @@ -551,7 +550,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down
1 change: 0 additions & 1 deletion specs/postgresql-13/SOURCES/postgresql-13-libs.conf

This file was deleted.

3 changes: 1 addition & 2 deletions specs/postgresql-13/postgresql-13.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Source2: Makefile.regress
Source3: pg_config.h
Source4: README.rpm-dist
Source5: ecpg_config.h
Source6: %{realname}-%{majorver}-libs.conf
Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf
Source8: %{realname}.pam
Source9: filter-requires-perl-Pg.sh
Expand Down Expand Up @@ -550,7 +549,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down
1 change: 0 additions & 1 deletion specs/postgresql-14/SOURCES/postgresql-14-libs.conf

This file was deleted.

3 changes: 1 addition & 2 deletions specs/postgresql-14/postgresql-14.spec
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ Source2: Makefile.regress
Source3: pg_config.h
Source4: README.rpm-dist
Source5: ecpg_config.h
Source6: %{realname}-%{majorver}-libs.conf
Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf
Source8: %{realname}.pam
Source9: filter-requires-perl-Pg.sh
Expand Down Expand Up @@ -551,7 +550,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down
1 change: 0 additions & 1 deletion specs/postgresql-15/SOURCES/postgresql-15-libs.conf

This file was deleted.

3 changes: 1 addition & 2 deletions specs/postgresql-15/postgresql-15.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Source2: Makefile.regress
Source3: pg_config.h
Source4: README.rpm-dist
Source5: ecpg_config.h
Source6: %{realname}-%{majorver}-libs.conf
Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf
Source8: %{realname}.pam
Source9: filter-requires-perl-Pg.sh
Expand Down Expand Up @@ -559,7 +558,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down
1 change: 0 additions & 1 deletion specs/postgresql-16/SOURCES/postgresql-16-libs.conf

This file was deleted.

2 changes: 1 addition & 1 deletion specs/postgresql-16/postgresql-16.spec
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down
1 change: 0 additions & 1 deletion specs/postgresql-17/SOURCES/postgresql-17-libs.conf

This file was deleted.

3 changes: 1 addition & 2 deletions specs/postgresql-17/postgresql-17.spec
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Source2: Makefile.regress
Source3: pg_config.h
Source4: README.rpm-dist
Source5: ecpg_config.h
Source6: %{realname}-%{majorver}-libs.conf
Source7: https://www.postgresql.org/files/documentation/pdf/%{majorver}/%{realname}-%{majorver}-A4.pdf
Source8: %{realname}.pam
Source9: filter-requires-perl-Pg.sh
Expand Down Expand Up @@ -554,7 +553,7 @@ install -dm 700 %{buildroot}%{_sysconfdir}/sysconfig/%{shortname}/%{majorver}
# Install linker conf file under postgresql installation directory.
# We will install the latest version via alternatives.
install -dm 755 %{buildroot}%{install_dir}/share/
install -pm 700 %{SOURCE6} %{buildroot}%{install_dir}/share/
echo "%{install_dir}/lib" > %{buildroot}%{install_dir}/share/%{realname}-%{majorver}-libs.conf

%if %test
# Tests. There are many files included here that are unnecessary,
Expand Down

0 comments on commit 6363597

Please sign in to comment.