]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blob - icu/icu.nm
kernel: update to 4.12.10
[people/arne_f/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}
8 ver_major = 56
9 ver_minor = 1
10 ver_plevel =
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}-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 prepare_cmds
34 sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
35 end
36
37 configure_cmds
38 # There is no source/doc/html/search/ directory
39 sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
40
41 # The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend
42 # being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
43 test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
44 -i common/unicode/uconfig.h
45 end
46
47 test
48 make check
49 end
50 end
51
52 packages
53 package %{name}
54
55 package lib%{name}
56 template LIBS
57 end
58
59 package lib%{name}-devel
60 template DEVEL
61
62 provides
63 icu-devel = %{thisver}
64 end
65
66 files += \
67 %{bindir}/*config* \
68 %{bindir}/icuinfo \
69 %{libidir}/%{name} \
70 %{datadir}/%{name}
71 end
72
73 package %{name}-debuginfo
74 template DEBUGINFO
75 end
76 end