SPECS: netrexx.spec - unify java package; rel 2

glen glen at pld-linux.org
Wed Dec 12 20:13:19 CET 2007


Author: glen                         Date: Wed Dec 12 19:13:19 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unify java package; rel 2

---- Files affected:
SPECS:
   netrexx.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/netrexx.spec
diff -u SPECS/netrexx.spec:1.5 SPECS/netrexx.spec:1.6
--- SPECS/netrexx.spec:1.5	Wed Apr  4 19:22:11 2007
+++ SPECS/netrexx.spec	Wed Dec 12 20:13:14 2007
@@ -1,18 +1,26 @@
 # $Revision$, $Date$
+%include	/usr/lib/rpm/macros.java
 Summary:	NetRexx - programming language derived from both Rexx and Java
 Summary(pl.UTF-8):	NetRexx - język programowania wywodzący się z języka Rexx i Javy
 Name:		netrexx
 Version:	2.05
-Release:	1
+Release:	2
 License:	IBM proprietary, distributable (see license.txt)
 Group:		Development/Languages/Java
 Source0:	http://www-306.ibm.com/software/awdtools/netrexx/NetRexx.zip
 # Source0-md5:	07622f619758b83d593a127f4a2542f1
-Patch0:	%{name}-classpath.patch
+Patch0:		%{name}-classpath.patch
 URL:		http://www2.hursley.ibm.com/netrexx/
+BuildRequires:	jpackage-utils
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
 BuildRequires:	unzip
+Requires:	jpackage-utils
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define _noautocompressdoc *.au *.class *.nrx *.txt *.zip
+
 %description
 NetRexx is a programming language derived from both Rexx and Java. It
 is a dialect of Rexx that retains the portability and efficiency of
@@ -24,19 +32,35 @@
 wydajność Javy, będący jednocześnie łatwy do nauczenia i używania tak
 jak Rexx.
 
-%define _noautocompressdoc *.au *.class *.nrx *.txt *.zip
+%package doc
+Summary:	Manual for %{name}
+Summary(fr.UTF-8):	Documentation pour %{name}
+Summary(it.UTF-8):	Documentazione di %{name}
+Summary(pl.UTF-8):	Podręcznik dla %{name}
+Group:		Documentation
+
+%description doc
+Documentation for %{name}.
+
+%description doc -l fr.UTF-8
+Documentation pour %{name}.
+
+%description doc -l it.UTF-8
+Documentazione di %{name}.
+
+%description doc -l pl.UTF-8
+Dokumentacja do %{name}.
 
 %prep
 %setup -q -n NetRexx
 %patch0 -p1
+find '(' -name '*.sh' -o -name 'nrc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
 %build
-find '(' -name '*.sh' -o -name 'nrc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_javadir},%{_bindir}}
-
 install lib/NetRexxC.jar runlib/NetRexxR.jar $RPM_BUILD_ROOT%{_javadir}
 install bin/{NetRexxC.sh,nrc} $RPM_BUILD_ROOT%{_bindir}
 
@@ -45,16 +69,23 @@
 
 %files
 %defattr(644,root,root,755)
-%doc read.me.first browse/*
+%doc read.me.first
 %attr(755,root,root) %{_bindir}/*
 %{_javadir}/NetRexx*.jar
 
+%files doc
+%defattr(644,root,root,755)
+%doc browse/*
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2007-12-12 19:13:14  glen
+- unify java package; rel 2
+
 Revision 1.5  2007-04-04 17:22:11  aredridel
 - correct line endings
 - add classpath so it actually runs
@@ -70,4 +101,3 @@
 
 Revision 1.1  2005/05/07 21:06:03  qboosh
 - new
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/netrexx.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list