EMERGENCY

- Fix packaging : Avoid segv backtrace
  + Don't package and distribute perl or LibC
  They are already in final binary.
  Ref https://github.com/pgbackrest/pgbackrest/issues/558 
  + As a result : tests are no more usable, (only vagrant runs)
  use a simple call of the binary (pgbackrest version) to exclude
  futur backtrace
  + Clean spec: licence and remove macro for file

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=15
This commit is contained in:
Bruno Friedmann 2018-07-14 16:30:33 +00:00 committed by Git OBS Bridge
parent 159098222a
commit f653c46bca
2 changed files with 18 additions and 19 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sat Jul 14 16:25:46 UTC 2018 - bruno@ioda-net.ch
- Fix packaging : Avoid segv backtrace
+ Don't package and distribute perl or LibC
They are already in final binary.
Ref https://github.com/pgbackrest/pgbackrest/issues/558
+ As a result : tests are no more usable, (only vagrant runs)
use a simple call of the binary (pgbackrest version) to exclude
futur backtrace
+ Clean spec: licence and remove macro for file
-------------------------------------------------------------------
Wed Jul 11 07:49:49 UTC 2018 - bruno@ioda-net.ch

View File

@ -63,46 +63,33 @@ are required to perform a backup which increases security.
%setup -q -n %{name}-release-%{version}
%build
#TODO upstream doesn't care about RPM_OPT_FLAGS
# TODO upstream doesn't care about RPM_OPT_FLAGS
pushd src
%make_build
popd
pushd libc
perl Makefile.PL
%make_build
popd
%install
install -D -d -m 0755 %{buildroot}%{perl_vendorlib} %{buildroot}%{_bindir}
install -D -d -m 0700 %{buildroot}/%{_localstatedir}/lib/%{name}
install -D -d -m 0700 %{buildroot}%{_localstatedir}/log/%{name}
install -D -d -m 0700 %{buildroot}%{_localstatedir}/spool/%{name}
install -D -d -m 0755 %{buildroot}%{_sysconfdir}
install %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
cp -a lib/* %{buildroot}%{perl_vendorlib}/
make install -C src DESTDIR=%{buildroot}
make pure_vendor_install -C libc DESTDIR=%{buildroot}
%perl_process_packlist
%perl_gen_filelist
%check
pushd libc
make test
popd
# Tests are only available with Vagrant
# We just test that the binary works.
%{buildroot}/%{_bindir}/%{name} version
%files -f %{name}.files
%files
%defattr(-,root,root)
%doc README.md
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE
%else
%license LICENSE
%endif
%config(noreplace) %attr (644,root,root) %{_sysconfdir}/%{name}.conf
# We still can do that as postgres user is system fixed
%attr(-,postgres,postgres) %{_localstatedir}/log/%{name}
%attr(-,postgres,postgres) %{_localstatedir}/lib/%{name}
%attr(-,postgres,postgres) %{_localstatedir}/spool/%{name}
%{_bindir}/%{name}
%changelog