Blame SPECS/glassfish-servlet-api.spec

9ddf7d
%{?scl:%scl_package glassfish-servlet-api}
9ddf7d
%{!?scl:%global pkg_name %{name}}
9ddf7d
9ddf7d
%global artifactId javax.servlet-api
9ddf7d
9ddf7d
Name:           %{?scl_prefix}glassfish-servlet-api
9ddf7d
Version:        3.1.0
9ddf7d
Release:        12.2%{?dist}
9ddf7d
Summary:        Java Servlet API
9ddf7d
License:        (CDDL or GPLv2 with exceptions) and ASL 2.0
9ddf7d
URL:            http://servlet-spec.java.net
9ddf7d
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.servlet-api-3.1.0 javax.servlet-api-3.1.0
9ddf7d
# tar cvJf javax.servlet-api-3.1.0.tar.xz javax.servlet-api-3.1.0/
9ddf7d
Source0:        %{artifactId}-%{version}.tar.xz
9ddf7d
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
9ddf7d
9ddf7d
BuildArch:      noarch
9ddf7d
9ddf7d
BuildRequires:  java-devel >= 1:1.6.0
9ddf7d
BuildRequires:  %{?scl_prefix}jvnet-parent
9ddf7d
BuildRequires:  %{?scl_prefix}maven-local
9ddf7d
BuildRequires:  %{?scl_prefix}maven-plugin-bundle
9ddf7d
BuildRequires:  %{?scl_prefix}maven-source-plugin
9ddf7d
9ddf7d
%description
9ddf7d
The javax.servlet package contains a number of classes 
9ddf7d
and interfaces that describe and define the contracts between 
9ddf7d
a servlet class and the runtime environment provided for 
9ddf7d
an instance of such a class by a conforming servlet container.
9ddf7d
9ddf7d
%package javadoc
9ddf7d
Summary:        Javadoc for %{pkg_name}
9ddf7d
9ddf7d
%description javadoc
9ddf7d
API documentation for %{pkg_name}.
9ddf7d
9ddf7d
%prep
9ddf7d
%setup -q -n %{artifactId}-%{version}
9ddf7d
%pom_remove_plugin :maven-remote-resources-plugin
9ddf7d
%pom_remove_plugin :maven-javadoc-plugin
9ddf7d
cp -p %{SOURCE1} .
9ddf7d
# README contains also part of javax.servlet-api license
9ddf7d
cp -p src/main/resources/META-INF/README .
9ddf7d
%mvn_file :%{artifactId} %{pkg_name}
9ddf7d
9ddf7d
%build
9ddf7d
%mvn_alias : javax.servlet:servlet-api
9ddf7d
%mvn_alias : org.apache.geronimo.specs:geronimo-servlet_3.0_spec
9ddf7d
%mvn_alias : org.eclipse.jetty.orbit:javax.servlet
9ddf7d
%mvn_build
9ddf7d
9ddf7d
%install
9ddf7d
%mvn_install
9ddf7d
9ddf7d
%files -f .mfiles
9ddf7d
%doc README
9ddf7d
%license LICENSE-2.0.txt
9ddf7d
9ddf7d
%files javadoc -f .mfiles-javadoc
9ddf7d
%doc README
9ddf7d
%license LICENSE-2.0.txt
9ddf7d
9ddf7d
%changelog
9ddf7d
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 3.1.0-12.2
9ddf7d
- Mass rebuild 2017-06-22
9ddf7d
9ddf7d
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 3.1.0-12.1
9ddf7d
- Automated package import and SCL-ization
9ddf7d
9ddf7d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-12
9ddf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9ddf7d
9ddf7d
* Tue Jun 21 2016 gil cattaneo <puntogil@libero.it> 3.1.0-11
9ddf7d
- add missing build requires
9ddf7d
9ddf7d
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.0-10
9ddf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9ddf7d
9ddf7d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-9
9ddf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
9ddf7d
9ddf7d
* Wed Jun 3 2015 Alexander Kurtakov <akurtako@redhat.com> 3.1.0-8
9ddf7d
- Add alias for org.eclipse.jetty.orbit:javax.servlet.
9ddf7d
- Fix javadoc compilation.
9ddf7d
9ddf7d
* Fri Feb 13 2015 gil cattaneo <puntogil@libero.it> 3.1.0-7
9ddf7d
- introduce license macro
9ddf7d
9ddf7d
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.0-6
9ddf7d
- Add alias for Geronimo servlet API
9ddf7d
9ddf7d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-5
9ddf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9ddf7d
9ddf7d
* Thu Jun 5 2014 Alexander Kurtakov <akurtako@redhat.com> 3.1.0-4
9ddf7d
- Add javax.servlet:servlet-api alias.
9ddf7d
9ddf7d
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 3.1.0-3
9ddf7d
- Use Requires: java-headless rebuild (#1067528)
9ddf7d
9ddf7d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-2
9ddf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9ddf7d
9ddf7d
* Thu Jul 04 2013 gil cattaneo <puntogil@libero.it> - 3.1.0-1
9ddf7d
- Update to 3.1.0
9ddf7d
9ddf7d
* Sat Mar 09 2013 David Xie <david.scriptfan@gmail.com> - 3.1-0.1.b07
9ddf7d
- Initial version of package