]> git.pld-linux.org Git - packages/perl-Test-Identity.git/commitdiff
- new auto/th/perl-Test-Identity-0_01-1 auto/ti/perl-Test-Identity-0_01-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 6 Mar 2011 20:00:31 +0000 (20:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Test-Identity.spec -> 1.1

perl-Test-Identity.spec [new file with mode: 0644]

diff --git a/perl-Test-Identity.spec b/perl-Test-Identity.spec
new file mode 100644 (file)
index 0000000..d92e7f7
--- /dev/null
@@ -0,0 +1,68 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Test
+%define                pnam    Identity
+%include       /usr/lib/rpm/macros.perl
+Summary:       Test::Identity - assert the referential identity of a reference
+Summary(pl.UTF-8):     Test::Identity - sprawdzenie identyczności referencji
+Name:          perl-Test-Identity
+Version:       0.01
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Test/PEVANS/Test-Identity-%{version}.tar.gz
+# Source0-md5: ecef85c791cf5847e4c374983cf22a74
+URL:           http://search.cpan.org/dist/Test-Identity/
+BuildRequires: perl-Module-Build
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a single testing function, identical. It asserts
+that a given reference is as expected; that is, it either refers to
+the same object or is undef. It is similar to Test::More::is except
+that it uses refaddr, ensuring that it behaves correctly even if the
+references under test are objects that overload stringification or
+numification. It also provides better diagnostics if the test fails.
+
+%description -l pl.UTF-8
+Ten moduł udostępnia pojedynczą funkcję testującą: identical, służącą
+do upewnienia się, że podana referencja jest zgodna z oczekiwaniami,
+tzn. albo odnosi się do tego samego obiektu, albo jest równa undef.
+Jest podobna do Test::More::is, ale używa refaddr, więc działa
+poprawnie nawet jeśli testowane referencje są obiektami
+przeciążającymi konwersję na łańcuch lub liczbę. Moduł zapewnia także
+lepszą diagnostykę w przypadku niepowodzenia testu.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+       destdir=$RPM_BUILD_ROOT \
+       installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Test/Identity.pm
+%{_mandir}/man3/Test::Identity.3pm*
This page took 0.045669 seconds and 4 git commands to generate.