###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME = Test-Simple
-PKG_VER = 0.98
-PKG_REL = 1
-PKG_ARCH = noarch
+name = Test-Simple
+version = 0.98
+release = 1
+arch = noarch
-PKG_MAINTAINER =
-PKG_GROUPS = Development/Libratries
-PKG_URL = http://search.cpan.org/dist/Test-Simple/
-PKG_LICENSE = GPL+ or Artistic
-PKG_SUMMARY = Basic utilities for writing tests.
+groups = Development/Libratries
+url = http://search.cpan.org/dist/Test-Simple/
+license = GPL+ or Artistic
+summary = Basic utilities for writing tests.
-PKG_BUILD_DEPS+= perl-core perl-devel perl(Test::Harness)
-
-define PKG_DESCRIPTION
- This package provides the bulk of the core testing facilities. For more \
+description
+ This package provides the bulk of the core testing facilities. For more
information, see perldoc for Test::Simple, Test::More, etc.
-endef
-
-PKG_TARBALL = $(THISAPP).tar.gz
-
-define STAGE_BUILD
- cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=perl
- cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
- cd $(DIR_APP) && make test
-endef
+end
+
+source_dl =
+
+build
+ requires
+ perl-core
+ perl-devel
+ perl(Test::Harness)
+ end
+
+ build
+ perl Makefile.PL INSTALLDIRS=perl
+ make %{PARALLELISMFLAGS}
+ end
+
+ test
+ make test
+ end
+end
+
+packages
+ package perl-%{name}
+end