[RPM (6.0)] [DIST generic] sun-sjsxp-1.0-2.jpp6

Ralph Apel <[email protected]> Fri, 11 Jan 2013 14:53:03 +0100
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : sun-sjsxp                    Relocations: (not relocatable)
Version     : 1.0                               Vendor: JPackage Project
Release     : 2.jpp6                        Build Date: Fri 11 Jan 2013 02:47:16 PM CET
Install Date: (not installed)               Build Host: flat.netmindz.net
Group       : Development/Libraries/Java    Source RPM: (none)
Size        : 1606513                          License: CDDL v1.0 and GPL v2
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : https://sjsxp.dev.java.net/
Summary     : SJSXP is an efficient implementation of the StAX API
Description :
The Sun Java Streaming XML Parser (SJSXP) is an efficient implementation of the
StAX API which is fully compliant with the XML 1.0 and Namespace 1.0
specifications.

---------------
Ralph Apel <[email protected]> 0:1.0-2
- add update_maven_depmap macro
- drop gcj stuff
---------------
sun-sjsxp.src: W: strange-permission sun-sjsxp.spec 0775
sun-sjsxp.src: W: no-signature
sun-sjsxp.src: W: mixed-use-of-spaces-and-tabs (spaces: line 35, tab: line 57)
sun-sjsxp.src: W: invalid-license CDDL v1.0
sun-sjsxp.src: W: invalid-license GPL v2
1 packages and 0 specfiles checked; 0 errors, 5 warnings.

---------------
Index: sun-sjsxp.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/sun-sjsxp/sun-sjsxp.spec,v
retrieving revision 1.1
diff -u -r1.1 sun-sjsxp.spec
--- sun-sjsxp.spec	22 Sep 2010 23:57:42 -0000	1.1
+++ sun-sjsxp.spec	11 Jan 2013 13:53:02 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2010, JPackage Project
+# Copyright (c) 2000-2013, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -37,22 +37,15 @@
 %define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
 %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
 
-%bcond_with gcj_support
 %bcond_without repolib
 
-%if %with gcj_support
-%define gcj_support 1
-%else
-%define gcj_support 0
-%endif
-
 %define section free
 %define base_name sjsxp
 %define api_version 1.0
 
 Name:           sun-sjsxp
 Version:        1.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Epoch:          0
 Summary:        SJSXP is an efficient implementation of the StAX API 
 Group:          Development/Libraries/Java
@@ -69,11 +62,7 @@
 BuildRequires:  jpackage-utils >= 0:1.7.3
 BuildRequires:  junit >= 0:3.8.1
 BuildRequires:  stax_1_0_api
-%if %{gcj_support}
-BuildRequires:  java-gcj-compat-devel
-%else
 BuildArch:      noarch
-%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
@@ -150,28 +139,14 @@
 cp -p %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom %{buildroot}%{repodirlib}/sjsxp.pom
 %endif
 
-%if %{gcj_support}
-%{_bindir}/aot-compile-rpm
-%endif
-
 %clean
 rm -rf %{buildroot}
 
 %post
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
+%update_maven_depmap
 
 %postun
-%if %{gcj_support}
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
-  %{_bindir}/rebuild-gcj-db
-fi
-%endif
+%update_maven_depmap
 
 %files
 %defattr(0644,root,root,0755)
@@ -182,11 +157,6 @@
 %{_javadir}/%{base_name}.jar
 %{_datadir}/maven2/poms/JPP-%{name}.pom
 %{_mavendepmapfragdir}/%{name}
-%if %{gcj_support}
-%dir %{_libdir}/gcj/%{name}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.db
-%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.so
-%endif
 
 %files javadoc
 %defattr(0644,root,root,0755)
@@ -201,5 +171,9 @@
 %endif
 
 %changelog
+* Fri Jan 10 2013 Ralph Apel <[email protected]> 0:1.0-2
+- add update_maven_depmap macro
+- drop gcj stuff
+
 * Wed Sep 22 2010 David Walluck <[email protected]> 0:1.0-1
 - release