%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 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