%{?scl:%scl_package bean-validation-api} %{!?scl:%global pkg_name %{name}} %{?java_common_find_provides_and_requires} %global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: %{?scl_prefix}bean-validation-api Version: 1.1.0 Release: 4.2%{?dist} Summary: Bean Validation API (JSR 349) License: ASL 2.0 URL: http://beanvalidation.org/ Source0: https://github.com/beanvalidation/beanvalidation-api/archive/%{namedversion}.tar.gz # test deps BuildRequires: %{?scl_prefix_maven}mvn(org.testng:testng) BuildRequires: %{?scl_prefix_java_common}maven-local BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle BuildRequires: %{?scl_prefix_maven}maven-surefire-provider-testng BuildArch: noarch %description This package contains Bean Validation (JSR-349) API. %package javadoc Summary: Javadoc for %{pkg_name} %description javadoc This package contains the API documentation for %{pkg_name}. %prep %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} %setup -q -n beanvalidation-api-%{namedversion} # Disable javadoc jar %pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" # Disable source jar %pom_remove_plugin :maven-source-plugin %{?scl:EOF} %build %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} %mvn_file : %{pkg_name} # Ignore test failures, since "ValidationTest.testCachedProvidersCanBeGarbageCollected" fails intermittently %mvn_build -- -Dmaven.test.failure.ignore=true %{?scl:EOF} %install %{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} %mvn_install %{?scl:EOF} %files -f .mfiles %doc license.txt %files javadoc -f .mfiles-javadoc %doc license.txt %changelog * Thu Aug 27 2015 Mat Booth - 1.1.0-4.2 - Ignore intermittent test failures -- rhbz#1248101 * Mon Jun 29 2015 Mat Booth - 1.1.0-4.1 - Import latest from Fedora * Wed Jun 17 2015 Fedora Release Engineering - 1.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 1.1.0-2 - Use Requires: java-headless rebuild (#1067528) * Wed Jul 24 2013 gil cattaneo 1.1.0-1 - update to 1.1.0.Final - adapt to current guideline - resolve rpmlint warning * Thu Feb 14 2013 Marek Goldmann - 1.0.0-8 - Fixed build issue * Wed Feb 13 2013 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Feb 06 2013 Java SIG - 1.0.0-6 - Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild - Replace maven BuildRequires with maven-local * Wed Jul 18 2012 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Mar 09 2012 Marek Goldmann 1.0.0-4 - Relocated jars to _javadir * Thu Jan 12 2012 Fedora Release Engineering - 1.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Aug 29 2011 Marek Goldmann 1.0.0-2 - Added license file to distribution * Tue Aug 16 2011 Marek Goldmann 1.0.0-1 - Initial packaging