diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..4f23366 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,20 @@ +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/bridge-method-injector-parent-1.14.tar.gz b/bridge-method-injector-parent-1.14.tar.gz new file mode 100644 index 0000000..7167a75 Binary files /dev/null and b/bridge-method-injector-parent-1.14.tar.gz differ diff --git a/bridge-method-injector.spec b/bridge-method-injector.spec new file mode 100644 index 0000000..dc4876f --- /dev/null +++ b/bridge-method-injector.spec @@ -0,0 +1,57 @@ +Name: bridge-method-injector +Version: 1.14 +Release: 1 +Summary: Evolve Java classes without breaking compatibility +License: MIT +URL: https://github.com/infradna/bridge-method-injector +Source0: https://github.com/infradna/bridge-method-injector/archive/bridge-method-injector-parent-%{version}.tar.gz +Source1: LICENSE.txt +BuildArch: noarch +BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.maven:maven-plugin-api) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin) +BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-gitexe) +BuildRequires: mvn(org.jenkins-ci:annotation-indexer) mvn(org.ow2.asm:asm-all) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) +%description +This package contains small Java library for generating +synthetic bridge methods with different return types +to help backward compatibility. + +%package -n bridge-method-annotation +Summary: Bridge method injection annotations +%description -n bridge-method-annotation +This package contains annotations for injecting bridge methods. + +%package javadoc +Summary: Javadoc for %{name} +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-parent-%{version} +cp %{SOURCE1} LICENSE +%mvn_package :bridge-method-annotation bridge-method-annotation +%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]" +%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]" injector +%pom_remove_plugin :nexus-staging-maven-plugin +%pom_change_dep :asm-debug-all :asm-all injector + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc LICENSE + +%files -n bridge-method-annotation -f .mfiles-bridge-method-annotation +%doc LICENSE + +%files javadoc -f .mfiles-javadoc +%doc LICENSE + +%changelog +* Fri Aug 28 2020 Anan Fu - 1.14-1 +- package init diff --git a/bridge-method-injector.yaml b/bridge-method-injector.yaml new file mode 100644 index 0000000..f33d438 --- /dev/null +++ b/bridge-method-injector.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: infradna/bridge-method-injector +tag_prefix: "^" +seperator: "."