# # spec file # # Copyright (c) 2023 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/ # %global base_name parboiled Version: 1.4.1 Release: 0 URL: http://parboiled.org/ Source0: https://github.com/sirthias/parboiled/archive/%{version}.tar.gz Source1: %{base_name}-build.tar.xz # for build see https://github.com/sirthias/parboiled/wiki/Building-parboiled Source2: https://repo1.maven.org/maven2/org/parboiled/%{base_name}-core/%{version}/%{base_name}-core-%{version}.pom Source3: https://repo1.maven.org/maven2/org/parboiled/%{base_name}-java/%{version}/%{base_name}-java-%{version}.pom BuildRequires: ant BuildRequires: fdupes BuildRequires: javapackages-local BuildArch: noarch Name: %{base_name} Summary: Java library providing parsing of input text based on PEGs License: Apache-2.0 Group: Development/Libraries/Java BuildRequires: java-devel >= 9 BuildRequires: objectweb-asm Requires: mvn(org.ow2.asm:asm) Requires: mvn(org.ow2.asm:asm-analysis) Requires: mvn(org.ow2.asm:asm-tree) Requires: mvn(org.ow2.asm:asm-util) %description parboiled is a mixed Java library providing parsing of arbitrary input text based on Parsing expression grammars (PEGs). PEGs are an alternative to context free grammars (CFGs) for formally specifying syntax, they make a replacement for regular expressions and generally have some advantages over the "traditional" way of building parser via CFGs. %package javadoc Summary: Javadoc for %{name} Group: Documentation/HTML %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{base_name}-%{version} -a1 find . -name "*.class" -delete find . -name "*.jar" -delete cp %{SOURCE2} %{base_name}-core/pom.xml cp %{SOURCE3} %{base_name}-java/pom.xml %build mkdir -p lib build-jar-repository -s lib \ objectweb-asm %{ant} \ package javadoc %install %global modules core java install -dm 0755 %{buildroot}%{_javadir}/%{base_name} install -dm 0755 %{buildroot}%{_mavenpomdir}/%{base_name} for i in %{modules}; do # jar install -pm 0644 %{base_name}-${i}/target/%{base_name}-${i}*%{version}.jar %{buildroot}%{_javadir}/%{base_name}/${i}.jar # pom %mvn_install_pom %{base_name}-${i}/pom.xml %{buildroot}%{_mavenpomdir}/%{base_name}/${i}.pom %add_maven_depmap %{base_name}/${i}.pom %{base_name}/${i}.jar # javadoc install -dm 0755 %{buildroot}%{_javadocdir}/%{base_name}/${i} cp -pr %{base_name}-${i}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{base_name}/${i}/ done %fdupes -s %{buildroot}%{_javadocdir} %files -f .mfiles %doc CHANGELOG README.markdown %license LICENSE %files javadoc %license LICENSE %{_javadocdir}/%{base_name} %changelog