Author: glen Date: Thu Feb 14 17:30:38 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - unify java package, add -demo package
---- Files affected: SPECS: xt.spec (1.18 -> 1.19) ---- Diffs: ================================================================ Index: SPECS/xt.spec diff -u SPECS/xt.spec:1.18 SPECS/xt.spec:1.19 --- SPECS/xt.spec:1.18 Thu Feb 14 17:27:26 2008 +++ SPECS/xt.spec Thu Feb 14 18:30:32 2008 @@ -1,4 +1,7 @@ # $Revision$, $Date$ +# TODO +# - try building it +%include /usr/lib/rpm/macros.java Summary: XSLT Processor in Java Summary(pl.UTF-8): Procesor XSLT napisany w Javie Name: xt @@ -10,16 +13,14 @@ Source0: ftp://ftp.jclark.com/pub/xml/%{name}.zip # Source0-md5: 2ac9973f7f9cb2a480af94066f89568a URL: http://www.jclark.com/xml/ -# this is not exactly true but I'd better add this ... -BuildRequires: unzip +BuildRequires: jpackage-utils +BuildRequires: rpm-javaprov +BuildRequires: rpmbuild(macros) >= 1.300 Requires: xp -Requires: jre +Requires: jpackage-utils BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _javaclassdir %{_datadir}/java -%define _jredir %{_libdir}/jre - %description XT is an implementation in Java of XSL Transformations. This version of XT implements the PR-xslt-19991008 version of XSLT. @@ -28,23 +29,52 @@ XT to implementacja XSLT napisana w Javie. Ta wersja XT implementuje XSLT w wersji PR-xslt-19991008. +%package demo +Summary: Demo for %{name} +Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu %{name} +Group: Development +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description demo +Demonstrations and samples for %{name}. + +%description demo -l pl.UTF-8 +Pliki demonstracyjne i przykłady dla pakietu %{name}. + %prep -%setup -q -c -T -unzip -qa %{SOURCE0} -chmod -R a+rX * +%setup -qc + +%if 0 +%build +required_jars="sax jaxp_parser_impl jaxp_transform_impl servlet" +CLASSPATH=$(build-classpath $required_jars) +export CLASSPATH +%javac -source 1.4 $(find com -name '*.java') +%endif %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_javaclassdir} -install %{name}.jar $RPM_BUILD_ROOT%{_javaclassdir} +install -d $RPM_BUILD_ROOT%{_javadir} +# jars +cp -a %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar + +# demo +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc copying.txt demo *.htm -%{_javaclassdir}/* +%doc copying.txt *.htm +%{_javadir}/*.jar + +%files demo +%defattr(644,root,root,755) +%{_examplesdir}/%{name}-%{version} +%endif %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -52,6 +82,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.19 2008-02-14 17:30:32 glen +- unify java package, add -demo package + Revision 1.18 2008-02-14 16:27:26 hawk - fixed javaclassdir path @@ -77,7 +110,7 @@ - massive attack s/pld.org.pl/pld-linux.org/ Revision 1.10 2002/11/30 23:00:31 juandon -- new %%doc +- new %doc Revision 1.9 2002/02/23 05:29:56 kloczek - adapterized. @@ -87,7 +120,7 @@ Group field using gettext). Revision 1.7 2002/01/18 02:15:45 kloczek -perl -pi -e "s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/" +- perl -pi -e "s/[EMAIL PROTECTED]/[EMAIL PROTECTED]/" Revision 1.6 2001/09/15 19:38:26 bonkey - Group changed to Applications/Publishing/XML/Java ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/xt.spec?r1=1.18&r2=1.19&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
