SPECS: perl-Games-Dice.spec (NEW) - initial, works for me

agaran agaran at pld-linux.org
Tue Feb 20 11:22:57 CET 2007


Author: agaran                       Date: Tue Feb 20 10:22:57 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial, works for me

---- Files affected:
SPECS:
   perl-Games-Dice.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Games-Dice.spec
diff -u /dev/null SPECS/perl-Games-Dice.spec:1.1
--- /dev/null	Tue Feb 20 11:22:57 2007
+++ SPECS/perl-Games-Dice.spec	Tue Feb 20 11:22:52 2007
@@ -0,0 +1,64 @@
+# $Revision$, $Date$
+# NOTE
+# - you should consider using pldcpan for new perl packages
+#
+# Conditional build:
+%bcond_without	autodeps	# don't BR packages needed only for resolving deps
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Games
+%define		pnam	Dice
+Summary:	perl(Games::Dice)
+Name:		perl-Games-Dice
+Version:	0.99_01
+Release:	0.1
+# "same as perl"
+License:	GPL or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Games/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	550794c12e2aaec2b2940e8c7fc331d8
+URL:		http://search.cpan.org/dist/Games-Dice/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with autodeps} || %{with tests}
+BuildRequires:	perl-Class-Container
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+
+%description
+dice rolling module
+
+%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} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Games/Dice.pm
+%{perl_vendorlib}/Games/Die.pm
+%dir %{perl_vendorlib}/Games/Dice
+%{perl_vendorlib}/Games/Dice/Result.pm
+%{_mandir}/man3/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
================================================================


More information about the pld-cvs-commit mailing list