Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Java:packages
jabel
jabel.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File jabel.spec of Package jabel
# # spec file for package jabel # # 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/ # Name: jabel Version: 1.0.0 Release: 0 Summary: Unlock Javac 9+ syntax when targeting Java 8 License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/bsideup/%{name} Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: https://repo1.maven.org/maven2/com/github/bsideup/%{name}/%{name}-javac-plugin/%{version}/%{name}-javac-plugin-%{version}.pom Patch0: jabel-bytebuddy-noasm.patch BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(net.bytebuddy:byte-buddy) BuildRequires: mvn(net.bytebuddy:byte-buddy-agent) BuildRequires: mvn(net.java.dev.jna:jna) BuildConflicts: java-devel > 14 BuildArch: noarch %description While Java is evolving and introduces new language features, the majority of OSS libraries are still using Java 8 as their target because it still dominates. But, since most of features after Java 8 did not require a change in the bytecode, javac could emit Java 8 bytecode even when compiling Java 12 sources. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q %patch -P 0 -p1 cp %{SOURCE1} %{name}-javac-plugin/pom.xml %pom_remove_dep net.bytebuddy:byte-buddy-parent %{name}-javac-plugin %pom_xpath_remove 'pom:scope[.="runtime"]' %{name}-javac-plugin %build %{mvn_build} -f -- \ -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ -Dmaven.compiler.{source,target}=8 \ -f %{name}-javac-plugin %{mvn_file} ':{*}' @1 %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor