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