Skip to content

Commit

Permalink
Fix spec file
Browse files Browse the repository at this point in the history
Fix various errors and warnings repored by rpmlint related to the spec file
and the generated rpm file.
  • Loading branch information
ioguix committed Mar 9, 2020
1 parent 681f840 commit 2e3c910
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions resource-agents-paf.spec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%global _tag 2.3_rc2
%global _ocfroot /usr/lib/ocf
%global _ocfroot %{_exec_prefix}/lib/ocf
Name: resource-agents-paf
Version: 2.3~rc2
Release: 1
Expand All @@ -12,7 +12,6 @@ Source0: https://github.com/ClusterLabs/PAF/archive/v%{_tag}.tar.gz
BuildArch: noarch
BuildRequires: resource-agents perl perl-Module-Build
Requires: perl, resource-agents, pacemaker >= 1.1.13, corosync >= 2.0.0
Provides: resource-agents-paf = %{version}

%description
PostgreSQL resource agent for Pacemaker
Expand All @@ -21,14 +20,14 @@ PostgreSQL resource agent for Pacemaker
%define debug_package %{nil}

%prep
%setup -n PAF-%{_tag}
%setup -q -n PAF-%{_tag}

%build
perl Build.PL --destdir "%{buildroot}" --install_path bindoc=%{_mandir}/man1 --install_path libdoc=%{_mandir}/man3
perl Build.PL --install_path bindoc=%{_mandir}/man1 --install_path libdoc=%{_mandir}/man3
perl Build

%install
./Build install
./Build install --destdir "%{buildroot}"
find "%{buildroot}" -type f -name .packlist -delete

%files
Expand All @@ -38,17 +37,17 @@ find "%{buildroot}" -type f -name .packlist -delete
%license LICENSE
%{_mandir}/man3/*.3*
%{_mandir}/man7/*.7*
%{_ocfroot}/resource.d/heartbeat/pgsqlms
%{_ocfroot}/lib/heartbeat/OCF_ReturnCodes.pm
%{_ocfroot}/lib/heartbeat/OCF_Directories.pm
%{_ocfroot}/lib/heartbeat/OCF_Functions.pm
%attr(755, -, -) %{_ocfroot}/resource.d/heartbeat/pgsqlms
%attr(644, -, -) %{_ocfroot}/lib/heartbeat/OCF_ReturnCodes.pm
%attr(644, -, -) %{_ocfroot}/lib/heartbeat/OCF_Directories.pm
%attr(644, -, -) %{_ocfroot}/lib/heartbeat/OCF_Functions.pm
%{_datadir}/resource-agents/ocft/configs/pgsqlms

%changelog
* Tue Feb 11 2020 Jehan-Guillaume de Rorthais <[email protected]> - 2.3rc2-1
* Tue Feb 11 2020 Jehan-Guillaume de Rorthais <[email protected]> - 2.3~rc2-1
- 2.3_rc2 release candidate

* Thu Nov 28 2019 Jehan-Guillaume de Rorthais <[email protected]> - 2.3rc1-1
* Thu Nov 28 2019 Jehan-Guillaume de Rorthais <[email protected]> - 2.3~rc1-1
- 2.3_rc1 release candidate

* Thu Jan 31 2019 Jehan-Guillaume de Rorthais <[email protected]> - 2.2.1-1
Expand Down

0 comments on commit 2e3c910

Please sign in to comment.