]> git.pld-linux.org Git - packages/perl-Test-WWW-Mechanize.git/commitdiff
- initial
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 8 Aug 2008 23:19:17 +0000 (23:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Test-WWW-Mechanize.spec -> 1.1

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

diff --git a/perl-Test-WWW-Mechanize.spec b/perl-Test-WWW-Mechanize.spec
new file mode 100644 (file)
index 0000000..ee70a0b
--- /dev/null
@@ -0,0 +1,52 @@
+#
+#Conditional build:
+%bcond_without tests   # perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Test
+%define                pnam    WWW-Mechanize
+Summary:       Test::WWW-Mechanize - Testing-specific WWW::Mechanize subclass
+Name:          perl-Test-WWW-Mechanize
+Version:       1.20
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: d385060891a9cfec5898c7ea95108aad
+URL:           http://search.cpan.org/dist/Test-WWW-Mechanize/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Carp-Assert-More
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates features for web application testing.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Test/WWW/Mechanize.pm
+%{_mandir}/man3/*
This page took 0.093743 seconds and 4 git commands to generate.