unicode-ucd: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sat, 19 May 2012 20:20:24 +0000 (22:20 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sat, 19 May 2012 20:36:27 +0000 (22:36 +0200)
unicode-ucd/unicode-ucd.nm [new file with mode: 0644]

diff --git a/unicode-ucd/unicode-ucd.nm b/unicode-ucd/unicode-ucd.nm
new file mode 100644 (file)
index 0000000..520edec
--- /dev/null
@@ -0,0 +1,50 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = unicode-ucd
+version    = 6.1.0
+release    = 1
+arch       = noarch
+
+groups     = Development/System 
+url        = http://www.unicode.org/ucd/
+license    = MIT
+summary    = Unicode Character Database.
+
+description
+       The Unicode Character Database (UCD) consists of a number of data files listing
+       Unicode character properties and related data. It also includes data files
+       containing test data for conformance to several important Unicode algorithms.
+end
+
+source_dl  = http://www.unicode.org/Public/zipped/%{version}/
+sources    = UCD.zip
+
+build
+       requires
+               unzip>=6.0-3
+       end
+
+       prepare
+               # Manually create DIR_APP because the 
+               # soucre archive doesn't contain any folder.
+               mkdir -pv %{DIR_APP}
+
+               # Manually extract zip compressed source archive.
+               cd %{DIR_APP} && unzip %{DIR_DL}/%{sources}
+       end
+
+       build = # Nothing to do
+
+       install
+               # Create install folder and copy files.
+               mkdir -pv %{BUILDROOT}%{datadir}/unicode/ucd/
+               cp -arvf . %{BUILDROOT}%{datadir}/unicode/ucd/
+       end
+end
+
+packages
+       package %{name}
+end