%global artifactId javax.el-api %global full_version 3.0-b06 Name: glassfish-el-api Version: 3.0 Release: 0.1.b06 Summary: Expression Language API Provides: javax.el Group: Development/Libraries # Part of implementation files contain ASL 2.0 copyright License: CDDL and ASL 2.0 URL: http://uel.java.net Source0: %{artifactId}-%{full_version}.tar.xz Source1: http://www.apache.org/licenses/LICENSE-2.0.txt Source2: generate_tarball.sh Patch0: remove-glassfish-legal.patch BuildArch: noarch BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: jvnet-parent BuildRequires: maven-local BuildRequires: maven BuildRequires: maven-source-plugin Requires: java %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 Group: Documentation Summary: Javadoc for %{name} %description javadoc API documentation for %{name}. %prep %setup -q -n %{artifactId}-%{full_version} %patch0 cp -p %{SOURCE1} . %build mvn-rpmbuild install javadoc:javadoc %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{artifactId}-%{full_version}.jar \ %{buildroot}%{_javadir}/%{name}.jar # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml \ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar # javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ rm -rf target/site/api* %files -f .mfiles %doc LICENSE-2.0.txt %files javadoc %doc LICENSE-2.0.txt %{_javadocdir}/%{name} %changelog * Thu Jan 31 2013 David Xie - 2.2.4-1 - Initial version of package