73 lines
2.5 KiB
RPMSpec
73 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package offo-hyphenation
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: offo-hyphenation
|
|
Version: 2.2
|
|
Release: 0
|
|
Summary: Hyphenation pattern files in the XML format
|
|
License: BSD-3-Clause AND GPL-2.0-only AND LPPL-1.0 AND MIT AND LGPL-2.1-only AND SUSE-Public-Domain AND SUSE-Freeware
|
|
Group: Development/Libraries/Java
|
|
URL: https://sourceforge.net/projects/offo
|
|
Source0: %{url}/files/%{name}/%{version}/%{name}.zip
|
|
Source1: https://www.latex-project.org/lppl.txt
|
|
Source2: https://spdx.org/licenses/MIT.txt
|
|
Source3: https://spdx.org/licenses/GPL-2.0.txt
|
|
Source4: https://spdx.org/licenses/BSD-3-Clause.txt
|
|
BuildRequires: java-devel >= 1.8
|
|
BuildRequires: javapackages-local
|
|
BuildRequires: libxslt-tools
|
|
BuildRequires: unzip
|
|
BuildRequires: mvn(org.apache.xmlgraphics:fop)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
The project Objects For Formatting Objects (OFFO) hosts hyphenation pattern
|
|
files in the XML format used by the Formatting Object Processor Apache Fop.
|
|
|
|
%prep
|
|
%setup -q -n %{name}
|
|
|
|
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
|
|
|
|
%build
|
|
mkdir -p build/classes/hyph
|
|
|
|
java -Xss2M -cp $(build-classpath xmlgraphics-fop) \
|
|
org.apache.fop.hyphenation.SerializeHyphPattern \
|
|
hyph build/classes/hyph
|
|
|
|
jar --create --verbose \
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
|
|
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
|
|
%endif
|
|
--file=build/%{name}-%{version}.jar -C build/classes .
|
|
|
|
xsltproc -o languages-info.html languages-info.xsl languages-info.xml
|
|
|
|
%install
|
|
install -dm0755 %{buildroot}%{_javadir}
|
|
install -pm0644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
%add_maven_depmap net.sf.offo:fop-hyph:%{version} %{name}.jar
|
|
|
|
%files -f .mfiles
|
|
%license {lppl,MIT,GPL-2.0,BSD-3-Clause}.txt
|
|
%doc images *.html
|
|
|
|
%changelog
|