Accepting request 355377 from home:bmwiedemann:branches:devel:languages:perl

- add fixmakefile.patch to fix build
and fix url

OBS-URL: https://build.opensuse.org/request/show/355377
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Apache-AuthNetLDAP?expand=0&rev=19
This commit is contained in:
2016-01-24 20:05:59 +00:00
committed by Git OBS Bridge
parent 211d85c1a8
commit bd2bdcef71
3 changed files with 56 additions and 11 deletions

26
fixmakefile.patch Normal file
View File

@@ -0,0 +1,26 @@
Index: perl-Apache-AuthNetLDAP-0.29/Apache-AuthNetLDAP-0.29/Makefile.PL
===================================================================
--- perl-Apache-AuthNetLDAP-0.29.orig/Apache-AuthNetLDAP-0.29/Makefile.PL
+++ perl-Apache-AuthNetLDAP-0.29/Apache-AuthNetLDAP-0.29/Makefile.PL
@@ -2,7 +2,7 @@
# ExtUtils::AutoInstall Bootstrap Code, version 7.
BEGIN{my$p='ExtUtils::AutoInstall';my$v=0.52;$p->VERSION||0>=$v
or+eval"use $p $v;1"or+do{my$e=$ENV{PERL_EXTUTILS_AUTOINSTALL};
- (!defined($e)||$e!~m/--(?:default|skip|testonly)/and-t STDIN or
+ (!defined($e)||$e!~m/--(?:default|skip|testonly)/ and -t STDIN or
eval"use ExtUtils::MakeMaker;WriteMakefile(PREREQ_PM=>{'$p',$v}
);1"and exit)and print"==> $p $v required. Install it from CP".
"AN? [Y/n] "and<STDIN>!~/^n/i and print"*** Installing $p\n"and
Index: perl-Apache-AuthNetLDAP-0.29/Apache-AuthzNetLDAP-0.07/Makefile.PL
===================================================================
--- perl-Apache-AuthNetLDAP-0.29.orig/Apache-AuthzNetLDAP-0.07/Makefile.PL
+++ perl-Apache-AuthNetLDAP-0.29/Apache-AuthzNetLDAP-0.07/Makefile.PL
@@ -2,7 +2,7 @@
# ExtUtils::AutoInstall Bootstrap Code, version 7.
BEGIN{my$p='ExtUtils::AutoInstall';my$v=0.52;$p->VERSION||0>=$v
or+eval"use $p $v;1"or+do{my$e=$ENV{PERL_EXTUTILS_AUTOINSTALL};
- (!defined($e)||$e!~m/--(?:default|skip|testonly)/and-t STDIN or
+ (!defined($e)||$e!~m/--(?:default|skip|testonly)/ and -t STDIN or
eval"use ExtUtils::MakeMaker;WriteMakefile(PREREQ_PM=>{'$p',$v}
);1"and exit)and print"==> $p $v required. Install it from CP".
"AN? [Y/n] "and<STDIN>!~/^n/i and print"*** Installing $p\n"and

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 15 13:57:26 UTC 2016 - bwiedemann@suse.com
- add fixmakefile.patch to fix build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 18 11:09:59 UTC 2011 - coolo@suse.com Fri Nov 18 11:09:59 UTC 2011 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package perl-Apache-AuthNetLDAP # spec file for package perl-Apache-AuthNetLDAP
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,29 +15,34 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: perl-Apache-AuthNetLDAP Name: perl-Apache-AuthNetLDAP
%define cpan_name Apache-AuthNetLDAP %define cpan_name Apache-AuthNetLDAP
BuildRequires: apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel perl-ldap BuildRequires: apache2-devel
BuildRequires: apache2-mod_perl
BuildRequires: libapr-util1-devel
BuildRequires: pcre-devel
BuildRequires: perl-ldap
BuildRequires: perl-macros BuildRequires: perl-macros
Version: 0.29 Version: 0.29
Release: 229 Release: 0
%define zver 0.07 %define zver 0.07
Provides: Apache-AuthNetLDAP Provides: Apache-AuthNetLDAP
Requires: apache2 Requires: apache2
Requires: apache2-mod_perl perl-ldap perl-Convert-ASN1 perl-URI Requires: apache2-mod_perl
Requires: perl-Convert-ASN1
Requires: perl-URI
Requires: perl-ldap
Conflicts: perlmod Conflicts: perlmod
AutoReqProv: on Url: https://metacpan.org/pod/Apache::AuthNetLDAP
Summary: User authentication in Apache with Net::LDAP
License: Artistic-1.0
Group: Development/Libraries/Perl Group: Development/Libraries/Perl
License: Artistic
Url: http://cpan.org/modules/by-module/Apache/
Summary: use Net::LDAP for user authentication in Apache
Source0: Apache-AuthNetLDAP-%{version}.tar.gz Source0: Apache-AuthNetLDAP-%{version}.tar.gz
Source1: Apache-AuthzNetLDAP-%{zver}.tar.bz2 Source1: Apache-AuthzNetLDAP-%{zver}.tar.bz2
Patch0: Apache-AuthNetLDAP-%{version}-apache2.diff Patch0: Apache-AuthNetLDAP-%{version}-apache2.diff
Patch10: Apache-AuthzNetLDAP-%{zver}-apache2.diff Patch10: Apache-AuthzNetLDAP-%{zver}-apache2.diff
Patch11: fixmakefile.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires} %{perl_requires}
@@ -58,8 +63,10 @@ Authors:
%setup -n %{name}-%{version} -q -b0 -b1 -c %setup -n %{name}-%{version} -q -b0 -b1 -c
%patch0 %patch0
%patch10 %patch10
%patch11 -p1
%build %build
# MANUAL
for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
cd $i cd $i
install -d -m755 lib/Apache install -d -m755 lib/Apache
@@ -68,6 +75,13 @@ for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
mv MANIFEST.tmp MANIFEST mv MANIFEST.tmp MANIFEST
perl Makefile.PL perl Makefile.PL
make %{?_smp_mflags} make %{?_smp_mflags}
cd -
done
%check
# MANUAL
for i in Apache-AuthNetLDAP-%{version} Apache-AuthzNetLDAP-%{zver} ; do
cd $i
make test make test
cd - cd -
done done