77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
###############################################################################
|
|
# IPFire.org - An Open Source Firewall Solution #
|
|
# Copyright (C) - IPFire Development Team <info@ipfire.org> #
|
|
###############################################################################
|
|
|
|
name = icu
|
|
version = %{ver_major}.%{ver_minor}
|
|
ver_major = 72
|
|
ver_minor = 1
|
|
ver_plevel =
|
|
release = 1
|
|
|
|
groups = Development/Tools
|
|
url = http://www.icu-project.org
|
|
license = MIT and UCD and Public Domain
|
|
summary = International Components for Unicode.
|
|
|
|
description
|
|
Tools and utilities for developing with icu.
|
|
end
|
|
|
|
source_dl = https://github.com/unicode-org/icu/releases/download/release-%{ver_major}-%{ver_minor}/
|
|
sources = icu4c-%{ver_major}_%{ver_minor}-src.tgz
|
|
|
|
build
|
|
DIR_APP = %{DIR_SRC}/icu/source
|
|
|
|
configure_options += \
|
|
--disable-static \
|
|
--with-data-packaging=library \
|
|
--disable-samples
|
|
|
|
prepare_cmds
|
|
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
|
|
end
|
|
|
|
configure_cmds
|
|
# There is no source/doc/html/search/ directory
|
|
sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
|
|
|
|
# The configure --disable-renaming and possibly other options result in icu/source/uconfig.h.prepend
|
|
# being created, include that content in icu/source/common/unicode/uconfig.h to propagate to consumer packages.
|
|
test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' \
|
|
-i common/unicode/uconfig.h
|
|
end
|
|
|
|
test
|
|
make check
|
|
end
|
|
end
|
|
|
|
packages
|
|
package %{name}
|
|
|
|
package lib%{name}
|
|
template LIBS
|
|
end
|
|
|
|
package lib%{name}-devel
|
|
template DEVEL
|
|
|
|
provides
|
|
icu-devel = %{thisver}
|
|
end
|
|
|
|
files += \
|
|
%{bindir}/*config* \
|
|
%{bindir}/icuinfo \
|
|
%{libidir}/%{name} \
|
|
%{datadir}/%{name}
|
|
end
|
|
|
|
package %{name}-debuginfo
|
|
template DEBUGINFO
|
|
end
|
|
end
|