Пакет glassfish-jsp: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-java # END SourceDeps(oneline) AutoReq: yes,noosgi BuildRequires: rpm-build-java-osgi ecj %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat %global artifactId javax.servlet.jsp %global jspspec 2.3 %global reltag b02 Name: glassfish-jsp Version: 2.3.3 Release: alt1_0.3.b02jpp8 Summary: Glassfish J2EE JSP API implementation License: (CDDL or GPLv2 with exceptions) and ASL 2.0 URL: http://glassfish.org Source0: %{artifactId}-%{version}-%{reltag}.tar.xz # no source releases, but this will generate tarball for you from an # SVN tag Source1: generate_tarball.sh Source2: http://www.apache.org/licenses/LICENSE-2.0.txt Source3: https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt Patch0: %{name}-build-eclipse-compilers.patch Patch1: %{name}-port-to-servlet-3.1.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(javax.servlet.jsp:javax.servlet.jsp-api) BuildRequires: mvn(net.java:jvnet-parent:pom:) BuildRequires: mvn(org.eclipse.jdt:core) BuildRequires: mvn(org.glassfish:javax.el) Provides: jsp = %{jspspec} Provides: jsp%{jspspec} Provides: javax.servlet.jsp # make sure the symlinks will be correct Requires: glassfish-jsp-api Source44: import.info %description This project provides a container independent implementation of JSP 2.3. The main goals are: * Improves current implementation: bug fixes and performance improvements * Provides API for use by other tools, such as Netbeans * Provides a sandbox for new JSP features; provides a reference implementation of next JSP spec. %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc %{summary}. %prep %setup -q -n %{artifactId}-%{version}-%{reltag} %patch0 -p1 %patch1 -p1 %pom_add_dep org.eclipse.jdt:core::provided cp -p %{SOURCE2} LICENSE cp -p %{SOURCE3} cddllicense.txt %mvn_alias : "javax.servlet:jsp-api" "org.eclipse.jetty.orbit:org.apache.jasper.glassfish" # compat symlink %mvn_file : %{name}/javax.servlet.jsp %{name} # javadoc generation fails due to strict doclint in JDK 8 %pom_remove_plugin :maven-javadoc-plugin %build %mvn_build %install %mvn_install # install j2ee api symlinks install -d -m 755 %{buildroot}%{_javadir}/javax.servlet.jsp/ pushd %{buildroot}%{_javadir}/javax.servlet.jsp/ for jar in ../%{name}/*jar; do ln -sf $jar . done # copy jsp-api so that build-classpath will include dep as well if [ -f %{_javadir}/%{name}-api*.jar ];then cp %{_javadir}/glassfish-jsp-api*.jar . else cp %{_javadir}/glassfish-jsp-api/*.jar . fi xmvn-subst . popd %files -f .mfiles %dir %{_javadir}/%{name} %{_javadir}/javax.servlet.jsp %doc LICENSE cddllicense.txt %files javadoc -f .mfiles-javadoc %doc LICENSE cddllicense.txt %changelog * Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 2.3.3-alt1_0.3.b02jpp8 - java 8 mass update * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 2.2.6-alt2_11jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 2.2.6-alt2_7jpp7 - new release * Mon Jul 14 2014 Igor Vlasenko <viy@altlinux.ru> 2.2.6-alt2_2jpp7 - NMU rebuild to move poms and fragments * Wed Sep 05 2012 Igor Vlasenko <viy@altlinux.ru> 2.2.6-alt1_2jpp7 - new release * Mon Aug 13 2012 Igor Vlasenko <viy@altlinux.ru> 2.2.5-alt1_1jpp7 - full version |