]> git.ipfire.org Git - ipfire-3.x.git/blame - icu/icu.nm
icu: libicu-devel also should provide icu-devel.
[ipfire-3.x.git] / icu / icu.nm
CommitLineData
34870564
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = icu
7version = %{ver_major}.%{ver_minor}.%{ver_plevel}
8ver_major = 50
9ver_minor = 1
10ver_plevel = 2
04128d8c 11release = 3
34870564
SS
12
13groups = Development/Tools
14url = http://www.icu-project.org
15license = MIT and UCD and Public Domain
16summary = International Components for Unicode.
17
18description
19 Tools and utilities for developing with icu.
20end
21
22source_dl = http://download.icu-project.org/files/icu4c/%{version}/
23sources = icu4c-%{ver_major}_%{ver_minor}_%{ver_plevel}-src.tgz
24
25build
26 DIR_APP = %{DIR_SRC}/icu/source
27
28 configure_options += \
29 --disable-static \
30 --with-data-packaging=library \
31 --disable-samples
32
5b1af63a
SS
33 prepare_cmds
34 sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
35 end
36
34870564
SS
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
50end
51
52packages
53 package %{name}
54
55 package lib%{name}
56 template LIBS
57 end
58
59 package lib%{name}-devel
60 template DEVEL
61
04128d8c
SS
62 provides
63 icu-devel = %{thisver}
64 end
65
34870564
SS
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
76end