From 7d69c4d3fb261ffef9875ed15829faead85802988f573a5b9b522ad90e43eb8c Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 9 Sep 2013 10:02:29 +0000 Subject: [PATCH] - switch to new macros to fix build OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-ldap?expand=0&rev=33 --- perl-ldap.changes | 5 +++++ perl-ldap.spec | 44 +++++++++++++------------------------------- 2 files changed, 18 insertions(+), 31 deletions(-) diff --git a/perl-ldap.changes b/perl-ldap.changes index a7c4241..28380c3 100644 --- a/perl-ldap.changes +++ b/perl-ldap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 9 10:02:13 UTC 2013 - coolo@suse.com + +- switch to new macros to fix build + ------------------------------------------------------------------- Mon Jan 30 02:35:07 UTC 2012 - vcizek@suse.com diff --git a/perl-ldap.spec b/perl-ldap.spec index 3701c0f..6a509e6 100644 --- a/perl-ldap.spec +++ b/perl-ldap.spec @@ -1,7 +1,7 @@ # # spec file for package perl-ldap # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ Name: perl-ldap +%define cpan_name perl-ldap Version: 0.44 Release: 0 Summary: Client Interface for LDAP Servers @@ -57,43 +58,24 @@ A Client interface for LDAP servers. %prep %setup -q -n perl-ldap-%{version} +find . -type f -print0 | xargs -0 chmod 644 +# MANUAL +find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@" %build -# Prevent rpmlint warning script-without-shebang -chmod -x lib/Net/LDAP/DSML.pm -find contrib -type f | xargs -n 1 sed -i "s@/usr/local/bin/perl@/usr/bin/perl@" -perl Makefile.PL -make %{?_smp_mflags} +%{__perl} Makefile.PL INSTALLDIRS=vendor +%{__make} %{?_smp_mflags} %check -make test +%{__make} test %install -make DESTDIR=%{buildroot} install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root) -%doc CREDITS Changes README SIGNATURE TODO contrib -%doc %{_mandir}/man3/Net::LDAP.3pm* -%doc %{_mandir}/man3/Net::LDAPI.3pm* -%doc %{_mandir}/man3/Net::LDAP::* -%doc %{_mandir}/man3/Bundle::Net::LDAP.3pm* -%dir %{perl_vendorlib}/Net -%{perl_vendorlib}/Net/LDAP -%{perl_vendorlib}/Net/LDAP.* -%{perl_vendorlib}/Net/LDAPI.pm -%{perl_vendorlib}/Bundle -%{perl_vendorlib}/LWP -%{perl_vendorarch}/auto/Net/LDAP - -%files ssl -%defattr(-,root,root) -%doc %{_mandir}/man3/Net::LDAPS.3pm* -%dir %{perl_vendorlib}/Net -%{perl_vendorlib}/Net/LDAPS.pm +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes CREDITS install-nomake README TODO %changelog