SPECS: castor.spec - added wrapper scripts - adapterized
pawelz
pawelz at pld-linux.org
Mon Feb 23 15:37:56 CET 2009
Author: pawelz Date: Mon Feb 23 14:37:56 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added wrapper scripts
- adapterized
---- Files affected:
SPECS:
castor.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/castor.spec
diff -u SPECS/castor.spec:1.12 SPECS/castor.spec:1.13
--- SPECS/castor.spec:1.12 Fri Feb 20 20:46:18 2009
+++ SPECS/castor.spec Mon Feb 23 15:37:50 2009
@@ -12,12 +12,16 @@
License: Exolab Software License, BSD-like
Group: Development/Languages/Java
# http://svn.codehaus.org/castor/castor/
-Source0: castor-1.2.tar.bz2
+Source0: %{name}-%{version}.tar.bz2
# Source0-md5: 3387cdf40b0ab66c1aac1f0fb16ccb5f
+Source1: %{name}.sh
+Source2: %{name}-xml2xsd.sh
URL: http://castor.codehaus.org/
BuildRequires: ant
BuildRequires: ant-trax
BuildRequires: java-gcj-compat-devel
+BuildRequires: jpackage-utils
+BuildRequires: rpmbuild(macros) >= 1.300
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -88,8 +92,8 @@
export SHELL=/bin/sh
cd src
-ant -Dbuild.compiler=extJavac jar.all
-ant javadoc
+%ant -Dbuild.compiler=extJavac jar.all
+%ant javadoc
%install
rm -rf $RPM_BUILD_ROOT
@@ -117,7 +121,12 @@
# do this last, since it will delete all build directories
export CLASSPATH=%(build-classpath adaptx)
-ant -buildfile src/build.xml doc
+%ant -buildfile src/build.xml doc
+
+# shell wrappers
+install -d $RPM_BUILD_ROOT%{_bindir}
+install %SOURCE1 $RPM_BUILD_ROOT%{_bindir}/castor
+install %SOURCE2 $RPM_BUILD_ROOT%{_bindir}/xml2xsd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -127,8 +136,9 @@
%files
%defattr(644,root,root,755)
-%doc src%{_sysconfdir}/{CHANGELOG,LICENSE,README}
+%doc src/etc/CHANGELOG
%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/xml2xsd
%{_javadir}/castor
%{_javadir}/*.jar
@@ -144,11 +154,16 @@
%doc build/doc/*
%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.13 2009/02/23 14:37:50 pawelz
+- added wrapper scripts
+- adapterized
+
Revision 1.12 2009/02/20 19:46:18 pawelz
- comment about Source0 origin. It is version from svn, because tarball
seems to be incomplete
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/castor.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list