]> git.pld-linux.org Git - packages/perl-IO-Null.git/commitdiff
- new, STBR perl-IO-Null-0_02-1
authorradek <radek@pld-linux.org>
Wed, 4 Sep 2002 11:19:33 +0000 (11:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-IO-Null.spec -> 1.1

perl-IO-Null.spec [new file with mode: 0644]

diff --git a/perl-IO-Null.spec b/perl-IO-Null.spec
new file mode 100644 (file)
index 0000000..c2b3b6a
--- /dev/null
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    IO
+%define        pnam    Null
+Summary:       IO::Null -- class for null filehandles
+#Summary(pl):  
+Name:          perl-IO-Null
+Version:       0.02
+Release:       1
+License:       GPL/Artistic
+Group:         Development/Languages/Perl
+Source0:       ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: perl >= 5.6
+BuildRequires: rpm-perlprov >= 3.0.3-26
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a class for null filehandles.
+
+Calling a constructor of this class always succeeds, returning a new null
+filehandle.
+
+Writing to any object of this class is always a no-operation, and returns
+true.
+
+Reading from any object of this class is always no-operation, and returns
+empty-string or empty-list, as appropriate.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+
+%{!?_without_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)
+%{perl_sitelib}/%{pdir}/*.pm
+%{_mandir}/man3/*
This page took 0.065824 seconds and 4 git commands to generate.