b325e25
%global dashver %(echo "%{version}" | sed 's/\\./-/')
342f978
ccac3a0
Name:           icu4j
f25bcc9
Version:        75.1
07dad89
Release:        %autorelease
b81b84f
Epoch:          1
50094ee
Summary:        International Components for Unicode for Java
b325e25
License:        Unicode-DFS-2016
3ee3cb8
URL:            https://icu.unicode.org/
f25bcc9
VCS:            https://github.com/unicode-org/icu
66167ea
f25bcc9
Source0:        %{vcs}/archive/release-%{dashver}.tar.gz
b325e25
b325e25
BuildRequires:  maven-local
f25bcc9
BuildRequires:  mvn(com.google.code.gson:gson)
b325e25
BuildRequires:  mvn(junit:junit)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-compiler-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-jar-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-resources-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
b325e25
BuildRequires:  mvn(org.apache.maven.plugins:maven-surefire-plugin)
b325e25
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
b325e25
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
b325e25
BuildRequires:  mvn(pl.pragmatists:JUnitParams)
14734e0
66167ea
BuildArch:      noarch
6a4b355
ExclusiveArch:  %{java_arches} noarch
50094ee
50094ee
%description
50094ee
The International Components for Unicode (ICU) library provides robust and
50094ee
full-featured Unicode services on a wide variety of platforms. ICU supports
50094ee
the most current version of the Unicode standard, and provides support for
50094ee
supplementary characters (needed for GB 18030 repertoire support).
50094ee
50094ee
Java provides a very strong foundation for global programs, and IBM and the
50094ee
ICU team played a key role in providing globalization technology into Sun's
50094ee
Java. But because of its long release schedule, Java cannot always keep
50094ee
up-to-date with evolving standards. The ICU team continues to extend Java's
50094ee
Unicode and internationalization support, focusing on improving
50094ee
performance, keeping current with the Unicode standard, and providing
50094ee
richer APIs, while remaining as compatible as possible with the original
50094ee
Java text and internationalization API design.
50094ee
b325e25
%package        charset
b325e25
Summary:        Charset converter library of %{name}
edb82a3
Requires:       %{name} = 1:%{version}-%{release}
Krzysztof Daniel 8eeaf18
b325e25
%description    charset
719b68d
Charset converter library of %{name}.
66167ea
b325e25
%package        localespi
b325e25
Summary:        Locale SPI library of %{name}
edb82a3
Requires:       %{name} = 1:%{version}-%{release}
66167ea
b325e25
%description    localespi
719b68d
Locale SPI library of %{name}.
Krzysztof Daniel 8eeaf18
b325e25
%package        parent
b325e25
Summary:        Parent POM for %{name}
b325e25
b325e25
%description    parent
b325e25
Parent POM for %{name}.
50094ee
2dde053
%package        javadoc
edb82a3
# Unicode-DFS-2016: the content
edb82a3
# MIT: jquery
edb82a3
License:        Unicode-DFS-2016 AND MIT
2dde053
Summary:        API documentation for %{name}
edb82a3
Provides:       bundled(js-jquery)
2dde053
2dde053
%description    javadoc
2dde053
API documentation for %{name}.
50094ee
50094ee
%prep
b325e25
%autosetup -p1 -n icu-release-%{dashver}
b325e25
cd icu4j
b325e25
b325e25
# Unnecessary plugins for an RPM build
b325e25
%pom_remove_plugin -r :maven-clean-plugin
b325e25
%pom_remove_plugin -r :maven-deploy-plugin
b325e25
%pom_remove_plugin :maven-install-plugin
b325e25
%pom_remove_plugin :maven-javadoc-plugin
b325e25
%pom_remove_plugin :maven-project-info-reports-plugin
b325e25
%pom_remove_plugin :maven-release-plugin
b325e25
%pom_remove_plugin :maven-site-plugin
b325e25
cd -
3b1a55a
50094ee
%build
b325e25
cd icu4j
b325e25
%mvn_build -s
b325e25
cd -
50094ee
66167ea
%install
b325e25
cd icu4j
b325e25
%mvn_install
b325e25
cd -
66167ea
edb82a3
# We do not want the dev and test component jars
edb82a3
rm %{buildroot}%{_javadir}/icu4j/{common_tests,demos,framework,perf-tests,samples,tools_misc,utilities-for-cldr}.jar
edb82a3
rm %{buildroot}%{_datadir}/maven-metadata/icu4j-{common_tests,demos,framework,perf-tests,samples,tools_misc,utilities-for-cldr}.xml
edb82a3
rm %{buildroot}%{_mavenpomdir}/icu4j/{common_tests,demos,framework,perf-tests,samples,tools_misc,utilities-for-cldr}.pom
50094ee
edb82a3
%files -f icu4j/.mfiles-icu4j -f icu4j/.mfiles-collate -f icu4j/.mfiles-core -f icu4j/.mfiles-currdata -f icu4j/.mfiles-langdata -f icu4j/.mfiles-regiondata -f icu4j/.mfiles-translit
b325e25
%license LICENSE
b325e25
%doc icu4j/readme.html icu4j/APIChangeReport.html
50094ee
b325e25
%files charset -f icu4j/.mfiles-icu4j-charset
66167ea
b325e25
%files localespi -f icu4j/.mfiles-icu4j-localespi
Krzysztof Daniel 8eeaf18
b325e25
%files parent -f icu4j/.mfiles-icu4j-root
50094ee
2dde053
%files javadoc -f icu4j/.mfiles-javadoc
2dde053
%license LICENSE
2dde053
50094ee
%changelog
07dad89
%autochangelog