commit c59831c704b979902864df663c9c1062b8d71984 Author: Jiri Vanek jvanek@jvanek.redhat Date: Mon Jul 16 11:52:13 2012 +0200
Initial commit Resolves:rhbz#837268
CardManager.spec | 93 +++++++++++++++++++++++++++++++++++++++++++ removeManifestEntries.patch | 20 +++++++++ sources | 1 + 3 files changed, 114 insertions(+), 0 deletions(-) --- diff --git a/CardManager.spec b/CardManager.spec new file mode 100644 index 0000000..fdbc9db --- /dev/null +++ b/CardManager.spec @@ -0,0 +1,93 @@ +Name: CardManager +Version: 1 +Release: 1%{?dist} +Summary: Java application to allows you to play any, especially collectible, card game + +Group: Amusements/Games +License: BSD +URL: http://cardmanager.wz.cz/ +Source0: http://cardmanager.wz.cz/CardManager_sources.zip +Patch0: removeManifestEntries.patch +BuildArch: noarch + +BuildRequires: jpackage-utils +BuildRequires: java-devel +BuildRequires: ant +BuildRequires: ant-nodeps +BuildRequires: desktop-file-utils + +Requires: jpackage-utils +Requires: java + +%description +This is free, open source multiplatform (java) application which allows you to + play ANY card game. +The game is designed especially to play collectible card games like Magic the + Gathering or Doomtrooper over network. +To play those games you need to own (scanned) images of card, which are not part + of this package. +Some can be easily downloadable from internet, but be aware of copyrights. +The default deck and background is free of copyright +Also please feel free to add your own backgrounds to +~/CardManager/data/backgrounds and of course enhance +collection under ~/CardManager/collection + +%package javadoc +Summary: Javadocs for %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -c CardManager +find -name '*.class' -exec rm -f '{}' ; +find -name '*.jar' -exec rm -f '{}' ; +%patch0 + +%build + +ant + +%install + +#desktop +mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps +desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications CardManager.desktop +cp -p ./CardManager.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/ +#end desktop + +#launcher +mkdir -p $RPM_BUILD_ROOT%{_bindir}/ +cp -p ./FedoraLauncher.sh $RPM_BUILD_ROOT%{_bindir}/CardManager +#end launcher + + + +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p dist/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/ +cp -r data $RPM_BUILD_ROOT/%{_datadir}/%{name}/ +cp -r collection $RPM_BUILD_ROOT/%{_datadir}/%{name}/ + +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -r dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +%files +%{_datadir}/pixmaps/CardManager.png +%{_datadir}/applications/CardManager.desktop +%{_datadir}/%{name} +%attr(755,root,root) %{_bindir}/CardManager +%{_javadir}/* +%doc license.txt + +%files javadoc +%{_javadocdir}/%{name} +%doc license.txt + + +%changelog +* Sun Jul 01 2012 Jiri Vanek jvanek@redhat.com - 1-1 +-first release for fedora + diff --git a/removeManifestEntries.patch b/removeManifestEntries.patch new file mode 100644 index 0000000..b1be77b --- /dev/null +++ b/removeManifestEntries.patch @@ -0,0 +1,20 @@ +--- nbproject/build-impl.xml ++++ nbproject/build-impl.xml +@@ -442,7 +442,7 @@ + <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}"> + <fileset dir="${build.classes.dir}"/> + <manifest> +- <attribute name="Class-Path" value="${jar.classpath}"/> ++ <attribute name="Class-Path" value=""/> + <customize/> + </manifest> + </copylibs> +@@ -577,7 +577,7 @@ + <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available"> + <j2seproject1:jar manifest="${manifest.file}"> + j2seproject1:manifest +- <j2seproject1:attribute name="Main-Class" value="${main.class}"/> ++ <j2seproject1:attribute name="Main-Class" value=""/> + </j2seproject1:manifest> + </j2seproject1:jar> + <echo>To run this application from the command line without Ant, try:</echo> diff --git a/sources b/sources index e69de29..705a900 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +db9a37537f741b0dde747b832c04388b CardManager_sources.zip
java-sig-commits@lists.fedoraproject.org