Name: invokebinder
Version: 1.15
Release: 2
Summary: A Java DSL for binding method handles forward, rather than backward
License: Apache-2.0
URL: https://github.com/headius/invokebinder/
Source0: %{url}/archive/%{name}-%{version}.zip
BuildArch: noarch
BuildRequires: maven-local mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%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}
%pom_remove_plugin :central-publishing-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']" '<version>3.5.0</version>'
sed -i '/include/d' pom.xml
rm -rf src/main/java/module-info.java
find ./ -name '*.jar' -exec rm -f '{}' \;
find ./ -name '*.class' -exec rm -f '{}' \;
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog
* Wed Apr 08 2026 yaoxin <1024769339@qq.com> - 1.15-2
- Remove unused dependencies and switch to a higher version of JDK for building
* Wed Nov 26 2025 Ge Wang <wang__ge@126.com> - 1.15-1
- update to version 1.15
* Wed Jan 10 2024 Ge Wang <wang__ge@126.com> - 1.12-1
- update to version 1.12
* Mon Aug 24 2020 huanghaitao <huanghaitao8@huawei.com> - 1.2-1
- package init