Skip to content

Instantly share code, notes, and snippets.

@lasombra
Created September 27, 2019 11:58
Show Gist options
  • Save lasombra/4e2cc3ed358947bff4d76ccc06703a8d to your computer and use it in GitHub Desktop.
Save lasombra/4e2cc3ed358947bff4d76ccc06703a8d to your computer and use it in GitHub Desktop.
asdasd
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global majorversion 6
Name: hibernate-validator
Version: 6.0.17
Release: 1%{?dist}
Summary: Bean Validation 2.0 (JSR 380) Reference Implementation
License: ASL 2.0
URL: https://hibernate.org/validator/
Source0: https://github.com/hibernate/hibernate-validator/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:classmate)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.thoughtworks.paranamer:paranamer)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api) >= 2.0.1
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:jaxb2-maven-plugin)
BuildRequires: mvn(org.glassfish.web:javax.el)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.logging:jboss-logging) >= 3.1.1
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
BuildRequires: mvn(org.jsoup:jsoup)
BuildRequires: mvn(org.testng:testng)
BuildRequires: openjfx
BuildRequires: openjfx-devel
BuildArch: noarch
%description
This is the reference implementation of JSR-380 - Bean Validation 2.0.
Bean Validation defines a meta-data model and API for JavaBean as well
as method validation. The default meta-data source are annotations,
with the ability to override and extend the meta-data through the
use of XML validation descriptors.
%package annotation-processor
Summary: Hibernate Validator Annotation Processor
%description annotation-processor
Hibernate Validator Annotation Processor.
%package cdi
Summary: Hibernate Validator Portable Extension
%description cdi
Hibernate Validator CDI Portable Extension.
%package parent
Summary: Hibernate Validator Parent POM
%description parent
Aggregator of the Hibernate Validator modules.
%package performance
Summary: Hibernate Validator Performance Tests
%description performance
Hibernate Validator performance tests.
%package test-utils
Summary: Hibernate Validator Test Utils
%description test-utils
Hibernate Validator Test Utils.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%package javafx
Summary: Hibernate Validator JavaFX unwrapper
%description javafx
Hibernate Validator JavaFX unwrapper
%prep
%setup -q -n %{name}-%{namedversion}
find . -name "*.jar" -delete
# tck-runner/src/as7config/modules/org/jboss/as/ee/main/jboss-as-ee-7.1.1.Final.jar
%pom_disable_module distribution
%pom_disable_module documentation
%pom_disable_module integration
%pom_disable_module osgi
%pom_disable_module tck-runner
# tck-runner and documentation plugins
#%pom_remove_plugin -r org.codehaus.gmavenplus:gmavenplus-plugin
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-surefire-report-plugin
%pom_xpath_inject "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" " <excludePackageNames>*.internal.*</excludePackageNames>"
%pom_xpath_set "pom:maven.javadoc.skip" false
# https://bugs.openjdk.java.net/browse/JDK-8067747
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" \
"<useIncrementalCompilation>false</useIncrementalCompilation>"
%pom_xpath_set "pom:properties/pom:jboss.logging.processor.version" 1
%pom_change_dep :jboss-logging-processor ::'${jboss.logging.processor.version}' engine
# Unavailable deps JavaFX
# rm engine/src/main/java/org/hibernate/validator/internal/engine/valuehandling/JavaFXPropertyValueUnwrapper.java
%build
# Running tests requires hibernate proper (and require weld-core >= 2.0.0 groovy >= 2.1.0), so skip for now:
%mvn_build -f -s -- -Pdist
%install
%mvn_install
%files -f .mfiles-%{name}
%doc CONTRIBUTING.md README.md changelog.txt
%license copyright.txt license.txt
%files annotation-processor -f .mfiles-%{name}-annotation-processor
%license copyright.txt license.txt
%files cdi -f .mfiles-%{name}-cdi
%files parent -f .mfiles-%{name}-parent
%license copyright.txt license.txt
%files performance -f .mfiles-%{name}-performance
%license copyright.txt license.txt
%files test-utils -f .mfiles-%{name}-test-utils
%license copyright.txt license.txt
%files javadoc -f .mfiles-javadoc
%license copyright.txt license.txt
%changelog
* Fri Sep 27 2019 Fedora Release Engineering <[email protected]> - 6.0.17-1
- update to 6.0.17.Final
* Fri Feb 01 2019 Fedora Release Engineering <[email protected]> - 5.2.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <[email protected]> - 5.2.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <[email protected]> - 5.2.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <[email protected]> - 5.2.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <[email protected]> - 5.2.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Tue Jun 07 2016 gil cattaneo <[email protected]> 5.2.4-1
- update to 5.2.4.Final
* Wed Feb 03 2016 Fedora Release Engineering <[email protected]> - 5.0.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <[email protected]> - 5.0.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Feb 15 2015 gil cattaneo <[email protected]> 5.0.1-4
- fix for RHBZ#1106763 (F21FTBFS)
- introduce license macro
* Sat Jun 07 2014 Fedora Release Engineering <[email protected]> - 5.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Fri Mar 28 2014 Michael Simacek <[email protected]> - 5.0.1-2
- Use Requires: java-headless rebuild (#1067528)
* Thu May 09 2013 gil cattaneo <[email protected]> 5.0.1-1
- update to 5.0.1.Final
- adapted to current guideline
- switch to XMvn
* Fri Feb 22 2013 Juan Hernandez <[email protected]> - 4.2.0-8
- Remove the wagon-webdav build extension (rhbz 914076)
* Thu Feb 14 2013 Fedora Release Engineering <[email protected]> - 4.2.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG <[email protected]> - 4.2.0-6
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
* Thu Jul 19 2012 Fedora Release Engineering <[email protected]> - 4.2.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Mar 5 2012 Juan Hernandez <[email protected]> - 4.2.0-4
- Cleanup of the spec file
- Replace jaxb2-maven-plugin with maven-jaxb2-plugin
* Sat Jan 21 2012 Marek Goldmann <[email protected]> - 4.2.0-3
- Building all classes with jaxb2 xjc target
* Wed Dec 14 2011 Andy Grimm <[email protected]> - 4.2.0-2
- include both pom files, with correct names
* Tue Oct 18 2011 Andy Grimm <[email protected]> - 4.2.0-1
- Initial package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment