[packages/perl-Taint-Util] - new

qboosh qboosh at pld-linux.org
Mon Jun 22 17:44:08 CEST 2015


commit 6e8287ccd3e5d3010c62785d99fbb423af5efdd3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jun 22 17:44:49 2015 +0200

    - new

 perl-Taint-Util.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/perl-Taint-Util.spec b/perl-Taint-Util.spec
new file mode 100644
index 0000000..2ace376
--- /dev/null
+++ b/perl-Taint-Util.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Taint
+%define		pnam	Util
+%include	/usr/lib/rpm/macros.perl
+Summary:	Taint::Util - Test for and flip the taint flag without regex matches or eval
+Summary(pl.UTF-8):	Taint::Util - sprawdzanie i zmiana flagi skażenia bez wyrażeń regularnych ani eval
+Name:		perl-Taint-Util
+Version:	0.08
+Release:	1
+# same as perl 5
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Taint/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	4f081a8a6e82352741c0486784cbc23d
+URL:		http://search.cpan.org/dist/Taint-Util/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.11
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Simple
+%endif
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Taint::Util wraps Perl's internal routines for checking and setting
+the taint flag and thus does not rely on regular expressions for
+untainting or odd tricks involving eval and kill for checking whether
+data is tainted, instead it checks and flips a flag on the scalar
+in-place.
+
+%description -l pl.UTF-8
+Taint::Util obudowuje wewnętrzne procedury Perla do sprawdzania i
+ustawiania flagi skażenia, dzięki czemu nie polega na wyrażeniach
+regularnych w celu usuwania flagi lub brzydkich sztuczkach z eval i
+kill w celu sprawdzenia, czy dane są skażone - zamiast tego sprawdza
+i przełącza flagę zmiennych skalarnych w miejscu.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make} \
+	CC="%{__cc}" \
+	OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog
+%dir %{perl_vendorarch}/Taint
+%{perl_vendorarch}/Taint/Util.pm
+%dir %{perl_vendorarch}/auto/Taint
+%dir %{perl_vendorarch}/auto/Taint/Util
+%attr(755,root,root) %{perl_vendorarch}/auto/Taint/Util/Util.so
+%{_mandir}/man3/Taint::Util.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Taint-Util.git/commitdiff/6e8287ccd3e5d3010c62785d99fbb423af5efdd3



More information about the pld-cvs-commit mailing list