rpms/perl-XML-XQL/devel perl-XML-XQL-tput-147465.patch, NONE, 1.1 perl-XML-XQL.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ville Skytta (scop) fedora-extras-commits at redhat.com
Sun Nov 6 11:29:57 UTC 2005


Author: scop

Update of /cvs/extras/rpms/perl-XML-XQL/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18953/devel

Modified Files:
	.cvsignore sources 
Added Files:
	perl-XML-XQL-tput-147465.patch perl-XML-XQL.spec 
Log Message:
auto-import perl-XML-XQL-0.68-0.3 on branch devel from perl-XML-XQL-0.68-0.3.src.rpm
Initial import (#172332).

perl-XML-XQL-tput-147465.patch:

--- NEW FILE perl-XML-XQL-tput-147465.patch ---
--- lib/XML/XQL.pm~	2003-01-16 23:54:58.000000000 +0200
+++ lib/XML/XQL.pm	2005-11-03 00:30:13.000000000 +0200
@@ -507,7 +507,7 @@
 {
     # Let me know if I need to add other systems for which 'tput' is not 
     # available.
-    return undef unless defined $ENV{TERM};
+    return undef unless $ENV{TERM};
     if ($^O =~ /Win|MacOS/)
     {
 	return "";
@@ -519,6 +519,7 @@
 	# tput is only available on Unix systems.
 	# Calling `tput ...` on Windows generates warning messages
 	# that can not be suppressed.
+	local $ENV{PATH} = "/usr/bin"; # taint-safety
 	return `tput $c`;
     }
 }


--- NEW FILE perl-XML-XQL.spec ---
Name:           perl-XML-XQL
Version:        0.68
Release:        0.3
Summary:        Perl module for querying XML tree structures with XQL

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/XML-XQL/
Source0:        http://www.cpan.org/authors/id/T/TJ/TJMATHER/XML-XQL-%{version}.tar.gz
Patch0:         %{name}-tput-147465.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  perl(XML::DOM) >= 1.29
BuildRequires:  perl(Date::Manip)
BuildRequires:  perl(Parse::Yapp)
Requires:       perl(XML::DOM)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This is a Perl extension that allows you to perform XQL queries on XML
object trees. Currently only the XML::DOM module is supported, but
other implementations, like XML::Grove, may soon follow.


%prep
%setup -q -n XML-XQL-%{version}
%patch0 -p0

cat <<EOF > %{name}-prov
#!/bin/sh
# Filter versionless XML::XQL, we expect perl.prov to emit the versioned one.
%{__perl_provides} \$* | grep -v 'perl(XML::\(DOM::\|XQL)$\)'
EOF
%define __perl_provides %{_builddir}/XML-XQL-%{version}/%{name}-prov
chmod +x %{__perl_provides}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w $RPM_BUILD_ROOT/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc Changes README
%{_bindir}/xql.pl
%{perl_vendorlib}/XML/
%{_mandir}/man3/XML::XQL*.3*


%changelog
* Thu Nov  3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.3
- Add minimum version to XML::DOM build dependency, filter out
  versionless perl(XML::DOM) provision (#172332, Ralf Corsepius).

* Thu Nov  3 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.2
- Fix insecure $PATH error in taint mode (#147465).
- Avoid warnings with empty (but defined) $TERM (#147465).

* Thu Oct 27 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.68-0.1
- First build (#128879).


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/perl-XML-XQL/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	6 Nov 2005 11:29:09 -0000	1.1
+++ .cvsignore	6 Nov 2005 11:29:55 -0000	1.2
@@ -0,0 +1 @@
+XML-XQL-0.68.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-XML-XQL/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	6 Nov 2005 11:29:09 -0000	1.1
+++ sources	6 Nov 2005 11:29:55 -0000	1.2
@@ -0,0 +1 @@
+bb84096fdf8bcc96a35971539ce8c19e  XML-XQL-0.68.tar.gz




More information about the fedora-extras-commits mailing list