From bc262bed25410b8f5e7048e135d6ecfb66f21897 Mon Sep 17 00:00:00 2001 From: Marek Goldmann Date: Tue, 4 Dec 2012 11:50:23 +0100 Subject: [PATCH] - Added missing BR/R - Simplified the spec file - Removed unnecessary patch --- cdi-api-1.0.SP4-pom.patch | 25 ------------------------- cdi-api.spec | 22 +++++++++++++--------- 2 files changed, 13 insertions(+), 34 deletions(-) delete mode 100644 cdi-api-1.0.SP4-pom.patch diff --git a/cdi-api-1.0.SP4-pom.patch b/cdi-api-1.0.SP4-pom.patch deleted file mode 100644 index aba1949..0000000 --- a/cdi-api-1.0.SP4-pom.patch +++ /dev/null @@ -1,25 +0,0 @@ ---- cdi-api-1.0.SP4/pom.xml 2010-12-16 14:10:21.000000000 -0500 -+++ cdi-api-1.0.SP4-work/pom.xml 2012-03-19 09:05:04.611002728 -0400 -@@ -1,13 +1,6 @@ - - 4.0.0 - -- -- org.jboss.weld -- weld-parent -- 17 -- -- -- - javax.enterprise - cdi-api - jar -@@ -70,7 +63,7 @@ - - - 1 -- 1.0.0.CR2 -+ 1.0.1.Final - 1.0 - 2.2 - 1.0.0.Beta1 diff --git a/cdi-api.spec b/cdi-api.spec index d38aa38..1fbc118 100644 --- a/cdi-api.spec +++ b/cdi-api.spec @@ -3,7 +3,7 @@ Name: cdi-api Version: 1.0 -Release: 4%{namedreltag}%{?dist} +Release: 5%{namedreltag}%{?dist} Summary: CDI API Group: Development/Libraries License: ASL 2.0 @@ -11,9 +11,7 @@ URL: http://seamframework.org/Weld # svn export http://anonsvn.jboss.org/repos/weld/cdi-api/tags/1.0-SP4/ cdi-api-1.0.SP4 # tar cafJ cdi-api-1.0.SP4.tar.xz cdi-api-1.0.SP4 -Source0: %{name}-%{namedversion}.tar.xz - -Patch0: %{name}-%{namedversion}-pom.patch +Source0: cdi-api-%{namedversion}.tar.xz BuildArch: noarch @@ -29,12 +27,15 @@ BuildRequires: testng BuildRequires: jboss-el-2.2-api BuildRequires: jboss-interceptors-1.1-api BuildRequires: jboss-ejb-3.1-api +BuildRequires: geronimo-annotation +BuildRequires: weld-parent Requires: jpackage-utils Requires: java Requires: jboss-el-2.2-api Requires: jboss-interceptors-1.1-api Requires: jboss-ejb-3.1-api +Requires: geronimo-annotation %description APIs for JSR-299: Contexts and Dependency Injection for Java EE @@ -48,12 +49,10 @@ Requires: jpackage-utils This package contains the API documentation for %{name}. %prep -%setup -q -n %{name}-%{namedversion} - -%patch0 -p1 +%setup -q -n cdi-api-%{namedversion} %build -mvn-rpmbuild install javadoc:aggregate +mvn-rpmbuild package javadoc:aggregate %install install -d -m 755 %{buildroot}%{_javadir} @@ -67,7 +66,7 @@ install -pm 644 target/cdi-api-%{version}-SP4.jar %{buildroot}%{_javadir}/%{name install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom # DEPMAP -%add_maven_depmap JPP-%{name}.pom %{name}.jar +%add_maven_depmap # APIDOCS cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} @@ -81,6 +80,11 @@ cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} %{_javadocdir}/%{name} %changelog +* Tue Dec 04 2012 Marek Goldmann - 1.0-5.SP4 +- Added missing BR/R +- Simplified the spec file +- Removed unnecessary patch + * Wed Jul 18 2012 Fedora Release Engineering - 1.0-4.SP4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild