Jiri Vanek 6359f97
Name:           CardManager
Jiri Vanek work 6aa241e
Version:        3
Jiri Vanek work 6aa241e
Release:        1%{?dist}
Jiri Vanek 6359f97
Summary:        Java application to allows you to play any, especially collectible, card game
Jiri Vanek 6359f97
Jiri Vanek 6359f97
Group:          Amusements/Games
Jiri Vanek 6359f97
License:        BSD
Jiri Vanek 6359f97
URL:            http://cardmanager.wz.cz/
Jiri Vanek work 6aa241e
Source0:        http://cardmanager.wz.cz/CardManager_sources%{version}.zip
Jiri Vanek 6359f97
Patch0:         removeManifestEntries.patch
Jiri Vanek 6359f97
BuildArch:      noarch
Jiri Vanek 6359f97
Jiri Vanek 6359f97
BuildRequires:  jpackage-utils
Jiri Vanek 6359f97
BuildRequires:  java-devel
Jiri Vanek 6359f97
BuildRequires:  ant
Jiri Vanek 6359f97
BuildRequires:  ant-nodeps
Jiri Vanek 6359f97
BuildRequires:  desktop-file-utils
Jiri Vanek 6359f97
Jiri Vanek 6359f97
Requires:       jpackage-utils
Jiri Vanek 6359f97
Requires:       java
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%description
Jiri Vanek 6359f97
This is free, open source multiplatform (java) application which allows you to
Jiri Vanek 6359f97
 play ANY card game. 
Jiri Vanek 6359f97
The game is designed especially to play collectible card games like Magic the
Jiri Vanek 6359f97
 Gathering or Doomtrooper over network.
Jiri Vanek 6359f97
To play those games you need to own (scanned) images of card, which are not part
Jiri Vanek 6359f97
 of this package.
Jiri Vanek 6359f97
Some can be easily downloadable from internet, but be aware of copyrights.
Jiri Vanek 6359f97
The default deck and background is free of copyright
Jiri Vanek 6359f97
Also please feel free to add your own backgrounds to 
Jiri Vanek 6359f97
~/CardManager/data/backgrounds and of course enhance
Jiri Vanek 6359f97
collection under ~/CardManager/collection
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%package javadoc
Jiri Vanek 6359f97
Summary:        Javadocs for %{name}
Jiri Vanek 6359f97
Group:          Documentation
Jiri Vanek 6359f97
Requires:       jpackage-utils
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%description javadoc
Jiri Vanek 6359f97
This package contains the API documentation for %{name}.
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%prep
Jiri Vanek 6359f97
%setup -q -c CardManager
Jiri Vanek 6359f97
find -name '*.class' -exec rm -f '{}' \;
Jiri Vanek 6359f97
find -name '*.jar' -exec rm -f '{}' \;
Jiri Vanek 6359f97
%patch0
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%build
Jiri Vanek 6359f97
Jiri Vanek 6359f97
ant
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%install
Jiri Vanek 6359f97
Jiri Vanek 6359f97
#desktop
Jiri Vanek 6359f97
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
Jiri Vanek 6359f97
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications  CardManager.desktop
Jiri Vanek 6359f97
cp -p ./CardManager.png  $RPM_BUILD_ROOT%{_datadir}/pixmaps/
Jiri Vanek 6359f97
#end desktop
Jiri Vanek 6359f97
Jiri Vanek 6359f97
#launcher
Jiri Vanek 6359f97
mkdir -p $RPM_BUILD_ROOT%{_bindir}/
Jiri Vanek 6359f97
cp -p ./FedoraLauncher.sh $RPM_BUILD_ROOT%{_bindir}/CardManager
Jiri Vanek 6359f97
#end launcher
Jiri Vanek 6359f97
Jiri Vanek 6359f97
Jiri Vanek 6359f97
Jiri Vanek 6359f97
mkdir -p $RPM_BUILD_ROOT%{_javadir}
Jiri Vanek 6359f97
cp -p dist/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
Jiri Vanek 6359f97
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/
Jiri Vanek 6359f97
cp -r data $RPM_BUILD_ROOT/%{_datadir}/%{name}/
Jiri Vanek 6359f97
cp -r collection $RPM_BUILD_ROOT/%{_datadir}/%{name}/
Jiri Vanek 6359f97
Jiri Vanek 6359f97
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Jiri Vanek 6359f97
cp -r dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%files
Jiri Vanek 6359f97
%{_datadir}/pixmaps/CardManager.png
Jiri Vanek 6359f97
%{_datadir}/applications/CardManager.desktop
Jiri Vanek 6359f97
%{_datadir}/%{name}
Jiri Vanek 6359f97
%attr(755,root,root) %{_bindir}/CardManager
Jiri Vanek 6359f97
%{_javadir}/*
Jiri Vanek 6359f97
%doc license.txt
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%files javadoc
Jiri Vanek 6359f97
%{_javadocdir}/%{name}
Jiri Vanek 6359f97
%doc license.txt
Jiri Vanek 6359f97
Jiri Vanek 6359f97
Jiri Vanek 6359f97
%changelog
Jiri Vanek work 6aa241e
* Sun Feb 10 2013 Jiri Vanek <jvanek@redhat.com> - 3-1
Jiri Vanek work 6aa241e
- updated to v3
Jiri Vanek work 6aa241e
9ae96bf
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-2
9ae96bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
9ae96bf
Jiri Vanek 6359f97
* Sun Jul 01 2012 Jiri Vanek <jvanek@redhat.com> - 1-1
Jiri Vanek 6359f97
-first release for fedora
Jiri Vanek 6359f97