[RPM (6.0)] hibernate-beanvalidation-api-1.0.0-5.jpp6

Ralph Apel <[email protected]> Sun, 27 Jul 2014 13:26:35 +0200
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : hibernate-beanvalidation-api  Relocations: (not relocatable)
Version     : 1.0.0                             Vendor: JPackage Project
Release     : 5.jpp6                        Build Date: Sun 27 Jul 2014 01:25:08 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Java              Source RPM: (none)
Size        : 31421                            License: ASL 2.0
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://www.jboss.org/
Summary     : Bean Validation API
Description :
Bean Validation (JSR-303) API.

---------------
Ralph Apel <[email protected]> 0:1.0.0-5
- Include -sources jar
---------------

---------------
Index: hibernate-beanvalidation-api.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/hibernate-beanvalidation-api/hibernate-beanvalidation-api.spec,v
retrieving revision 1.5
diff -u -r1.5 hibernate-beanvalidation-api.spec
--- hibernate-beanvalidation-api.spec	24 Jan 2011 02:01:45 -0000	1.5
+++ hibernate-beanvalidation-api.spec	27 Jul 2014 11:26:34 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2009, JPackage Project
+# Copyright (c) 2000-2014, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -28,11 +28,6 @@
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
-%define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
-%define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
-%define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
-%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
-
 %define section free
 %define reltag GA
 %define realversion %{version}
@@ -40,7 +35,7 @@
 
 Name:           hibernate-beanvalidation-api
 Version:        1.0.0
-Release:	4%{?dist}
+Release:	5%{?dist}
 Epoch:          0
 Summary:        Bean Validation API
 License:        ASL 2.0
@@ -52,18 +47,18 @@
 Source0:        hibernate-beanvalidation-api-1.0.0.GA.tar.bz2
 Source1:        hibernate-beanvalidation-api-jpp-depmap.xml
 Source2:        hibernate-beanvalidation-api-settings.xml
-Requires(post): jpackage-utils >= 0:1.7.3
-Requires(postun): jpackage-utils >= 0:1.7.3
+Requires(post): jpackage-utils >= 0:1.7.5
+Requires(postun): jpackage-utils >= 0:1.7.5
 BuildRequires:  commons-parent >= 0:5
-BuildRequires:  java-devel >= 0:1.5.0
-BuildRequires:  jpackage-utils >= 0:1.7.3
-BuildRequires:  maven2 >= 0:2.0.7
-BuildRequires:  maven2-plugin-compiler
-BuildRequires:  maven2-plugin-install
-BuildRequires:  maven2-plugin-jar
-BuildRequires:  maven2-plugin-javadoc
-BuildRequires:  maven2-plugin-resources
-BuildRequires:  maven2-plugin-source
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  maven2 >= 0:2.0.8
+BuildRequires:  maven-compiler-plugin
+BuildRequires:  maven-install-plugin
+BuildRequires:  maven-jar-plugin
+BuildRequires:  maven-javadoc-plugin
+BuildRequires:  maven-resources-plugin
+BuildRequires:  maven-source-plugin
 BuildRequires:  maven-doxia-sitetools
 BuildRequires:  maven-release
 BuildRequires:  maven-surefire-maven-plugin
@@ -105,7 +100,7 @@
         -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
         -Dmaven2.jpp.depmap.file=%{SOURCE1} \
         -Dmaven.test.skip=true \
-        install javadoc:javadoc
+        install javadoc:javadoc source:jar
 
 %install
 %{__rm} -rf %{buildroot}
@@ -114,7 +109,9 @@
 %{__mkdir_p} %{buildroot}%{_javadir}
 
 %{__cp} -p target/validation-api-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
+%{__cp} -p target/validation-api-%{namedversion}-sources.jar %{buildroot}%{_javadir}/%{name}-sources-%{version}.jar
 %{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/validation-api-%{version}.jar
+%{__ln_s} %{name}-sources-%{version}.jar %{buildroot}%{_javadir}/validation-api-sources-%{version}.jar
 (cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{version}||g"`; done)
 
 # pom
@@ -141,10 +138,7 @@
 %files
 %defattr(0644,root,root,0755)
 %doc license.txt
-%{_javadir}/%{name}-%{version}.jar
-%{_javadir}/%{name}.jar
-%{_javadir}/validation-api-%{version}.jar
-%{_javadir}/validation-api.jar
+%{_javadir}/*.jar
 %{_datadir}/maven2/poms/JPP-%{name}.pom
 %{_mavendepmapfragdir}/%{name}
 
@@ -156,6 +150,9 @@
 %{_javadocdir}/validation-api
 
 %changelog
+* Sun Jul 27 2014 Ralph Apel <[email protected]> 0:1.0.0-5
+- Include -sources jar
+
 * Sun Jan 23 2011 David Walluck <[email protected]> 0:1.0.0-4
 - 1.0.0.GA