Sisyphus repository
Last update: 25 june 2019 | SRPMs: 17673 | Visits: 14178315
en ru br
ALT Linux repos
S:1.14-alt1_10jpp8

Group :: Development/Java
RPM: bridge-method-injector

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:           bridge-method-injector
Version:        1.14
Release:        alt1_10jpp8
Summary:        Evolve Java classes without breaking compatibility
# License is specified in pom file
License:        MIT
URL:            https://github.com/infradna/bridge-method-injector
BuildArch:      noarch

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

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  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)
BuildRequires:  mvn(org.ow2.asm:asm-all)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
Source44: import.info

%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
Group: Development/Java
Summary:        Bridge method injection annotations

%description -n bridge-method-annotation
This package contains annotations for injecting bridge methods.

%package        javadoc
Group: Development/Java
Summary:        Javadoc for %{name}
BuildArch: noarch

%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

# 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_remove_plugin :nexus-staging-maven-plugin

# We don't have asm-all with debug information

%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

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin