cdi-api/cdi-api.spec

157 lines
5.4 KiB
RPMSpec
Raw Normal View History

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