4ee5564
Name:			antlr-maven-plugin
cd8689e
Version:		2.2
0055b97
Release:		18%{?dist}
4ee5564
Summary:		Maven plugin that generates files based on grammar file(s)
4ee5564
License:		ASL 2.0
4ee5564
URL:			http://mojo.codehaus.org/antlr-maven-plugin/
20b6f1b
de5e866
Source0:		http://repo1.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip
20b6f1b
Stanislav Ochotnicky 768e5dc
# Modern modello expects to see <models></models>, even if there is only one.
cd8689e
Patch0:			maven-antlr-plugin-2.2-modello-issue.patch
4ee5564
# siteRenderer.createSink doesn't exist anymore
4ee5564
Patch2:			maven-antlr-plugin-2.1-sinkfix.patch
70a56b5
# Fix grammar processing bug (bz 1020312)
70a56b5
Patch3:			0001-MANTLR-34-Fix-NPE-when-building-Jenkins.patch
20b6f1b
4ee5564
BuildArch:		noarch
20b6f1b
0055b97
BuildRequires:  maven-local
0055b97
BuildRequires:  mvn(org.apache.commons:commons-exec)
0055b97
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
0055b97
BuildRequires:  mvn(org.apache.maven:maven-project)
0055b97
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
0055b97
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
0055b97
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
0055b97
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
0055b97
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
0055b97
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
0055b97
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
0055b97
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
20b6f1b
4ee5564
%description
4ee5564
The Antlr Plugin has two goals:
Stanislav Ochotnicky 768e5dc
- antlr:generate Generates file(s) to a target directory based on grammar
4ee5564
  file(s).
4ee5564
- antlr:html Generates Antlr report for grammar file(s).
4ee5564
4ee5564
%package javadoc
4ee5564
Summary:		Javadocs for %{name}
4ee5564
4ee5564
%description javadoc
4ee5564
This package contains the API documentation for %{name}.
4ee5564
4ee5564
%prep
Stanislav Ochotnicky 768e5dc
%setup -q
4ee5564
%patch0 -p1 -b .modello
74e85dc
%patch2 -b .sink
70a56b5
%patch3 -p1 -b .fixnpe
4ee5564
Stanislav Ochotnicky 43abcfb
# reporting eventually pulls in another antlr and we'd break with weird errors
Stanislav Ochotnicky 43abcfb
%pom_xpath_inject "pom:dependency[pom:artifactId[text()='maven-reporting-impl']]/pom:exclusions" "
Stanislav Ochotnicky 43abcfb
        <exclusion>
Stanislav Ochotnicky 43abcfb
            <groupId>antlr</groupId>
Stanislav Ochotnicky 43abcfb
            <artifactId>antlr</artifactId>
Stanislav Ochotnicky 43abcfb
        </exclusion>"
Stanislav Ochotnicky 43abcfb
4ee5564
# remove all binary bits
4ee5564
find -name '*.class' -exec rm -f '{}' \;
4ee5564
find -name '*.jar' -exec rm -f '{}' \;
4ee5564
Mat Booth 113757d
%mvn_file : %{name}
Mat Booth 113757d
4ee5564
%build
Mat Booth 113757d
%mvn_build -- -Dmaven.test.skip=true
4ee5564
4ee5564
%install
Mat Booth 113757d
%mvn_install
4ee5564
Mat Booth 113757d
%files -f .mfiles
4ee5564
Mat Booth 113757d
%files javadoc -f .mfiles-javadoc
4ee5564
4ee5564
%changelog
0055b97
* Fri Jul 15 2016 Michael Simacek <msimacek@redhat.com> - 2.2-18
0055b97
- Regenerate buildrequires
0055b97
eeba5b4
* Mon Jun 20 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-17
eeba5b4
- Add missing build-requires
eeba5b4
a70cad5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-16
a70cad5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a70cad5
74e85dc
* Wed Jun 17 2015 Mat Booth <mat.booth@redhat.com> - 2.2-15
74e85dc
- Fix FTBFS
74e85dc
- Remove ancient provides/obsoletes
74e85dc
42bdeac
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-14
42bdeac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
42bdeac
66054a7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-13
66054a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
66054a7
70a56b5
* Fri Oct 18 2013 Tom Callaway <spot@fedoraproject.org> - 2.2-12
70a56b5
- Fix grammar processing bug (bz 1020312)
70a56b5
  Thanks to Michal Srb
70a56b5
Mat Booth 113757d
* Sat Aug 24 2013 Mat Booth <fedora@matbooth.co.uk> - 2.2-11
Mat Booth 113757d
- Remove unneeded BR on maven2-common-poms
Mat Booth 113757d
- Update for newer guidelines
Mat Booth 113757d
bd992df
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-10
bd992df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bd992df
Stanislav Ochotnicky 43abcfb
* Mon Mar 04 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-9
Stanislav Ochotnicky 43abcfb
- Add dependency exclusion for antlr (#911054)
Stanislav Ochotnicky 43abcfb
94e4334
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-8
94e4334
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
94e4334
Stanislav Ochotnicky 29e4946
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.2-7
Stanislav Ochotnicky 29e4946
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 29e4946
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 29e4946
7d1ff2e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-6
7d1ff2e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7d1ff2e
6ab1f5f
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-5
6ab1f5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6ab1f5f
20b6f1b
* Mon Dec 05 2011 Tomas Radej <tradej@redhat.com> - 2.2-4
20b6f1b
- Modello + maven-enforcer-plugin BR
20b6f1b
- Guideline fixes
20b6f1b
Stanislav Ochotnicky 768e5dc
* Thu Apr 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2-3
Stanislav Ochotnicky 768e5dc
- Add apache-commons-exec to R
Stanislav Ochotnicky 768e5dc
de5e866
* Wed Mar 9 2011 Alexander Kurtakov <akurtako@redhat.com> 2.2-2
de5e866
- Build with maven 3.
de5e866
- Use upstream sources.
de5e866
- Adapt to current guidelines.
de5e866
Mat Booth 113757d
* Thu Mar  3 2011 Tom Callaway <spot@fedoraproject.org> 2.2-1.20110307svn13719
cd8689e
- update to 2.2 tag
cd8689e
8235d85
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-4.20101012svn12849
8235d85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8235d85
4ee5564
* Wed Oct 13 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-3.20101012svn12849
4ee5564
- fix provides/obsoletes to replace old (dead) package
4ee5564
- don't own mavendepmapfragdir, just the files inside it
4ee5564
- don't set buildarch on javadoc (entire package is noarch already)
4ee5564
4ee5564
* Wed Oct 13 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-2.20101012svn12849
4ee5564
- add post/postun
4ee5564
- fix pom filename
4ee5564
- svn export
4ee5564
- comment patchset
4ee5564
- provides for maven-antlr-plugin
4ee5564
- drop unnecessary symlinks
4ee5564
- use maven macros
4ee5564
4ee5564
* Tue Oct 12 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-1.20101012svn12849
4ee5564
- initial package