|
|
a39d77c |
%global shortname access-modifier
|
|
|
a39d77c |
|
|
|
a39d77c |
Name: access-modifier-annotation
|
|
|
a39d77c |
Version: 1.4
|
|
|
a39d77c |
Release: 1%{?dist}
|
|
|
a39d77c |
Summary: Java annotation for custom access modifiers
|
|
|
a39d77c |
|
|
|
a39d77c |
# License is specified in pom file
|
|
|
a39d77c |
License: MIT
|
|
|
a39d77c |
URL: https://github.com/kohsuke/access-modifier
|
|
|
a39d77c |
Source0: https://github.com/kohsuke/%{shortname}/archive/%{shortname}-%{version}.tar.gz
|
|
|
a39d77c |
# License text copied from http://www.opensource.org/licenses/mit-license.php
|
|
|
a39d77c |
Source1: LICENSE.txt
|
|
|
a39d77c |
|
|
|
a39d77c |
BuildArch: noarch
|
|
|
a39d77c |
|
|
|
a39d77c |
BuildRequires: maven-local
|
|
|
a39d77c |
BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
|
|
|
a39d77c |
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
|
|
|
a39d77c |
BuildRequires: mvn(org.apache.maven.plugins:maven-scm-plugin)
|
|
|
a39d77c |
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
|
|
a39d77c |
BuildRequires: mvn(org.apache.maven:maven-project)
|
|
|
a39d77c |
BuildRequires: mvn(org.jenkins-ci:annotation-indexer)
|
|
|
a39d77c |
BuildRequires: mvn(org.kohsuke.metainf-services:metainf-services)
|
|
|
a39d77c |
BuildRequires: mvn(org.kohsuke:pom)
|
|
|
a39d77c |
BuildRequires: objectweb-asm
|
|
|
a39d77c |
|
|
|
a39d77c |
%description
|
|
|
a39d77c |
Allows applications to define custom access modifiers programmatically,
|
|
|
a39d77c |
to be enforced at compile time in the opt-in basis. Obviously,
|
|
|
a39d77c |
there's no runtime check either - this is strictly a voluntary annotations.
|
|
|
a39d77c |
This mechanism is useful for actually making sure that deprecated features
|
|
|
a39d77c |
are not used (without actually removing such declarations, which would break
|
|
|
a39d77c |
binary compatibility.)
|
|
|
a39d77c |
|
|
|
a39d77c |
%package javadoc
|
|
|
a39d77c |
Summary: Javadoc for %{name}
|
|
|
a39d77c |
|
|
|
a39d77c |
%description javadoc
|
|
|
a39d77c |
This package contains the API documentation for %{name}.
|
|
|
a39d77c |
|
|
|
a39d77c |
|
|
|
a39d77c |
%prep
|
|
|
a39d77c |
%setup -q -n %{shortname}-%{shortname}-%{version}
|
|
|
a39d77c |
|
|
|
a39d77c |
cp %{SOURCE1} LICENSE
|
|
|
a39d77c |
|
|
|
a39d77c |
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]"
|
|
|
a39d77c |
|
|
|
a39d77c |
# We don't have asm-debug-all artifact,
|
|
|
a39d77c |
# so we'll use the one without debugging information
|
|
|
a39d77c |
%pom_xpath_replace "pom:dependency[pom:artifactId[text()='asm-debug-all']]" \
|
|
|
a39d77c |
"<dependency>
|
|
|
a39d77c |
<groupId>asm</groupId>
|
|
|
a39d77c |
<artifactId>asm-all</artifactId>
|
|
|
a39d77c |
</dependency>" access-modifier-checker
|
|
|
a39d77c |
|
|
|
a39d77c |
|
|
|
a39d77c |
%build
|
|
|
a39d77c |
%mvn_build
|
|
|
a39d77c |
|
|
|
a39d77c |
%install
|
|
|
a39d77c |
%mvn_install
|
|
|
a39d77c |
|
|
|
a39d77c |
|
|
|
a39d77c |
%files -f .mfiles
|
|
|
a39d77c |
%doc LICENSE
|
|
|
a39d77c |
%files javadoc -f .mfiles-javadoc
|
|
|
a39d77c |
%doc LICENSE
|
|
|
a39d77c |
|
|
|
a39d77c |
%changelog
|
|
|
a39d77c |
* Thu May 09 2013 Michal Srb <msrb@redhat.com> - 1.4-1
|
|
|
a39d77c |
- Initial package
|
|
|
a39d77c |
|