SPECS: higlayout.spec (NEW), freecol.spec (NEW) - new
adamg
adamg at pld-linux.org
Tue Jul 25 01:22:48 CEST 2006
Author: adamg Date: Mon Jul 24 23:22:48 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
higlayout.spec (NONE -> 1.1) (NEW), freecol.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/higlayout.spec
diff -u /dev/null SPECS/higlayout.spec:1.1
--- /dev/null Tue Jul 25 01:22:48 2006
+++ SPECS/higlayout.spec Tue Jul 25 01:22:42 2006
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+Summary: Easy to use and powerful layout manager for Java
+Name: higlayout
+Version: 1.0
+Release: 0.1
+License: LGPL
+Group: Libraries
+URL: http://www.autel.cz/dmi/tutorial.html
+Source0: http://www.autel.cz/dmi/HIGLayout%{version}.zip
+# Source0-md5: 5bd79f33157824499b0fc03d6a5e080a
+Requires: jre >= 1.4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Easy to use and powerful layout manager for Java.
+
+%description -l pl
+Łatwy w użyciu i potężny zarządca układów graficznych dla Javy.
+
+%package javadoc
+Summary: Java API documentation for higlayout
+Summary(pl): Dokumentacja Java API dla higlayout
+Group: Documentation
+
+%description javadoc
+Java API documentation for higlayout
+
+%description javadoc -l pl
+Dokumentacja Java API dla higlayout
+
+%prep
+%setup -q -c
+mv src/cz .
+sed -i -e 's/\r//g' examples/*.java tutorial/*.html *.txt
+rm -rf apidoc ; mkdir apidoc
+
+%build
+javac -source 1.4 cz/autel/dmi/*.java
+jar cf %{name}.jar cz/autel/dmi/*.class
+javadoc -link %{_javadocdir}/java -d apidoc cz.autel.dmi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -Dpm 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
+ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+cp -pR apidoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes.txt LGPLicense.txt readme.txt examples/ tutorial/
+%{_javadir}/%{name}*.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/%{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 2006/07/24 23:22:42 adamg
+- new
+
================================================================
Index: SPECS/freecol.spec
diff -u /dev/null SPECS/freecol.spec:1.1
--- /dev/null Tue Jul 25 01:22:48 2006
+++ SPECS/freecol.spec Tue Jul 25 01:22:42 2006
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+# TODO:
+# - make it build
+Summary: Open source Colonization clone
+Summary(pl): Klon gry Colonization o otwartych źródłach
+Name: freecol
+Version: 0.5.0
+Release: 0.1
+License: GPL v2
+Group: X11/Applications/Games
+Source0: http://dl.sourceforge.net/freecol/%{name}-%{version}-src.tar.gz
+# Source0-md5: fa33b91c291665dc94382afcfc4be69a
+Source1: %{name}.sh
+URL: http://www.freecol.org/
+BuildRequires: ant
+BuildRequires: higlayout
+BuildRequires: jdk >= 1.4
+Requires: higlayout
+Requires: jre >= 1.4
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The FreeCol team aims to create an Open Source version of Colonization
+(released under the GPL).
+
+%prep
+%setup -q -n %{name}
+#rm -rf jars
+#sed -i -e /Class-Path/d src/MANIFEST.MF
+
+%build
+CLASSPATH=$(build-classpath higlayout)
+JAVA_HOME=%{java_home}
+export CLASSPATH JAVA_HOME
+%{ant} -Dnojars -Dnodata fullpackage
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -Dpm 644 FreeCol.jar \
+ $RPM_BUILD_ROOT%{_datadir}/games/freecol/FreeCol.jar
+install -Dpm 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/freecol
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING README
+%attr(755,root,root) %{_bindir}/freecol
+%{_datadir}/games/freecol/
+
+%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 2006/07/24 23:22:42 adamg
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list