]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - icu/icu.nm
9693bb1dc5f521e7102fb75dd69d8e6e0b82b927
[people/ms/ipfire-3.x.git] / icu / icu.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = icu
7 version = %{ver_major}.%{ver_minor}.%{ver_plevel}
8 ver_major = 50
9 ver_minor = 1
10 ver_plevel = 2
11 release = 1
12
13 groups = Development/Tools
14 url = http://www.icu-project.org
15 license = MIT and UCD and Public Domain
16 summary = International Components for Unicode.
17
18 description
19 Tools and utilities for developing with icu.
20 end
21
22 source_dl = http://download.icu-project.org/files/icu4c/%{version}/
23 sources = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz
24
25 build
26 DIR_APP = %{DIR_SRC}/icu/source
27
28 configure_options += \
29 --disable-static \
30 --with-data-packaging=library \
31 --disable-samples
32
33 configure_cmds
34 # There is no source/doc/html/search/ directory
35 sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
36
37 # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend
38 # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
39 test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
40 -i common/unicode/uconfig.h
41 end
42
43 test
44 make check
45 end
46 end
47
48 packages
49 package %{name}
50
51 package lib%{name}
52 template LIBS
53 end
54
55 package lib%{name}-devel
56 template DEVEL
57
58 files += \
59 %{bindir}/*config* \
60 %{bindir}/icuinfo \
61 %{libidir}/%{name} \
62 %{datadir}/%{name}
63 end
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
68 end