SPECS: sax.spec - unify java package, build from source, add -java...
glen
glen at pld-linux.org
Wed Jan 23 19:16:38 CET 2008
Author: glen Date: Wed Jan 23 18:16:38 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- unify java package, build from source, add -javadoc; rel 5
---- Files affected:
SPECS:
sax.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/sax.spec
diff -u SPECS/sax.spec:1.19 SPECS/sax.spec:1.20
--- SPECS/sax.spec:1.19 Wed Jan 23 17:03:03 2008
+++ SPECS/sax.spec Wed Jan 23 19:16:33 2008
@@ -1,46 +1,80 @@
# $Revision$, $Date$
+%include /usr/lib/rpm/macros.java
Summary: A free API for event-based XML parsing
Summary(pl.UTF-8): Interfejs SAX do parsowania XML-a
Name: sax
Version: 1.0
-Release: 4
-Vendor: Membership of XML-DEV mailing list
+Release: 5
License: Public Domain
Group: Applications/Publishing/XML/Java
-Source0: http://dl.sourceforge.net/sax/saxjava-%{version}.zip
+Source0: http://dl.sourceforge.net/sax/%{name}java-%{version}.zip
# Source0-md5: 4e696064ace16b987ded0d4ceb5961e5
URL: http://sax.sourceforge.net/
-BuildRequires: unzip
+BuildRequires: jdk
+BuildRequires: jpackage-utils
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires: jpackage-utils
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _javaclassdir %{_datadir}/java
-%define _jredir %{_libdir}/jre
-
%description
A free API for event-based XML parsing.
%description -l pl.UTF-8
Interfejs SAX do parsowania XML-a.
+%package javadoc
+Summary: Online manual for %{name}
+Summary(pl.UTF-8): Dokumentacja online do %{name}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+Documentation for %{name}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{name}.
+
+
%prep
-%setup -q -c -T
-unzip -qa %{SOURCE0}
-chmod -R a+rX *
+%setup -qc
+rm -f *.jar *.class
+
+%build
+%javac *.java
+%jar -cf %{name}.jar *.class
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_javaclassdir}
-install %{name}.jar $RPM_BUILD_ROOT%{_javaclassdir}
+# jars
+install -d $RPM_BUILD_ROOT%{_javadir}
+cp -a %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+# javadoc
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -a javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%clean
rm -rf $RPM_BUILD_ROOT
+%post javadoc
+ln -nfs %{name}-%{version} %{_javadocdir}/%{name}
+
%files
%defattr(644,root,root,755)
-%doc README.txt CHANGES.txt ROADMAP.txt COPYING.txt javadoc
-%{_javaclassdir}/*
+%doc README.txt CHANGES.txt ROADMAP.txt COPYING.txt
+%{_javadir}/*.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{name}-%{version}
+%ghost %{_javadocdir}/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -48,6 +82,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2008-01-23 18:16:33 glen
+- unify java package, build from source, add -javadoc; rel 5
+
Revision 1.19 2008-01-23 16:03:03 hawk
- oops! fixed javaclassdir one more time
@@ -83,7 +120,7 @@
- massive attack s/pld.org.pl/pld-linux.org/
Revision 1.8 2002/11/30 23:00:27 juandon
-- new %%doc
+- new %doc
Revision 1.7 2002/02/23 04:32:22 kloczek
- adapterized.
@@ -93,13 +130,13 @@
Group field using gettext).
Revision 1.5 2002/01/18 02:14:52 kloczek
-perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
+- perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
Revision 1.4 2001/09/15 19:38:26 bonkey
- Group changed to Applications/Publishing/XML/Java
Revision 1.3 2001/02/16 11:23:57 kloczek
-<M-}>- final cleanups.
+- final cleanups.
Revision 1.2 2001/02/10 12:14:02 klakier
- log correction
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/sax.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list