Accepting request 197989 from devel:languages:perl

- switch to new macros to fix build

OBS-URL: https://build.opensuse.org/request/show/197989
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-ldap?expand=0&rev=25
This commit is contained in:
Stephan Kulow 2013-09-09 17:47:06 +00:00 committed by Git OBS Bridge
commit d633769b44
2 changed files with 18 additions and 31 deletions

View File

@ -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

View File

@ -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