SPECS: jdom.spec (NEW) - initial PLD release
pawelz
pawelz at pld-linux.org
Mon Aug 11 18:38:34 CEST 2008
Author: pawelz Date: Mon Aug 11 16:38:33 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial PLD release
---- Files affected:
SPECS:
jdom.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/jdom.spec
diff -u /dev/null SPECS/jdom.spec:1.1
--- /dev/null Mon Aug 11 18:38:34 2008
+++ SPECS/jdom.spec Mon Aug 11 18:38:28 2008
@@ -0,0 +1,82 @@
+# $Revision$, $Date$
+#
+%include /usr/lib/rpm/macros.java
+Summary: A Java representation of an XML document
+Name: jdom
+Version: 1.1
+Release: 0.1
+License: BSD-Like
+Group: Development/Languages/Java
+Source0: http://www.jdom.org/dist/binary/%{name}-%{version}.tar.gz
+# Source0-md5: 22745cbaaddb12884ed8ee09083d8fe2
+URL: http://www.jdom.org/
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires: jpackage-utils
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+JDOM is, quite simply, a Java representation of an XML document. JDOM
+provides a way to represent that document for easy and efficient
+reading, manipulation, and writing. It has a straightforward API, is a
+lightweight and fast, and is optimized for the Java programmer. It's
+an alternative to DOM and SAX, although it integrates well with both
+DOM and SAX.
+
+%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
+
+%build
+export JAVA_HOME="%{java_home}"
+
+export LC_ALL=en_US
+
+%ant
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+install build/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+find samples -name '*.class' -exec rm '{}' ';'
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/sax
+install samples/sax/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/sax
+install samples/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/*.jar
+%doc CHANGES.txt COMMITTERS.txt LICENSE.txt README.txt TODO.txt
+
+%files demo
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%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.1 2008/08/11 16:38:28 pawelz
+- initial PLD release
+
================================================================
More information about the pld-cvs-commit
mailing list