]>
Commit | Line | Data |
---|---|---|
977bb425 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = compat-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 | thisapp = icu-%{version} | |
13 | ||
14 | groups = Development/Tools | |
15 | url = http://www.icu-project.org | |
16 | license = MIT and UCD and Public Domain | |
17 | summary = International Components for Unicode. | |
18 | ||
19 | description | |
20 | Tools and utilities for developing with icu. | |
21 | end | |
22 | ||
23 | source_dl = http://download.icu-project.org/files/icu4c/%{version}/ | |
24 | sources = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz | |
25 | ||
26 | build | |
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 | |
57 | end | |
58 | ||
59 | packages | |
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 | |
73 | end |