Blame SPECS/cdi-api.spec

64ca69
%{?scl:%scl_package cdi-api}
64ca69
%{!?scl:%global pkg_name %{name}}
64ca69
64ca69
%global namedreltag .NOTHING
64ca69
%global namedversion %{version}%{?namedreltag}
64ca69
64ca69
Name:             %{?scl_prefix}cdi-api
64ca69
Version:          1.2
64ca69
Release:          4.2%{?dist}
64ca69
Summary:          CDI API
64ca69
License:          ASL 2.0
64ca69
URL:              http://seamframework.org/Weld
64ca69
Source0:          https://github.com/cdi-spec/cdi/archive/%{version}.tar.gz
64ca69
64ca69
BuildArch:        noarch
64ca69
BuildRequires:    asciidoc
64ca69
BuildRequires:    %{?scl_prefix}maven-local
64ca69
BuildRequires:    %{?scl_prefix}mvn(javax.el:javax.el-api)
64ca69
BuildRequires:    %{?scl_prefix}mvn(javax.inject:javax.inject)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.apache.maven.plugins:maven-enforcer-plugin)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.apache.maven.surefire:surefire-testng)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.codehaus.mojo:build-helper-maven-plugin)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.jboss.weld:weld-parent:pom:)
64ca69
BuildRequires:    %{?scl_prefix}mvn(org.testng:testng::jdk15:)
64ca69
BuildRequires:    /usr/bin/pygmentize
64ca69
64ca69
Provides:         %{?scl_prefix}javax.enterprise.inject
64ca69
64ca69
%description
64ca69
APIs for JSR-299: Contexts and Dependency Injection for Java EE
64ca69
64ca69
%package javadoc
64ca69
Summary:          Javadoc for %{pkg_name}
64ca69
64ca69
%description javadoc
64ca69
This package contains the API documentation for %{pkg_name}.
64ca69
64ca69
%prep
64ca69
%setup -q -n cdi-%{version}
64ca69
64ca69
cd api
64ca69
# J2EE API directory
64ca69
%mvn_file :{cdi-api} %{pkg_name}/@1 javax.enterprise.inject/@1
64ca69
64ca69
# Use newer version of interceptors API
64ca69
%pom_change_dep "javax.interceptor:javax.interceptor-api" "org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec"
64ca69
64ca69
%build
64ca69
64ca69
(
64ca69
 cd api
64ca69
 %mvn_build -- -Denforcer.skip
64ca69
)
64ca69
64ca69
cd spec/src/main/doc
64ca69
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o ../../../../cdi-spec.html cdi-spec.asciidoc
64ca69
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o ../../../../license-asl2.html license-asl2.asciidoc
64ca69
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o ../../../../license-jcp.html license-jcp.asciidoc
64ca69
64ca69
%install
64ca69
cd api
64ca69
%mvn_install
64ca69
64ca69
build-jar-repository %{buildroot}%{_javadir}/javax.enterprise.inject/ \
64ca69
                     jboss-interceptors-1.2-api glassfish-el-api javax.inject
64ca69
64ca69
%files -f api/.mfiles
64ca69
%{_javadir}/javax.enterprise.inject/
64ca69
%doc cdi-spec.html
64ca69
%license license-asl2.html license-jcp.html
64ca69
64ca69
%files javadoc -f api/.mfiles-javadoc
64ca69
%license license-asl2.html license-jcp.html
64ca69
64ca69
%changelog
64ca69
* Thu Jun 22 2017 Michael Simacek <msimacek@redhat.com> - 1.2-4.2
64ca69
- Mass rebuild 2017-06-22
64ca69
64ca69
* Wed Jun 21 2017 Java Maintainers <java-maint@redhat.com> - 1.2-4.1
64ca69
- Automated package import and SCL-ization
64ca69
64ca69
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
64ca69
64ca69
* Thu Jun 16 2016 gil cattaneo <puntogil@libero.it> 1.2-3
64ca69
- add missing build requires: pygmentize
64ca69
64ca69
* Thu Jun 16 2016 gil cattaneo <puntogil@libero.it> 1.2-2
64ca69
- add missing build requires
64ca69
64ca69
* Mon Jun 06 2016 gil cattaneo <puntogil@libero.it> 1.2-1
64ca69
- Upstream release 1.2
64ca69
64ca69
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
64ca69
64ca69
* Wed Oct 28 2015 Mat Booth <mat.booth@redhat.com> - 1.1-12
64ca69
- Fix FTBFS due to enforcer plugin failure
64ca69
64ca69
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-11
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
64ca69
64ca69
* Wed May 20 2015 gil cattaneo <puntogil@libero.it> 1.1-10
64ca69
- rebuilt for upgrade el apis gid:aid (rhbz#1223468)
64ca69
- adapt to current guideline
64ca69
- use mvn()-like BRs
64ca69
- fix rpmlint problem in changelog entries
64ca69
64ca69
* Tue Mar 24 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-9
64ca69
- Fix interceptors symlink
64ca69
64ca69
* Mon Mar 23 2015 Marek Goldmann <mgoldman@redhat.com> - 1.1-8
64ca69
- Switch to interceptors 1.2
64ca69
64ca69
* Mon Nov 17 2014 Alexander Kurtakov <akurtako@redhat.com> 1.1-7
64ca69
- Rebuild to fix broken symlink to jboss-interceptors.
64ca69
64ca69
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-6
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
64ca69
64ca69
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.1-5
64ca69
- Use Requires: java-headless rebuild (#1067528)
64ca69
64ca69
* Tue Aug 13 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1-4
64ca69
- Add javax.enterprise.inject provides and directory
64ca69
64ca69
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-3
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
64ca69
64ca69
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-2
64ca69
- Generate OSGi metadata
64ca69
- Resolves: rhbz#987111
64ca69
64ca69
* Thu Jul 04 2013 Marek Goldmann <mgoldman@redhat.com> - 1.1-1
64ca69
- Upstream release 1.1
64ca69
- New guidelines
64ca69
64ca69
* Sat Mar 02 2013 Mat Booth <fedora@matbooth.co.uk> - 1.0-9.SP4
64ca69
- Add missing BR, fixes FTBFS rhbz #913916
64ca69
64ca69
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-8.SP4
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
64ca69
64ca69
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0-7.SP4
64ca69
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
64ca69
- Replace maven BuildRequires with maven-local
64ca69
64ca69
* Tue Dec 04 2012 Marek Goldmann <mgoldman@redhat.com> - 1.0-6.SP4
64ca69
- Added missing BR
64ca69
64ca69
* Tue Dec 04 2012 Marek Goldmann <mgoldman@redhat.com> - 1.0-5.SP4
64ca69
- Added missing BR/R
64ca69
- Simplified the spec file
64ca69
- Removed unnecessary patch
64ca69
64ca69
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4.SP4
64ca69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
64ca69
64ca69
* Sun Mar 25 2012 Asaf Shakarchi <asaf@redhat.com> 1.0-3.SP4
64ca69
- Fixed changelog versions.
64ca69
64ca69
* Fri Mar 16 2012 Asaf Shakarchi <asaf@redhat.com> 1.0-2.SP4
64ca69
- Added required dependencies, modified patches and cleaned spec.
64ca69
64ca69
* Mon Feb 20 2012 Marek Goldmann <mgoldman@redhat.com> 1.0-1.SP4
64ca69
- Initial packaging