diff --git a/.cvsignore b/.cvsignore index e69de29..a1bf35c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +perl-ldap-0.31.tar.gz diff --git a/perl-LDAP.spec b/perl-LDAP.spec new file mode 100644 index 0000000..6220a78 --- /dev/null +++ b/perl-LDAP.spec @@ -0,0 +1,55 @@ +Summary: LDAP Perl module +Name: perl-LDAP +Version: 0.31 +Release: 4 +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/perl-ldap/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildArch: noarch +BuildRequires: perl >= 2:5.8.0 +Requires: %(perl -MConfig -le 'if (defined $Config{useithreads}) { print "perl(:WITH_ITHREADS)" } else { print "perl(:WITHOUT_ITHREADS)" }') +Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:WITH_THREADS)" } else { print "perl(:WITHOUT_THREADS)" }') +Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }') +Source0: perl-ldap-0.31.tar.gz +BuildRequires: perl-Convert-ASN1 +Requires: perl-Convert-ASN1 + +%description +%{summary}. + +%prep +%setup -q -n perl-ldap-%{version} + +%build +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor < /dev/null +make OPTIMIZE="$RPM_OPT_FLAGS" +make test + +%install +rm -rf $RPM_BUILD_ROOT +eval `perl '-V:installarchlib'` +mkdir -p $RPM_BUILD_ROOT$installarchlib +%makeinstall +rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist` + +[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress + +find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ + sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist +if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit 1 +fi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f %{name}-%{version}-%{release}-filelist +%defattr(-,root,root,-) +%doc CREDITS ChangeLog README TODO + +%changelog +* Wed Mar 10 2004 Chip Turner - 0.31-1 +- Specfile autogenerated. + diff --git a/sources b/sources index e69de29..78e88d2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b3107452e2bb4d74d4b9892d61d50137 perl-ldap-0.31.tar.gz