]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/python-IPy/python-IPy.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / python-IPy / python-IPy.nm
index 1206f0545ebaf6fed0bfcbc3de9c568cf9c2e3be..345f4e33cc7bd010f372b7ea2b5d507ec7cb2688 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# 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       = IPy
-PKG_VER        = 0.62
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = python-IPy
+version    = 0.62
+release    = 1
+arch       = noarch
+thisapp    = IPy-%{version}
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://software.inl.fr/trac/trac.cgi/wiki/IPy
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Python module for handling IPv4 and IPv6 Addresses and Networks.
+groups     = System/Libraries
+url        = http://software.inl.fr/trac/trac.cgi/wiki/IPy
+license    = BSD
+summary    = Python module for handling IPv4 and IPv6 Addresses and Networks.
 
-PKG_BUILD_DEPS+= python-devel
-
-define PKG_DESCRIPTION
+description
        IPy is a Python module for handling IPv4 and IPv6 Addresses and \
        Networks in a fashion similar to perl's Net::IP and friends. The IP \
        class allows a comfortable parsing and handling for most notations \
        in use for IPv4 and IPv6 Addresses and Networks.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build = # Nothing to do
 
-STAGE_BUILD = # Nothing to do
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end