%{?scl:%scl_package glassfish-jax-rs-api} %{!?scl:%global pkg_name %{name}} %{?java_common_find_provides_and_requires} %global namedreltag %{nil} %global namedversion %{version}%{?namedreltag} %global oname javax.ws.rs-api Name: %{?scl_prefix}glassfish-jax-rs-api Version: 2.0.1 Release: 2.1%{?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: %{pkg_name}-%{namedversion}.tar.xz BuildRequires: %{?scl_prefix_java_common}junit BuildRequires: %{?scl_prefix_maven}jvnet-parent BuildRequires: %{?scl_prefix_java_common}maven-local BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle BuildRequires: %{?scl_prefix_maven}maven-resources-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 %{pkg_name} %description javadoc This package contains javadoc for %{pkg_name}. %if 0 %package manual Summary: Manual for %{pkg_name} %description manual This package contains documentation for %{pkg_name}. %endif %prep %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} %setup -q -n %{pkg_name}-%{namedversion} find . -name '*.jar' -delete find . -name '*.class' -delete %pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin src/jax-rs-api %pom_remove_plugin org.glassfish.build:spec-version-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 %{?scl:EOF} %build %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} ( cd src/jax-rs-api %mvn_file :%{oname} %{pkg_name} %mvn_build -- \ -Dspec.implementation.version=2.0.1 \ -Dspec.specification.version=2.0.99.01 \ -Dspec.bundle.symbolic-name=javax.ws.rs-api \ -Dspec.bundle.spec.version=2.0.99.b01 \ -Dspec.extension.name=javax.ws.rs \ -Dspec.bundle.version=2.0.99.b01 ) %if 0 cd spec make clean all %endif %{?scl:EOF} %install %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} ( cd src/jax-rs-api %mvn_install ) %{?scl:EOF} %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 * Mon Jun 29 2015 Mat Booth - 2.0.1-2.1 - Import latest from Fedora * 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