[bridge-method-injector] Initial import
Michal Srb
msrb at fedoraproject.org
Mon Jun 3 13:59:56 UTC 2013
commit b8015b738e8c7c45cf127600cc8b96f0fc9af100
Author: Michal Srb <msrb at redhat.com>
Date: Mon Jun 3 15:58:34 2013 +0200
Initial import
.gitignore | 2 +
bridge-method-injector.spec | 69 +++++++++++++++++++++++++++++++++++++++++++
sources | 2 +
3 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef4f37a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/bridge-method-injector-parent-1.4.tar.gz
+/LICENSE.txt
diff --git a/bridge-method-injector.spec b/bridge-method-injector.spec
new file mode 100644
index 0000000..8e6baab
--- /dev/null
+++ b/bridge-method-injector.spec
@@ -0,0 +1,69 @@
+Name: bridge-method-injector
+Version: 1.4
+Release: 1%{?dist}
+Summary: Evolve Java classes without breaking compatibility
+
+# License is specified in pom file
+License: MIT
+URL: https://github.com/infradna/bridge-method-injector
+Source0: https://github.com/infradna/%{name}/archive/%{name}-parent-%{version}.tar.gz
+# License text copied from http://www.opensource.org/licenses/mit-license.php
+# Upstream doesn't care about license texts in repository
+Source1: LICENSE.txt
+
+BuildArch: noarch
+
+BuildRequires: maven-local
+BuildRequires: mvn(junit:junit)
+BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
+BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
+BuildRequires: mvn(org.apache.maven:maven-plugin-api)
+BuildRequires: mvn(org.jenkins-ci:annotation-indexer)
+BuildRequires: objectweb-asm
+
+
+%description
+This package contains small Java library for generating
+synthetic bridge methods with different return types
+to help backward compatibility.
+
+%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
+
+# We don't have this extension
+%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]"
+%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]" injector
+
+%pom_xpath_replace "pom:dependency[pom:artifactId[text()='annotation-indexer']]/pom:groupId" \
+ "<groupId>org.jenkins-ci</groupId>" annotation
+
+# We don't have asm-all with debug information
+%pom_xpath_replace "pom:dependency[pom:artifactId[text()='asm-debug-all']]/pom:artifactId" \
+ "<artifactId>asm-all</artifactId>" injector
+
+%build
+%mvn_build
+
+%install
+%mvn_install
+
+
+%files -f .mfiles
+%dir %{_javadir}/%{name}
+%doc LICENSE
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE
+
+%changelog
+* Mon Jun 03 2013 Michal Srb <msrb at redhat.com> - 1.4-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..d9c7a7b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+e5b7e40b7a38c5f601c38541dbf3058e bridge-method-injector-parent-1.4.tar.gz
+393acf2823a3516dd29d40344458bb60 LICENSE.txt
More information about the scm-commits
mailing list