invokebinder/invokebinder.spec

54 lines
1.8 KiB
RPMSpec
Raw Normal View History

2020-08-29 14:53:25 +08:00
Name: invokebinder
2024-01-10 14:42:17 +08:00
Version: 1.12
2020-08-29 14:53:25 +08:00
Release: 1
Summary: A Java DSL for binding method handles forward, rather than backward
License: ASL 2.0
URL: http://github.com/headius/invokebinder/
2024-01-10 14:42:17 +08:00
Source0: https://github.com/headius/invokebinder/archive/refs/tags/invokebinder-1.12.zip
2020-08-29 14:53:25 +08:00
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit) mvn(org.sonatype.oss:oss-parent:pom:)
2024-01-10 14:42:17 +08:00
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: java-11-openjdk-devel
Requires: java-11-openjdk
Requires: javapackages-tools
2020-08-29 14:53:25 +08:00
%description
This library hopes to provide a more friendly DSL for binding method handles.
Unlike the normal MethodHandle API, handles are bound forward from a source
MethodType and eventually adapted to a final target MethodHandle. Along the
way the transformations are pushed onto a stack and eventually applied in
reverse order, as the standard API demands.
%package javadoc
Summary: Javadocs for invokebinder
%description javadoc
This package contains the API documentation for invokebinder.
%prep
%setup -q -n invokebinder-invokebinder-%{version}
2024-01-10 14:42:17 +08:00
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']" '<version>3.5.0</version>'
sed -i '/release/d' pom.xml
sed -i '/include/d' pom.xml
rm -rf src/main/java/module-info.java
2020-08-29 14:53:25 +08:00
find ./ -name '*.jar' -exec rm -f '{}' \;
find ./ -name '*.class' -exec rm -f '{}' \;
%build
2024-01-10 14:42:17 +08:00
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
2020-08-29 14:53:25 +08:00
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
2024-01-10 14:42:17 +08:00
* Wed Jan 10 2024 Ge Wang <wang__ge@126.com> - 1.12-1
- update to version 1.12
2020-08-29 14:53:25 +08:00
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 1.2-1
- package init