packages: moviejukebox/moviejukebox.spec (NEW) - initial
pawelz
pawelz at pld-linux.org
Sun Dec 6 13:58:15 CET 2009
Author: pawelz Date: Sun Dec 6 12:58:15 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/moviejukebox:
moviejukebox.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/moviejukebox/moviejukebox.spec
diff -u /dev/null packages/moviejukebox/moviejukebox.spec:1.1
--- /dev/null Sun Dec 6 13:58:15 2009
+++ packages/moviejukebox/moviejukebox.spec Sun Dec 6 13:58:10 2009
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+%define svnrev 1232
+%include /usr/lib/rpm/macros.java
+Summary: moviejukebox
+Name: moviejukebox
+Version: 1.7
+Release: 0.%{svnrev}.1
+License: GPL v3
+Group: Applications
+Source0: http://xatka.net/~z/PLD/%{name}-r%{svnrev}.tar.bz2
+# Source0-md5: 013170c09dbc2ba94409b5075d7430e8
+URL: http://code.google.com/p/moviejukebox/
+BuildRequires: java-commons-collections
+BuildRequires: java-commons-lang >= 2.4
+BuildRequires: java-commons-logging
+BuildRequires: java-junit >= 4.5
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+Requires: java-commons-collections
+Requires: java-commons-lang >= 2.4
+Requires: java-commons-logging
+Requires: jpackage-utils
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+moviejukebox
+
+%prep
+%setup -qn %{name}-r%{svnrev}
+
+cat > moviejukebox.sh << EOF
+#!/bin/sh
+. %{_datadir}/java-utils/java-functions
+[ -d \$HOME/.moviejukebox ] || cp -a %{_datadir}/%{name}/properties \$HOME/.moviejukebox
+CLASSPATH=\$HOME/.moviejukebox:\$(build-classpath-directory %{_javadir}/%{name})
+set_javacmd
+\$JAVACMD -Xms256m -Xmx512m -cp \$CLASSPATH com.moviejukebox.MovieJukebox "\$@"
+EOF
+
+chmod a+x %{name}.sh
+
+%build
+
+CLASSPATH=$(build-classpath commons-lang commons-collections commons-logging junit)
+
+%ant -Dbuild.sysclasspath=first
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+cp -a dist/lib $RPM_BUILD_ROOT%{_javadir}/%{name}
+cp -a dist/properties $RPM_BUILD_ROOT%{_datadir}/%{name}/properties
+cp -a dist/skins $RPM_BUILD_ROOT%{_datadir}/%{name}/skins
+install %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_javadir}/%{name}
+%{_datadir}/%{name}
+%attr(755,root,root) %{_bindir}/%{name}
+
+%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 2009/12/06 12:58:10 pawelz
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list