2019-01-26 09:46:12 +01:00
|
|
|
#
|
|
|
|
# spec file for package glassfish-servlet-api
|
|
|
|
#
|
2023-09-21 07:43:50 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2019-01-26 09:46:12 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global artifactId javax.servlet-api
|
|
|
|
Name: glassfish-servlet-api
|
|
|
|
Version: 3.1.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Java Servlet API
|
2023-09-21 07:43:50 +02:00
|
|
|
License: Apache-2.0 AND (CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0)
|
2019-01-26 09:46:12 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: http://servlet-spec.java.net
|
2019-01-29 13:42:43 +01:00
|
|
|
Source0: https://github.com/javaee/servlet-spec/archive/%{version}.tar.gz
|
2019-01-26 09:46:12 +01:00
|
|
|
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
|
|
|
Source2: glassfish-servlet-api-build.xml
|
|
|
|
Source3: glassfish-servlet-api-build.properties
|
2019-01-29 13:42:43 +01:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: fdupes
|
2019-01-26 09:46:12 +01:00
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The javax.servlet package contains a number of classes
|
|
|
|
and interfaces that describe and define the contracts between
|
|
|
|
a servlet class and the runtime environment provided for
|
|
|
|
an instance of such a class by a conforming servlet container.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
2019-01-29 13:46:25 +01:00
|
|
|
Group: Documentation/HTML
|
2019-01-26 09:46:12 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2019-01-29 13:42:43 +01:00
|
|
|
%setup -q -n servlet-spec-%{version}
|
2019-01-26 09:46:12 +01:00
|
|
|
%pom_remove_plugin :maven-remote-resources-plugin
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
|
|
cp -p %{SOURCE1} src/main/resources/META-INF/
|
|
|
|
cp -p %{SOURCE2} build.xml
|
|
|
|
cp -p %{SOURCE3} build.properties
|
|
|
|
|
|
|
|
# README contains also part of javax.servlet-api license
|
|
|
|
cp -p src/main/resources/META-INF/README .
|
|
|
|
|
2019-04-08 13:08:50 +02:00
|
|
|
%pom_remove_parent .
|
|
|
|
|
2019-01-26 09:46:12 +01:00
|
|
|
%build
|
|
|
|
ant package javadoc
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
|
|
|
install -pm 0644 target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar -a javax.servlet:servlet-api,org.apache.geronimo.specs:geronimo-servlet_3.0_spec,org.eclipse.jetty.orbit:javax.servlet
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%doc README
|
|
|
|
%license src/main/resources/META-INF/LICENSE-2.0.txt
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%doc README
|
|
|
|
%license src/main/resources/META-INF/LICENSE-2.0.txt
|
|
|
|
|
|
|
|
%changelog
|