Blob Blame History Raw
%global shortname access-modifier

Name:           access-modifier-annotation
Version:        1.4
Release:        1%{?dist}
Summary:        Java annotation for custom access modifiers

# License is specified in pom file
License:        MIT
# License text copied from
Source1:        LICENSE.txt

BuildArch:      noarch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-compiler-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-scm-plugin)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.jenkins-ci:annotation-indexer)
BuildRequires:  mvn(org.kohsuke.metainf-services:metainf-services)
BuildRequires:  mvn(org.kohsuke:pom)
BuildRequires:  objectweb-asm

Allows applications to define custom access modifiers programmatically,
to be enforced at compile time in the opt-in basis. Obviously, 
there's no runtime check either - this is strictly a voluntary annotations.
This mechanism is useful for actually making sure that deprecated features 
are not used (without actually removing such declarations, which would break 
binary compatibility.)

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.

%setup -q -n %{shortname}-%{shortname}-%{version}


%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]"

# We don't have asm-debug-all artifact,
# so we'll use the one without debugging information
%pom_xpath_replace "pom:dependency[pom:artifactId[text()='asm-debug-all']]" \
 </dependency>" access-modifier-checker



%files -f .mfiles
%files javadoc -f .mfiles-javadoc

* Thu May 09 2013 Michal Srb <> - 1.4-1
- Initial package