diff --git a/.devtoolset-3-glassfish-el.metadata b/.devtoolset-3-glassfish-el.metadata new file mode 100644 index 0000000..78f22a3 --- /dev/null +++ b/.devtoolset-3-glassfish-el.metadata @@ -0,0 +1 @@ +a8b5e5f2bb8c492aae8d82257ff7ba599e86e524 SOURCES/glassfish-el-3.0.0.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..95320ae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glassfish-el-3.0.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/generate_tarball.sh b/SOURCES/generate_tarball.sh new file mode 100755 index 0000000..ea057d0 --- /dev/null +++ b/SOURCES/generate_tarball.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +aid="javax.el" +version=`grep Version: *spec | sed -e 's/Version:\s*\(.*\)/\1/'` +filename="${aid}-${version}-sources.jar" +tempdir="glassfish-el-${version}" +url="http://central.maven.org/maven2/org/glassfish/${aid}/${version}/${aid}-${version}-sources.jar" + +echo $version + +rm -Rf ${tempdir} +mkdir ${tempdir} + +pushd ${tempdir} + wget ${url} + unzip ${filename} + mv META-INF/LICENSE.txt . + rm -Rf ${filename} META-INF/ + mkdir -p src/main/java + # upstream bundles el-api in javax/ dir, exclude it + mv com/ src/main/java +popd + +tar czvf glassfish-el-${version}.tar.gz ${tempdir} + +rm -Rf ${tempdir} + diff --git a/SPECS/glassfish-el.spec b/SPECS/glassfish-el.spec new file mode 100644 index 0000000..4d435d3 --- /dev/null +++ b/SPECS/glassfish-el.spec @@ -0,0 +1,107 @@ +%{?scl:%scl_package glassfish-el} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +%global artifactId javax.el + +Name: %{?scl_prefix}glassfish-el +Version: 3.0.0 +Release: 6%{?dist} +Summary: J2EE Expression Language Implementation +License: CDDL or GPLv2 with exceptions +URL: http://uel.java.net +# ./generate_tarball.sh +Source0: %{pkg_name}-%{version}.tar.gz +Source1: generate_tarball.sh +BuildArch: noarch + +BuildRequires: %{?scl_prefix_java_common}maven-local +BuildRequires: %{?scl_prefix_java_common}mvn(junit:junit) +BuildRequires: %{?scl_prefix_java_common}mvn(javax.el:javax.el-api) +BuildRequires: %{?scl_prefix_maven}mvn(net.java:jvnet-parent:pom:) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-release-plugin) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: %{?scl_prefix_maven}mvn(org.apache.maven.surefire:surefire-junit47) +BuildRequires: %{?scl_prefix_maven}mvn(org.codehaus.mojo:build-helper-maven-plugin) + +%{?scl:Requires: %scl_runtime} + +%description +This project provides an implementation of the Expression Language (EL). +The main goals are: + * Improves current implementation: bug fixes and performance improvements + * Provides API for use by other tools, such as Netbeans + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{pkg_name}-%{version} + +scl enable %{scl_maven} %{scl} - <<"EOF" +%mvn_compat_version *:* %{version} +%mvn_file :%{artifactId} %{pkg_name} +%mvn_alias :%{artifactId} "org.eclipse.jetty.orbit:com.sun.el" "org.glassfish.web:javax.el" + +# missing (unneeded) dep org.glassfish:legal +%pom_remove_plugin :maven-remote-resources-plugin +EOF + +%build +scl enable %{scl_maven} %{scl} - <<"EOF" +%mvn_build +EOF + +%install +scl enable %{scl_maven} %{scl} - <<"EOF" +%mvn_install +EOF + +%files -f .mfiles +%doc LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt + +%changelog +* Wed Apr 01 2015 Mat Booth - 3.0.0-6 +- Resolves: rhbz#1208232 - rebuild to fix erroneous dep on maven30 collection + +* Mon Jan 12 2015 Mat Booth - 3.0.0-5 +- Related: rhbz#1175105 - rebuilt + +* Fri Jan 09 2015 Mat Booth - 3.0.0-4.1 +- Related: rhbz#1175105 - Import into DTS 3.1 + +* Mon Aug 4 2014 Mikolaj Izdebski - 3.0.0-4 +- Fix build-requires on jvnet-parent + +* Sat Jun 07 2014 Fedora Release Engineering - 3.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 04 2014 Stanislav Ochotnicky - 3.0.0-2 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Dec 09 2013 Michal Srb - 3.0.0-1 +- Update to upstream version 3.0.0 + +* Mon Aug 12 2013 Alexander Kurtakov 2.2.5-5 +- Move xmvn customizations to prep. + +* Wed Aug 07 2013 gil cattaneo 2.2.5-4 +- switch to XMvn, fix for rhbz#992384 +- install license file + +* Sat Aug 03 2013 Fedora Release Engineering - 2.2.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Mar 6 2013 Mikolaj Izdebski - 2.2.5-2 +- Add depmap for org.eclipse.jetty.orbit +- Resolves: rhbz#918514 + +* Fri Feb 1 2013 David Xie - 2.2.5-1 +- Initial version of package