Blob Blame History Raw
Name:           CardManager
Version:        3
Release:        6%{?dist}
Summary:        Java application to allows you to play any, especially collectible, card game

Group:          Amusements/Games
License:        BSD
Source1:        %{name}.appdata.xml
Patch0:         removeManifestEntries.patch
Patch1:         jdk8-javadoc.patch
BuildArch:      noarch

BuildRequires:  jpackage-utils
BuildRequires:  java-devel
BuildRequires:  ant
BuildRequires:  desktop-file-utils

Requires:       jpackage-utils
Requires:       java

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}.

%setup -q -c CardManager
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;




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

mkdir -p $RPM_BUILD_ROOT%{_bindir}/
cp -p ./ $RPM_BUILD_ROOT%{_bindir}/CardManager
#end launcher

install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

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}

%attr(755,root,root) %{_bindir}/CardManager
%doc license.txt

%files javadoc
%doc license.txt

* Tue Jul 13 2015 Jiri Vanek <> - 3-6
- added patch1 jdk8-javadoc.patch

* Tue Jun 16 2015 Fedora Release Engineering <> - 3-6
- Rebuilt for

* Mon Jul 28 2014 Jiri Vanek <> - 3-5
- Added appdata.xml

* Thu Aug 08 2013 Mat Booth <> - 3-3
- Drop BR on ant-nodeps, fixes rhbz #991930

* Fri Aug 02 2013 Fedora Release Engineering <> - 3-2
- Rebuilt for

* Sun Feb 10 2013 Jiri Vanek <> - 3-1
- updated to v3

* Wed Jul 18 2012 Fedora Release Engineering <> - 1-2
- Rebuilt for

* Sun Jul 01 2012 Jiri Vanek <> - 1-1
-first release for fedora