Blame SPECS/perl-Mozilla-LDAP.spec

c86236
Summary: LDAP Perl module that wraps the OpenLDAP C SDK
c86236
Name: perl-Mozilla-LDAP
c86236
Version: 1.5.3
c86236
Release: 12%{?dist}
c86236
License: GPLv2+ and LGPLv2+ and MPLv1.1
c86236
Group: Development/Libraries
c86236
URL: http://www.mozilla.org/directory/perldap.html
c86236
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
c86236
Requires: perl >= 2:5.8.0
c86236
BuildRequires: perl >= 2:5.8.0
c86236
BuildRequires: perl(ExtUtils::MakeMaker)
c86236
BuildRequires: nspr-devel
c86236
BuildRequires: nss-devel
c86236
BuildRequires: openldap-devel >= 2.4.22
c86236
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/%{version}/src/perl-mozldap-%{version}.tar.gz
c86236
Source1: ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/1.5/src/Makefile.PL.rpm
c86236
c86236
%description
c86236
%{summary}.
c86236
c86236
%prep
c86236
%setup -q -n perl-mozldap-%{version}
c86236
# Filter unwanted Provides:
c86236
cat << \EOF > %{name}-prov
c86236
#!/bin/sh
c86236
%{__perl_provides} $* |\
c86236
  sed -e '/perl(Mozilla::LDAP::Entry)$/d'
c86236
EOF
c86236
c86236
%define __perl_provides %{_builddir}/perl-mozldap-%{version}/%{name}-prov
c86236
chmod +x %{__perl_provides}
c86236
c86236
# Filter unwanted Requires:
c86236
cat << \EOF > %{name}-req
c86236
#!/bin/sh
c86236
%{__perl_requires} $* |\
c86236
  sed -e '/perl(Mozilla::LDAP::Entry)/d'
c86236
EOF
c86236
c86236
%define __perl_requires %{_builddir}/perl-mozldap-%{version}/%{name}-req
c86236
chmod +x %{__perl_requires}
c86236
c86236
%build
c86236
c86236
LDAPPKGNAME=openldap CFLAGS="$RPM_OPT_FLAGS" perl %{SOURCE1} PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor < /dev/null
c86236
make OPTIMIZE="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" 
c86236
make test
c86236
c86236
%install
c86236
rm -rf $RPM_BUILD_ROOT
c86236
eval `perl '-V:installarchlib'`
c86236
c86236
%makeinstall
c86236
c86236
# remove files we don't want to package
c86236
rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
c86236
find $RPM_BUILD_ROOT -name API.bs -a -size 0 -exec rm -f {} \;
c86236
c86236
# make sure shared lib is correct mode
c86236
find $RPM_BUILD_ROOT -name API.so -exec chmod 755 {} \;
c86236
c86236
c86236
# find and run the correct version of brp-compress
c86236
if [ -x /usr/lib/rpm/brp-compress ] ; then
c86236
    /usr/lib/rpm/brp-compress
c86236
elif [ -x %{_libdir}/rpm/brp-compress ] ; then
c86236
    %{_libdir}/rpm/brp-compress
c86236
fi
c86236
c86236
# make sure files refer to %{_prefix} instead of buildroot/%prefix
c86236
find $RPM_BUILD_ROOT%{_prefix} -type f -print | \
c86236
	sed "s@^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist
c86236
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then
c86236
    echo "ERROR: EMPTY FILE LIST"
c86236
    exit 1
c86236
fi
c86236
c86236
%clean
c86236
rm -rf $RPM_BUILD_ROOT
c86236
c86236
%files -f %{name}-%{version}-%{release}-filelist
c86236
%defattr(-,root,root,-)
c86236
%doc CREDITS ChangeLog README MPL-1.1.txt
c86236
c86236
%changelog
c86236
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.5.3-12
c86236
- Mass rebuild 2014-01-24
c86236
c86236
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.5.3-11
c86236
- Mass rebuild 2013-12-27
c86236
c86236
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-10
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c86236
c86236
* Tue Nov 20 2012 Nathan Kinder <nkinder@redhat.com> - 1.5.3-9
c86236
- Corrected upstream source URLs
c86236
c86236
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-7
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c86236
c86236
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-6
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c86236
c86236
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.3-5
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c86236
c86236
* Tue Nov 23 2010 Rich Megginson <rmeggins@redhat.com> - 1.5.3-4
c86236
- forgot to add -DUSE_SSL -DPRLDAP
c86236
c86236
* Wed Sep 29 2010 jkeating - 1.5.3-3
c86236
- Rebuilt for gcc bug 634757
c86236
c86236
* Tue Sep 14 2010 Rich Megginson <rmeggins@redhat.com> - 1.5.3-2
c86236
- added new sources
c86236
c86236
* Tue Sep 14 2010 Rich Megginson <rmeggins@redhat.com> - 1.5.3-1
c86236
- new version 1.5.3 with openldap support
c86236
c86236
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.5.2-7.1
c86236
- Mass rebuild with perl-5.12.0
c86236
c86236
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-6.1
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c86236
c86236
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-5.1
c86236
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c86236
c86236
* Tue Mar 11 2008 Rich Megginson <rmeggins@redhat.com> - 1.5.2-4.1
c86236
- rebuild for perl 5.10
c86236
c86236
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.5.2-3.1
c86236
- Autorebuild for GCC 4.3
c86236
c86236
* Tue Oct 16 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.5.2-2.1
c86236
- correct license tag
c86236
- add BR: perl(ExtUtils::MakeMaker)
c86236
c86236
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.5.2-2
c86236
- Rebuild for selinux ppc32 issue.
c86236
c86236
* Fri Jul 27 2007 Rich Megginson <richm@stanfordalumni.org> - 1.5.2-1
c86236
- Fix bugzilla 389731 - crash when a bad URL is passed
c86236
c86236
* Wed Jun 20 2007 Rich Megginson <richm@stanfordalumni.org> - 1.5.1-1
c86236
- all files have been GPL/LGPL/MPL tri-licensed
c86236
c86236
* Wed Jan 10 2007 Rich Megginson <richm@stanfordalumni.org> - 1.5-9
c86236
- remove only perl(Mozilla::LDAP::Entry) from Provides, leave in 
c86236
- perl(Mozilla::LDAP::Entry) = 1.5
c86236
c86236
* Wed Jan 10 2007 Rich Megginson <richm@stanfordalumni.org> - 1.5-8
c86236
- add perl_requires filter for the Entry module
c86236
- add the MPL-1.1.txt file to the DOCs
c86236
c86236
* Wed Jan 10 2007 Rich Megginson <richm@stanfordalumni.org> - 1.5-7
c86236
- Incorporate comments from Fedora Extras review - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219869
c86236
- Remove all Requires except perl - use autogenerated ones
c86236
- Remove ExclusiveArch
c86236
- Remove files that don't need to be packaged
c86236
- add full URL to sources
c86236
- set API.so to mode 755
c86236
c86236
* Tue Oct 17 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-6
c86236
- look for brp-compress first in /usr/lib then _libdir
c86236
c86236
* Tue Oct 17 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-5
c86236
- there is no TODO file; use custom Makefile.PL
c86236
c86236
* Mon Oct 16 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-4
c86236
- use pkg-config --variable=xxx instead of --cflags e.g.
c86236
c86236
* Mon Oct 16 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-3
c86236
- this is not a noarch package
c86236
c86236
* Mon Oct 16 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-2
c86236
- Use new mozldap6, dirsec versions of nspr, nss
c86236
c86236
* Tue Feb  7 2006 Rich Megginson <richm@stanfordalumni.org> - 1.5-1
c86236
- Based on the perl-LDAP.spec file
c86236