- Cleanup spec file

- Fetch correct sources

OBS-URL: https://build.opensuse.org/package/show/server:database/percona-toolkit?expand=0&rev=75
This commit is contained in:
Martin Pluskal 2021-04-26 07:42:46 +00:00 committed by Git OBS Bridge
parent 49c4c16f29
commit 5080a7cc39
3 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a4a5a2a9778bbb0f6959b5a8e5f46099e03d974c35ac49fc630af1a78837728
size 22139239
oid sha256:0a71e3bfa1eec7c9d8941080d2852d4d4354c2c1fe303f2f28f6352627549d16
size 15342520

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 26 07:40:18 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- Cleanup spec file
- Fetch correct sources
-------------------------------------------------------------------
Sat Apr 24 08:12:21 UTC 2021 - Denys Kondratenko <stdden@opensuse.org>

View File

@ -33,11 +33,7 @@ Requires: perl(Time::HiRes)
Provides: maatkit = 7410.%{version}
Obsoletes: maatkit < 7410
BuildArch: noarch
%if 0%{?suse_version} < 1140
Requires: perl = %{perl_version}
%else
%{perl_requires}
%endif
%description
Percona Toolkit is a collection of advanced command-line tools used by
@ -56,7 +52,7 @@ visit http://www.percona.com/software/.
This collection was formerly known as Maatkit.
%prep
%setup -q
%autosetup
%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
@ -65,15 +61,12 @@ sed -i 's|%{_bindir}/env bash|%{_bindir}/bash|' bin/*
%make_build
%install
%perl_make_install
%perl_process_packlist
rm -rf %{buildroot}%{_prefix}/lib
rm -rf %{buildroot}/lib
%if 0%{?suse_version} < 1130
rm -rf %{buildroot}/%{perl_vendorarch}/auto/%{name}
rm -rf %{buildroot}%{_localstatedir}/adm/perl-modules/%{name}
%endif
# a blank configuration file
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/