From 7c11a4c64854268b2eca43ad2d67ffd75e6baa3e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 31 Mar 2021 08:21:47 -0400 Subject: [PATCH] import glassfish-jax-rs-api-2.0.1-6.module+el8.2.0+5723+4574fbff --- .gitignore | 1 + .glassfish-jax-rs-api.metadata | 1 + SPECS/glassfish-jax-rs-api.spec | 172 ++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+) create mode 100644 .gitignore create mode 100644 .glassfish-jax-rs-api.metadata create mode 100644 SPECS/glassfish-jax-rs-api.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d3f32a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glassfish-jax-rs-api-2.0.1.tar.xz diff --git a/.glassfish-jax-rs-api.metadata b/.glassfish-jax-rs-api.metadata new file mode 100644 index 0000000..bf401b2 --- /dev/null +++ b/.glassfish-jax-rs-api.metadata @@ -0,0 +1 @@ +79facbaaa1ea89a1d678b4e150d8ca597e3b9c66 SOURCES/glassfish-jax-rs-api-2.0.1.tar.xz diff --git a/SPECS/glassfish-jax-rs-api.spec b/SPECS/glassfish-jax-rs-api.spec new file mode 100644 index 0000000..95d36fe --- /dev/null +++ b/SPECS/glassfish-jax-rs-api.spec @@ -0,0 +1,172 @@ +%global namedreltag %{nil} +%global namedversion %{version}%{?namedreltag} +%global oname javax.ws.rs-api +Name: glassfish-jax-rs-api +Version: 2.0.1 +Release: 6%{?dist} +Summary: JAX-RS API Specification (JSR 339) +License: CDDL-1.1 or GPLv2 with exceptions +URL: http://jax-rs-spec.java.net/ +# git clone git://java.net/jax-rs-spec~api glassfish-jax-rs-api +# (cd glassfish-jax-rs-api/ && git archive --format=tar --prefix=glassfish-jax-rs-api-2.0.1/ 2.0.1 | xz > ../glassfish-jax-rs-api-2.0.1.tar.xz) +Source0: %{name}-%{namedversion}.tar.xz + +BuildRequires: junit +BuildRequires: jvnet-parent + +BuildRequires: maven-local +BuildRequires: maven-plugin-bundle +BuildRequires: maven-resources-plugin +BuildRequires: spec-version-maven-plugin + +# Disabled on rawhide: texlive is broken +%if 0 +# This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) +# restricted \write18 enabled. +# kpathsea: Running mktexfmt pdflatex.fmt +# I can't find the format file `pdflatex.fmt'! +# make: *** [spec.pdf] Error 1 +BuildRequires: make +BuildRequires: texlive-amsfonts +BuildRequires: texlive-base +BuildRequires: texlive-bibtex-bin +BuildRequires: texlive-cm +BuildRequires: texlive-courier +BuildRequires: texlive-dvips +BuildRequires: texlive-fancyhdr +BuildRequires: texlive-float +BuildRequires: texlive-framed +BuildRequires: texlive-graphics +BuildRequires: texlive-helvetic +BuildRequires: texlive-hyperref +BuildRequires: texlive-ifxetex +BuildRequires: texlive-latex-bin-bin +BuildRequires: texlive-latexconfig +BuildRequires: texlive-moreverb +BuildRequires: texlive-oberdiek +BuildRequires: texlive-pdftex-def +BuildRequires: texlive-psnfss +BuildRequires: texlive-texconfig +BuildRequires: texlive-times +BuildRequires: texlive-tools +%endif + +BuildArch: noarch + +%description +JAX-RS Java API for RESTful Web Services (JSR 339). + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains javadoc for %{name}. + +%if 0 +%package manual +Summary: Manual for %{name} + +%description manual +This package contains documentation for %{name}. +%endif + +%prep +%setup -q -n %{name}-%{namedversion} +find . -name '*.jar' -delete +find . -name '*.class' -delete + +%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin src/jax-rs-api + +# Reporting mojo's can only be called from ReportDocumentRender +%pom_remove_plugin org.apache.maven.plugins:maven-jxr-plugin src/jax-rs-api +%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin src/jax-rs-api +%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin src/jax-rs-api +%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin src/jax-rs-api +%pom_remove_plugin org.apache.maven.plugins:maven-deploy-plugin src/jax-rs-api + +%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions" src/jax-rs-api + +%pom_xpath_remove "pom:build/pom:finalName" src/jax-rs-api + +sed -i "s|dvips|pdftex|" spec/spec.tex + +sed -i '/check-module/d' src/jax-rs-api/pom.xml + +cp -p src/etc/config/copyright.txt . +sed -i 's/\r//' copyright.txt src/examples/pom.xml + +%build + +( +cd src/jax-rs-api +%mvn_file :%{oname} %{name} +%mvn_build +) + +%if 0 +cd spec +make clean all +%endif + +%install + +( +cd src/jax-rs-api +%mvn_install +) + +%files -f src/jax-rs-api/.mfiles +%license copyright.txt + +%files javadoc -f src/jax-rs-api/.mfiles-javadoc +%license copyright.txt + +%if 0 +%files manual +%doc spec/spec.pdf src/examples +%license copyright.txt +%endif + +%changelog +* Wed Feb 07 2018 Fedora Release Engineering - 2.0.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.0.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 2.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 2.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri May 08 2015 gil cattaneo 2.0.1-1 +- update to 2.0.1 + +* Tue Feb 03 2015 gil cattaneo 2.0-7 +- introduce license macro + +* Sat Jun 07 2014 Fedora Release Engineering - 2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Mar 28 2014 Michael Simacek - 2.0-5 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Mon Jul 08 2013 gil cattaneo 2.0-3 +- switch to XMvn +- minor changes to adapt to current guideline + +* Sun May 26 2013 gil cattaneo 2.0-2 +- rebuilt with spec-version-maven-plugin support + +* Tue May 07 2013 gil cattaneo 2.0-1 +- update to 2.0 + +* Tue Mar 26 2013 gil cattaneo 2.0-0.1.m16 +- initial rpm