Blame SPECS/apache-commons-jexl.spec

2fde85
%{?scl:%scl_package apache-%{jarname}}
2fde85
%{!?scl:%global pkg_name %{name}}
2fde85
2fde85
%global jarname commons-jexl
2fde85
%global compatver 2.1.0
2fde85
2fde85
Name:           %{?scl_prefix}apache-%{jarname}
2fde85
Version:        2.1.1
2fde85
Release:        18.2%{?dist}
2fde85
Summary:        Java Expression Language (JEXL)
2fde85
License:        ASL 2.0
2fde85
URL:            http://commons.apache.org/jexl
2fde85
BuildArch:      noarch
2fde85
2fde85
Source0:        http://www.apache.org/dist/commons/jexl/source/%{jarname}-%{version}-src.tar.gz
2fde85
2fde85
# Patch to fix test failure with junit 4.11
2fde85
Patch0:         001-Fix-tests.patch
2fde85
# Fix javadoc build
2fde85
Patch1:         apache-commons-jexl-javadoc.patch
2fde85
Patch2:         0001-Port-to-current-javacc.patch
2fde85
2fde85
BuildRequires:  %{?scl_prefix}maven-local
2fde85
BuildRequires:  %{?scl_prefix}mvn(commons-logging:commons-logging)
2fde85
BuildRequires:  %{?scl_prefix}mvn(junit:junit)
2fde85
BuildRequires:  %{?scl_prefix}mvn(org.apache.commons:commons-parent:pom:)
2fde85
BuildRequires:  %{?scl_prefix}mvn(org.codehaus.mojo:javacc-maven-plugin)
2fde85
2fde85
Provides:       %{?scl_prefix}%{jarname} = %{version}-%{release}
2fde85
2fde85
%description
2fde85
Java Expression Language (JEXL) is an expression language engine which can be
2fde85
embedded in applications and frameworks.  JEXL is inspired by Jakarta Velocity
2fde85
and the Expression Language defined in the JavaServer Pages Standard Tag
2fde85
Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP).  While
2fde85
inspired by JSTL EL, it must be noted that JEXL is not a compatible
2fde85
implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152).
2fde85
For a compatible implementation of these specifications, see the Commons EL
2fde85
project.
2fde85
2fde85
JEXL attempts to bring some of the lessons learned by the Velocity community
2fde85
about expression languages in templating to a wider audience.  Commons Jelly
2fde85
needed Velocity-ish method access, it just had to have it.
2fde85
2fde85
%package javadoc
2fde85
Summary:        Javadocs for %{pkg_name}
2fde85
Requires:       %{?scl_prefix}jpackage-utils
2fde85
Provides:       %{?scl_prefix}%{jarname}-javadoc = %{version}-%{release}
2fde85
2fde85
%description javadoc
2fde85
This package contains the API documentation for %{pkg_name}.
2fde85
2fde85
%prep
2fde85
%setup -q -n %{jarname}-%{version}-src
2fde85
%patch0 -p1 -b .test
2fde85
%patch1 -p1 -b .javadoc
2fde85
%patch2 -p1
2fde85
2fde85
# Java 1.6 contains bsf 3.0, so we don't need the dependency in the pom.xml file
2fde85
%pom_remove_dep org.apache.bsf:bsf-api
2fde85
find \( -name '*.jar' -o -name '*.class' \) -delete
2fde85
# Fix line endings
2fde85
find -name '*.txt' -exec sed -i 's/\r//' '{}' +
2fde85
2fde85
# Drop "-SNAPSHOT" from version
2fde85
%pom_xpath_set "pom:project/pom:version" %{compatver} jexl2-compat
2fde85
%pom_xpath_set "pom:dependency[pom:artifactId='commons-jexl']/pom:version" %{version} jexl2-compat
2fde85
2fde85
echo "
2fde85
<project>
2fde85
  <modelVersion>4.0.0</modelVersion>
2fde85
  <groupId>org.fedoraproject</groupId>
2fde85
  <artifactId>commons-jexl-aggegator</artifactId>
2fde85
  <version>%{version}</version>
2fde85
  <packaging>pom</packaging>
2fde85
  <modules>
2fde85
    <module>.</module>
2fde85
    <module>jexl2-compat</module>
2fde85
  </modules>
2fde85
</project>" >>aggregator-pom.xml
2fde85
%mvn_package :commons-jexl-aggegator __noinstall
2fde85
2fde85
%build
2fde85
%mvn_build -- -f aggregator-pom.xml
2fde85
2fde85
%install
2fde85
%mvn_install
2fde85
2fde85
%files -f .mfiles
2fde85
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
2fde85
%{_javadir}/%{pkg_name}
2fde85
2fde85
%files javadoc -f .mfiles-javadoc
2fde85
%doc LICENSE.txt NOTICE.txt
2fde85
2fde85
%changelog
2fde85
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 2.1.1-18.2
2fde85
- Mass rebuild 2017-06-22
2fde85
2fde85
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 2.1.1-18.1
2fde85
- Automated package import and SCL-ization
2fde85
2fde85
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-18
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2fde85
2fde85
* Wed Sep 07 2016 Michael Simacek <msimacek@redhat.com> - 2.1.1-17
2fde85
- Port to current javacc
2fde85
2fde85
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-16
2fde85
- Regenerate build-requires
2fde85
2fde85
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-15
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2fde85
2fde85
* Mon Jul 27 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-14
2fde85
- Build compat package in the same reactor as main module
2fde85
2fde85
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-13
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2fde85
2fde85
* Wed Apr 15 2015 Orion Poplawski <orion@cora.nwra.com> - 2.1.1-12
2fde85
- Add patch to fix javadoc build
2fde85
2fde85
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-11
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2fde85
2fde85
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-10
2fde85
- Use Requires: java-headless rebuild (#1067528)
2fde85
2fde85
* Thu Jan 02 2014 Michal Srb <msrb@redhat.com> - 2.1.1-9
2fde85
- Build JEXL 1.x compat artifact
2fde85
- Fix directory ownership
2fde85
2fde85
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-8
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2fde85
2fde85
* Mon Jul  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-7
2fde85
- Install NOTICE file with javadoc package
2fde85
2fde85
* Fri Jun 28 2013 Orion Poplawski <orion@cora.nwra.com> - 2.1.1-6
2fde85
- Update to current maven spec guidelines to fix build (bug 979497)
2fde85
- Add patch to fix test with junit 4.11
2fde85
2fde85
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2fde85
2fde85
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.1.1-4
2fde85
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2fde85
- Replace maven BuildRequires with maven-local
2fde85
2fde85
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2fde85
2fde85
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2fde85
2fde85
* Sat Dec 24 2011 Orion Poplawski <orion@cora.nwra.com> - 2.1.1-1
2fde85
- Update to 2.1.1
2fde85
2fde85
* Mon Dec 12 2011 Orion Poplawski <orion@cora.nwra.com> - 2.1-1
2fde85
- Update to 2.1
2fde85
- Update bsf patch
2fde85
- Add needed BRs
2fde85
2fde85
* Tue Oct 11 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0.1-4
2fde85
- Packaging fixes
2fde85
- New maven macro for depmaps (include a compat depmap) #745118
2fde85
2fde85
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
2fde85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2fde85
2fde85
* Mon Dec 6 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-3
2fde85
- Use BR apache-commons-parent
2fde85
2fde85
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-2
2fde85
- Add license to javadoc package
2fde85
2fde85
* Wed May 26 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-1
2fde85
- Update to 2.0.1
2fde85
- Require Java 1.6 or greater
2fde85
- Drop language level patch
2fde85
- Add patch to remove bsf-api 3.0 dependency from pom.xml as this is provided
2fde85
  by Java 1.6
2fde85
- Fix depmap group id
2fde85
2fde85
* Sat Jan 9 2010 Orion Poplawski <orion@cora.nwra.com> - 1.1-3
2fde85
- Drop gcj support
2fde85
- Fix javadoc group
2fde85
- Bump java levels in pom.xml
2fde85
2fde85
* Thu Jan 7 2010 Orion Poplawski <orion@cora.nwra.com> - 1.1-2
2fde85
- Rename to apache-commons-jexl
2fde85
2fde85
* Tue Oct 27 2009 Orion Poplawski <orion@cora.nwra.com> - 1.1-1
2fde85
- Initial Fedora Package