Blame SPECS/apache-commons-jexl.spec

2803b4
%global jarname commons-jexl
2803b4
2803b4
Name:           apache-%{jarname}
2803b4
Version:        2.1.1
2803b4
Release:        8%{?dist}
2803b4
Summary:        Java Expression Language (JEXL)
2803b4
2803b4
Group:          Development/Libraries
2803b4
License:        ASL 2.0
2803b4
URL:            http://commons.apache.org/jexl
2803b4
Source0:        http://www.apache.org/dist/commons/jexl/source/%{jarname}-%{version}-src.tar.gz
2803b4
# Patch to fix test failure with junit 4.11
2803b4
Patch0:         001-Fix-tests.patch
2803b4
2803b4
BuildRequires:  maven-local
2803b4
BuildRequires:  apache-commons-parent >= 26-7
2803b4
BuildRequires:  javacc-maven-plugin
2803b4
2803b4
BuildArch:      noarch
2803b4
2803b4
Provides:       %{jarname} = %{version}-%{release}
2803b4
2803b4
%description
2803b4
Java Expression Language (JEXL) is an expression language engine which can be
2803b4
embedded in applications and frameworks.  JEXL is inspired by Jakarta Velocity
2803b4
and the Expression Language defined in the JavaServer Pages Standard Tag
2803b4
Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP).  While
2803b4
inspired by JSTL EL, it must be noted that JEXL is not a compatible
2803b4
implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152).
2803b4
For a compatible implementation of these specifications, see the Commons EL
2803b4
project.
2803b4
2803b4
JEXL attempts to bring some of the lessons learned by the Velocity community
2803b4
about expression languages in templating to a wider audience.  Commons Jelly
2803b4
needed Velocity-ish method access, it just had to have it.
2803b4
2803b4
2803b4
%package javadoc
2803b4
Summary:        Javadocs for %{name}
2803b4
Group:          Documentation
2803b4
Requires:       jpackage-utils
2803b4
Provides:       %{jarname}-javadoc = %{version}-%{release}
2803b4
2803b4
%description javadoc
2803b4
This package contains the API documentation for %{name}.
2803b4
2803b4
2803b4
%prep
2803b4
%setup -q -n %{jarname}-%{version}-src
2803b4
%patch0 -p1 -b .test
2803b4
# Java 1.6 contains bsf 3.0, so we don't need the dependency in the pom.xml file
2803b4
%pom_remove_dep org.apache.bsf:bsf-api
2803b4
find \( -name '*.jar' -o -name '*.class' \) -delete
2803b4
# Fix line endings
2803b4
find -name '*.txt' -exec sed -i 's/\r//' '{}' +
2803b4
2803b4
2803b4
%build
2803b4
%mvn_build
2803b4
2803b4
2803b4
%install
2803b4
%mvn_install
2803b4
2803b4
2803b4
%files -f .mfiles
2803b4
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt
2803b4
2803b4
%files javadoc -f .mfiles-javadoc
2803b4
%doc LICENSE.txt NOTICE.txt
2803b4
%{_javadocdir}/%{name}
2803b4
2803b4
2803b4
%changelog
2803b4
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-8
2803b4
- Add BuildRequires on apache-commons-parent >= 26-7
2803b4
2803b4
* Mon Jul  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-7
2803b4
- Install NOTICE file with javadoc package
2803b4
2803b4
* Thu Jun 28 2013 Orion Poplawski <orion@cora.nwra.com> - 2.1.1-6
2803b4
- Update to current maven spec guidelines to fix build (bug 979497)
2803b4
- Add patch to fix test with junit 4.11
2803b4
2803b4
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.1-6
2803b4
- Rebuild to regenerate API documentation
2803b4
- Resolves: CVE-2013-1571
2803b4
2803b4
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-5
2803b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2803b4
2803b4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.1.1-4
2803b4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2803b4
- Replace maven BuildRequires with maven-local
2803b4
2803b4
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-3
2803b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2803b4
2803b4
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.1-2
2803b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2803b4
2803b4
* Sat Dec 24 2011 Orion Poplawski <orion@cora.nwra.com> - 2.1.1-1
2803b4
- Update to 2.1.1
2803b4
2803b4
* Mon Dec 12 2011 Orion Poplawski <orion@cora.nwra.com> - 2.1-1
2803b4
- Update to 2.1
2803b4
- Update bsf patch
2803b4
- Add needed BRs
2803b4
2803b4
* Tue Oct 11 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0.1-4
2803b4
- Packaging fixes
2803b4
- New maven macro for depmaps (include a compat depmap) #745118
2803b4
2803b4
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-4
2803b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2803b4
2803b4
* Mon Dec 6 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-3
2803b4
- Use BR apache-commons-parent
2803b4
2803b4
* Tue Jul 13 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-2
2803b4
- Add license to javadoc package
2803b4
2803b4
* Wed May 26 2010 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-1
2803b4
- Update to 2.0.1
2803b4
- Require Java 1.6 or greater
2803b4
- Drop language level patch
2803b4
- Add patch to remove bsf-api 3.0 dependency from pom.xml as this is provided
2803b4
  by Java 1.6
2803b4
- Fix depmap group id
2803b4
2803b4
* Sat Jan 9 2010 Orion Poplawski <orion@cora.nwra.com> - 1.1-3
2803b4
- Drop gcj support
2803b4
- Fix javadoc group
2803b4
- Bump java levels in pom.xml
2803b4
2803b4
* Thu Jan 7 2010 Orion Poplawski <orion@cora.nwra.com> - 1.1-2
2803b4
- Rename to apache-commons-jexl
2803b4
2803b4
* Tue Oct 27 2009 Orion Poplawski <orion@cora.nwra.com> - 1.1-1
2803b4
- Initial Fedora Package