Jiri Vanek 6359f97
Name:           CardManager
Jiri Vanek work 3c388be
Version:        3
0cc9ee6
Release:        20%{?dist}
Jiri Vanek 6359f97
Summary:        Java application to allows you to play any, especially collectible, card game
Jiri Vanek 6359f97
Jiri Vanek 6359f97
License:        BSD
Jiri Vanek 6359f97
URL:            http://cardmanager.wz.cz/
Jiri Vanek work 3c388be
Source0:        http://cardmanager.wz.cz/CardManager_sources%{version}.zip
a1c1b6e
Source1:        %{name}.appdata.xml
Jiri Vanek 6359f97
Patch0:         removeManifestEntries.patch
37a436b
Patch1:         jdk8-javadoc.patch
2d6e0f1
Patch2:         bumpJdk.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:  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
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
37a436b
%patch1
2d6e0f1
%patch2
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
a1c1b6e
#appdata
a1c1b6e
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
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
a1c1b6e
%{_datadir}/appdata/%{name}.appdata.xml
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
0cc9ee6
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3-20
0cc9ee6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
0cc9ee6
d9a1323
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3-19
d9a1323
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
d9a1323
40fb981
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3-18
40fb981
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
40fb981
ae47e30
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3-17
ae47e30
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
ae47e30
a0785bd
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3-16
a0785bd
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
a0785bd
2d6e0f1
* Tue Apr 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3-15
2d6e0f1
- bravely bumped to jdk8
2d6e0f1
fc8b3c9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3-14
fc8b3c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
fc8b3c9
1f4c12c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3-13
1f4c12c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1f4c12c
b09b0e3
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3-12
b09b0e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b09b0e3
e779d31
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-11
e779d31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e779d31
2f8afa0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3-10
2f8afa0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2f8afa0
65bb01a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-9
65bb01a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
65bb01a
22f6170
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3-8
22f6170
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
22f6170
69405f8
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3-7
69405f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
69405f8
37a436b
* Tue Jul 13 2015 Jiri Vanek <jvanek@redhat.com> - 3-6
37a436b
- added patch1 jdk8-javadoc.patch
37a436b
62cf69d
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-6
62cf69d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
62cf69d
a1c1b6e
* Mon Jul 28 2014 Jiri Vanek <jvanek@redhat.com> - 3-5
a1c1b6e
- Added appdata.xml
a879dfb
Mat Booth 3e8c3d1
* Thu Aug 08 2013 Mat Booth <fedora@matbooth.co.uk> - 3-3
Mat Booth 3e8c3d1
- Drop BR on ant-nodeps, fixes rhbz #991930
Mat Booth 3e8c3d1
48de2aa
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3-2
48de2aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
48de2aa
Jiri Vanek work 3c388be
* Sun Feb 10 2013 Jiri Vanek <jvanek@redhat.com> - 3-1
Jiri Vanek work 3c388be
- updated to v3
Jiri Vanek work 3c388be
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