[packages/perl-common-sense] - noarch package - rel 8
baggins
baggins at pld-linux.org
Mon May 10 23:57:53 CEST 2021
commit 569fc577c28e986709cedc82c138bedd89bb70d5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon May 10 23:57:36 2021 +0200
- noarch package
- rel 8
install.patch | 11 +++++++++++
perl-common-sense.spec | 11 +++++++----
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/perl-common-sense.spec b/perl-common-sense.spec
index f22888b..487e4e4 100644
--- a/perl-common-sense.spec
+++ b/perl-common-sense.spec
@@ -8,15 +8,17 @@ Summary: common::sense - save a tree AND a kitten, use common::sense!
Summary(pl.UTF-8): common::sense - zdroworozsądkowe ustawienia domyślne dla programów w Perlu
Name: perl-common-sense
Version: 3.74
-Release: 7
+Release: 8
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 35b273147200c4c95eef7816f83e572d
+Patch0: install.patch
URL: http://search.cpan.org/dist/common-sense/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -30,6 +32,7 @@ programów perlowych.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
@@ -44,7 +47,7 @@ rm -rf $RPM_BUILD_ROOT
%{__make} pure_install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/common/sense.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/common/sense.pod
%clean
rm -rf $RPM_BUILD_ROOT
@@ -52,6 +55,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc Changes LICENSE README
-%dir %{perl_vendorarch}/common
-%{perl_vendorarch}/common/sense.pm
+%dir %{perl_vendorlib}/common
+%{perl_vendorlib}/common/sense.pm
%{_mandir}/man3/common::sense.3pm*
diff --git a/install.patch b/install.patch
new file mode 100644
index 0000000..65be824
--- /dev/null
+++ b/install.patch
@@ -0,0 +1,11 @@
+--- common-sense-3.74/Makefile.PL~ 2015-06-29 14:39:14.000000000 +0200
++++ common-sense-3.74/Makefile.PL 2021-05-10 23:55:08.929813917 +0200
+@@ -9,7 +9,7 @@
+ NAME => "common::sense",
+ VERSION_FROM => "sense.pm.PL",
+ PM => {
+- "sense.pm" => '$(INST_ARCHLIB)/common/sense.pm',
++ "sense.pm" => '$(INST_LIB)/common/sense.pm',
+ "sense.pod" => '$(INST_LIB)/common/sense.pod',
+ },
+ clean => { FILES => "sense.pm" },
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-common-sense.git/commitdiff/569fc577c28e986709cedc82c138bedd89bb70d5
More information about the pld-cvs-commit
mailing list