rpms/perl-Mozilla-LDAP/devel perl-Mozilla-LDAP.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Richard Allen Megginson (rmeggins)
fedora-extras-commits at redhat.com
Wed Jan 10 23:33:31 UTC 2007
Author: rmeggins
Update of /cvs/extras/rpms/perl-Mozilla-LDAP/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19420/devel
Modified Files:
.cvsignore sources
Added Files:
perl-Mozilla-LDAP.spec
Log Message:
auto-import perl-Mozilla-LDAP-1.5-8 on branch devel from perl-Mozilla-LDAP-1.5-8.src.rpm
--- NEW FILE perl-Mozilla-LDAP.spec ---
%define nspr_name nspr
%define nss_name nss
%define mozldap_name mozldap
Summary: LDAP Perl module that wraps the Mozilla C SDK
Name: perl-Mozilla-LDAP
Version: 1.5
Release: 8%{?dist}
License: MPL
Group: Development/Libraries
URL: http://www.mozilla.org/directory/perldap.html
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: perl >= 2:5.8.0
BuildRequires: perl >= 2:5.8.0
BuildRequires: %{nspr_name}-devel >= 4.6
BuildRequires: %{nss_name}-devel >= 3.11
BuildRequires: %{mozldap_name}-devel >= 6.0
Source0: ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/1.5/perl-mozldap-1.5.tar.gz
Source1: ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/1.5/Makefile.PL.rpm
%description
%{summary}.
%prep
%setup -q -n perl-mozldap-%{version}
# Filter unwanted Provides:
cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
sed -e '/perl(Mozilla::LDAP::Entry)/d'
EOF
%define __perl_provides %{_builddir}/perl-mozldap-%{version}/%{name}-prov
chmod +x %{__perl_provides}
# Filter unwanted Requires:
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(Mozilla::LDAP::Entry)/d'
EOF
%define __perl_requires %{_builddir}/perl-mozldap-%{version}/%{name}-req
chmod +x %{__perl_requires}
%build
LDAPPKGNAME=%{mozldap_name} CFLAGS="$RPM_OPT_FLAGS" perl %{SOURCE1} PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor < /dev/null
make OPTIMIZE="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS"
make test
%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
%makeinstall
# remove files we don't want to package
rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist`
find $RPM_BUILD_ROOT -name API.bs -a -size 0 -exec rm -f {} \;
# make sure shared lib is correct mode
find $RPM_BUILD_ROOT -name API.so -exec chmod 755 {} \;
# find and run the correct version of brp-compress
if [ -x /usr/lib/rpm/brp-compress ] ; then
/usr/lib/rpm/brp-compress
elif [ -x %{_libdir}/rpm/brp-compress ] ; then
%{_libdir}/rpm/brp-compress
fi
# make sure files refer to %{_prefix} instead of buildroot/%prefix
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 MPL-1.1.txt
%changelog
* Wed Jan 10 2007 Rich Megginson <richm at stanfordalumni.org> - 1.5-8
- add perl_requires filter for the Entry module
- add the MPL-1.1.txt file to the DOCs
* Wed Jan 10 2007 Rich Megginson <richm at stanfordalumni.org> - 1.5-7
- Incorporate comments from Fedora Extras review - https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219869
- Remove all Requires except perl - use autogenerated ones
- Remove ExclusiveArch
- Remove files that don't need to be packaged
- add full URL to sources
- set API.so to mode 755
* Tue Oct 17 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-6
- look for brp-compress first in /usr/lib then _libdir
* Tue Oct 17 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-5
- there is no TODO file; use custom Makefile.PL
* Mon Oct 16 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-4
- use pkg-config --variable=xxx instead of --cflags e.g.
* Mon Oct 16 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-3
- this is not a noarch package
* Mon Oct 16 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-2
- Use new mozldap6, dirsec versions of nspr, nss
* Tue Feb 7 2006 Rich Megginson <richm at stanfordalumni.org> - 1.5-1
- Based on the perl-LDAP.spec file
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-Mozilla-LDAP/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 10 Jan 2007 23:32:14 -0000 1.1
+++ .cvsignore 10 Jan 2007 23:33:01 -0000 1.2
@@ -0,0 +1,2 @@
+Makefile.PL.rpm
+perl-mozldap-1.5.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-Mozilla-LDAP/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 10 Jan 2007 23:32:14 -0000 1.1
+++ sources 10 Jan 2007 23:33:01 -0000 1.2
@@ -0,0 +1,2 @@
+a0fd8e3774fed62abeb6c2cda3362862 Makefile.PL.rpm
+3b81792d9cc11cca3d85ac2f9e5a30fe perl-mozldap-1.5.tar.gz
More information about the fedora-extras-commits
mailing list