Sisyphus repository
Last update: 2018-07-17 15:07:08 +0400 | SRPMs: 18623 | Sign in or Sign up
en ru uk br
ALT Linux repositories
hide window
Sisyphus: 2.2-alt3_21jpp8
p8: 2.2-alt3_15jpp8
p7: 2.2-alt1_6jpp7
t7: 2.2-alt1_6jpp7

Group :: Development/Java
Source RPM: antlr-maven-plugin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR (0/0)   Repocop 

Raw spec file

Group: Development/Java
# BEGIN SourceDeps(oneline):

BuildRequires: rpm-build-java unzip
# END SourceDeps(oneline)

BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see

%define _localstatedir %{_var}
Name:                        antlr-maven-plugin
Version:                2.2
Release:                alt3_21jpp8
Summary:                Maven plugin that generates files based on grammar file(s)
License:                ASL 2.0

Source0:      {name}/%{version}/%{name}-%{version}

# Modern modello expects to see <models></models>, even if there is only one.

Patch0:                        maven-antlr-plugin-2.2-modello-issue.patch
# siteRenderer.createSink doesn't exist anymore

Patch2:                        maven-antlr-plugin-2.1-sinkfix.patch
# Fix grammar processing bug (bz 1020312)

Patch3:                        0001-MANTLR-34-Fix-NPE-when-building-Jenkins.patch

BuildArch:                noarch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

#Provides: mojo-maven2-plugin-antlr = %version

Obsoletes: mojo-maven2-plugin-antlr = 17

The Antlr Plugin has two goals:
- antlr:generate Generates file(s) to a target directory based on grammar
- antlr:html Generates Antlr report for grammar file(s).

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

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

%setup -q
%patch0 -p1 -b .modello
%patch2 -b .sink
%patch3 -p1 -b .fixnpe

# reporting eventually pulls in another antlr and we'd break with weird errors

%pom_xpath_inject "pom:dependency[pom:artifactId[text()=&#39;maven-reporting-impl']]/pom:exclusions" "

# remove all binary bits

find -name &#39;*.class' -exec rm -f '{}' \;
find -name &#39;*.jar' -exec rm -f '{}' \;

%mvn_file : %{name}

%mvn_build -- -Dmaven.test.skip=true


%files -f .mfiles

%files javadoc -f .mfiles-javadoc

* Sun Apr 15 2018 Igor Vlasenko <viy at> 2.2-alt3_21jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy at> 2.2-alt3_20jpp8
- fc27 update

* Sun Oct 22 2017 Igor Vlasenko <viy at> 2.2-alt3_19jpp8
- new jpp release

* Fri Dec 16 2016 Igor Vlasenko <viy at> 2.2-alt3_18jpp8
- new fc release

* Tue Nov 22 2016 Igor Vlasenko <viy at> 2.2-alt3_16jpp8
- new fc release

* Sun Jan 31 2016 Igor Vlasenko <viy at> 2.2-alt3_15jpp8
- new version

* Mon Sep 08 2014 Igor Vlasenko <viy at> 2.2-alt3_12jpp7
- new release

* Mon Jul 28 2014 Igor Vlasenko <viy at> 2.2-alt3_9jpp7
- new release

* Thu Jul 17 2014 Igor Vlasenko <viy at> 2.2-alt3_6jpp7
- fixed build

* Mon Jul 14 2014 Igor Vlasenko <viy at> 2.2-alt2_6jpp7
- NMU rebuild to move poms and fragments

* Mon Aug 27 2012 Igor Vlasenko <viy at> 2.2-alt1_6jpp7
- new release

* Sat Mar 17 2012 Igor Vlasenko <viy at> 2.2-alt1_5jpp7
- new version

© 2009–2018 Igor Zubkov