From 697e17a8af3ecdc186c2958d28857746fcbdc65fb1cf62d3ffa22a56869db430 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 22:50:54 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/aelfred?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + aelfred.changes | 10 ++++ aelfred.spec | 134 ++++++++++++++++++++++++++++++++++++++++++++++++ aelfred.zip | 3 ++ ready | 0 6 files changed, 171 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 aelfred.changes create mode 100644 aelfred.spec create mode 100644 aelfred.zip create mode 100644 ready diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/aelfred.changes b/aelfred.changes new file mode 100644 index 0000000..51c8402 --- /dev/null +++ b/aelfred.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Wed Jan 25 21:45:42 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Oct 19 13:40:50 CEST 2005 - jsmeix@suse.de + +- Current version 1.2 from JPackage.org + diff --git a/aelfred.spec b/aelfred.spec new file mode 100644 index 0000000..df3858c --- /dev/null +++ b/aelfred.spec @@ -0,0 +1,134 @@ +# +# spec file for package aelfred (Version 1.2) +# +# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# + +# norootforbuild + +Name: aelfred +BuildRequires: ant java2-devel-packages xml-commons-apis +%define name aelfred +%define version 1.2 +%define release 0.a.7jpp +%define section free +Version: 1.2 +Release: 1 +Summary: Java-based XML parser +License: BSD +URL: http://www.jpackage.org/ +Source0: http://card4u.fhnon.de/XMLKlassen/microstar-Parser/aelfred.zip +Group: Development/Libraries/Java +Buildarch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +AElfred is a Java-based XML parser from Microstar Software Ltd. AElfred +is distributed for free (with full source) for both commercial and +non-commercial use. + + + +%package javadoc +PreReq: coreutils +Summary: Java-based XML parser (documentation) +Group: Development/Libraries/Java + +%description javadoc +Javadoc for aelfred. + + + +%package demo +Summary: Java-based XML parser (demo and samples) +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries/Java + +%description demo +Demonstrations and samples for aelfred. + + + +%prep +%setup -q -c +# remove all binary libs +find . -name "*.jar" -exec %__rm -f {} \; +find . -name "*.class" -exec %__rm -f {} \; + +%__rm -rf HTML/* + +%build +export JAVA_HOME=%{java_home} +export PATH=%{java_home}/bin:$PATH +export CLASSPATH= +cd src + +%javac -source 1.4 `find . -name \*.java` + +%javadoc -source 1.4 -d ../HTML `find . -name \*.java` + +%install +# jar +export JAVA_HOME=%{java_home} +cd src + +%__mkdir_p %{buildroot}%{_javadir} + +%jar cvmf /dev/null %{name}.jar -C . com/ + +%__cp -a %{name}.jar \ +%{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \ + +%__ln_s ${jar} ${jar/-%{version}/}; done) +# javadoc + +%__mkdir_p %{buildroot}%{_javadocdir}/%{name}-%{version} + +%__cp -a ../HTML/* %{buildroot}%{_javadocdir}/%{name}-%{version} +(cd %{buildroot}%{_javadocdir} && %__ln_s %{name}-%{version} %{name}) +# data + +%__mkdir_p %{buildroot}%{_datadir}/%{name}/Demo + +%__cp -a *.class %{buildroot}%{_datadir}/%{name}/Demo + +%clean +rm -rf $RPM_BUILD_ROOT + +%post javadoc + +%__rm -f %{_javadocdir}/%{name} + +%__ln_s %{name}-%{version} %{_javadocdir}/%{name} + +%postun javadoc +if [ $1 -eq 0 ]; then + %__rm -f %{_javadocdir}/%{name} +fi + +%files +%defattr(0644,root,root,0755) +%doc README.txt FILES +%{_javadir}/* +%dir %{_datadir}/%{name} + +%files javadoc +%defattr(0644,root,root,0755) +%dir %{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name}-%{version}/* +%ghost %dir %{_javadocdir}/%{name} + +%files demo +%defattr(0644,root,root,0755) +%{_datadir}/%{name}/Demo + +%changelog -n aelfred +* Wed Jan 25 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Wed Oct 19 2005 - jsmeix@suse.de +- Current version 1.2 from JPackage.org diff --git a/aelfred.zip b/aelfred.zip new file mode 100644 index 0000000..da280ac --- /dev/null +++ b/aelfred.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01c1b09faf1e39f063755bed88602fbf2f30a1477e13b5cfea711bf0d9538b45 +size 163234 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4