Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3
servletapi4
servletapi4.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File servletapi4.spec of Package servletapi4
# # spec file for package servletapi4 # # Copyright (c) 2014 SUSE LINUX Products 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/ # Name: servletapi4 BuildRequires: ant BuildRequires: java2-devel-packages BuildRequires: xml-commons-apis %define base_name servletapi %define major_version 4 %define name %{base_name}%{major_version} %define full_name jakarta-%{base_name} %define version 4.0.4 %define release 3jpp %define section free Version: 4.0.4 Release: 0 Summary: Java servlet and JSP implementation classes License: Apache-1.1 Group: Development/Libraries/Java Source: %{full_name}-4-src.tar.gz Patch150: java150_build.patch Url: http://jakarta.apache.org/tomcat/ Provides: servlet PreReq: /usr/sbin/update-alternatives BuildRequires: ant >= 1.2 BuildRequires: javapackages-tools BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build Obsoletes: servlet23 Obsoletes: servlet4 Provides: servlet23 Provides: servlet4 %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 servletapi4 Group: Development/Libraries/Java PreReq: coreutils %description javadoc This subproject contains the source code for the implementation classes of the Java Servlet and JSP APIs (packages javax.servlet). This package contains the javadoc documentation for the Java Servlet and JSP APIs. %prep rm -rf $RPM_BUILD_ROOT %setup -n %{full_name}-4-src %patch150 -p1 %build ant dist -Dservletapi.build=build -Dservletapi.dist=dist %install # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir} install -m 644 dist/lib/servlet.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar (cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %post update-alternatives --install %{_javadir}/servlet.jar servlet %{_javadir}/%{name}-%{version}.jar 40 %postun if [ "$1" = "0" ]; then update-alternatives --remove servlet %{_javadir}/%{name}-%{version}.jar fi %files %defattr(-,root,root) %doc LICENSE README.txt %{_javadir}/* %files javadoc %defattr(-,root,root) %{_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