Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
servletapi3
servletapi3.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File servletapi3.spec of Package servletapi3
# # spec file for package servletapi3 # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define base_name servletapi %define full_name jakarta-%{base_name} Name: servletapi3 Version: 3.3.1 Release: 0 Summary: Java servlet and JSP implementation classes License: Apache-2.0 Group: Development/Libraries/Java Url: http://jakarta.apache.org/tomcat/ Source0: http://jakarta.apache.org/builds/jakarta-tomcat/release/v%{version}a/src/%{full_name}-src.tar.gz BuildRequires: ant >= 1.6.2 BuildRequires: fdupes BuildRequires: java-devel BuildRequires: javapackages-tools BuildRequires: xml-commons-apis Requires(post): %{_sbindir}/update-alternatives Provides: servlet = %{version} Obsoletes: servlet22 < %{version} Obsoletes: servlet3 < %{version} Provides: servlet22 = %{version} Provides: servlet3 = %{version} BuildArch: noarch %description This subproject contains the source code for the implementation classes of the Java Servlet and JSP APIs (packages javax.servlet). %package javadoc Summary: Javadoc for servletapi3 Group: Development/Libraries/Java %description javadoc This package contains the javadoc documentation for the implementation classes of the Java Servlet and JSP APIs (packages javax.servlet). %prep %setup -q -n %{full_name}-src %build ant \ -Dant.build.javac.target=1.6 -Dant.build.javac.source=1.6 \ -Dservletapi.build=build -Dservletapi.dist=dist \ dist %install # jar install -d -m 755 %{buildroot}%{_javadir} install -m 644 dist/lib/servlet.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar (cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done) #javadoc install -d -m 755 %{buildroot}%{_javadocdir}/%{name} cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name} %fdupes -s %{buildroot}%{_javadocdir}/%{name} # alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ ln -sf %{_sysconfdir}/alternatives/servlet.jar %{buildroot}%{_javadir}/servlet.jar %post update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 30 %postun if [ "$1" = "0" ]; then update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar fi %files %doc LICENSE README %{_javadir}/* %{_javadir}/servlet.jar %ghost %{_sysconfdir}/alternatives/servlet.jar %files javadoc %{_javadocdir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor