cvsextras 8f0322
Name:           uqm
Jon Ciesla 8dd91c
Version:        0.7.0
28a5fb
Release:        20%{?dist}
e6ccb5
Summary:        The Ur-Quan Masters, a port of the classic game Star Control II
cvsextras 8f0322
b5bdcf
License:        GPLv2+
cvsextras 8f0322
URL:            http://sc2.sourceforge.net/
02dffa
Source0:        http://download.sf.net/sc2/%{name}-%{version}-1-source.tgz
cvsextras 8f0322
Source1:        %{name}.conf
b80176
Source2:        %{name}.sh
b80176
Source3:        %{name}.desktop
48c02c
Source4:        %{name}-functions.sh
48c02c
Source5:        %{name}.autodlrc
b80176
Patch0:         %{name}-optflags.patch
cvsextras 8f0322
676ade
BuildRequires:  SDL-devel >= 1.2.8
676ade
BuildRequires:  SDL_image-devel >= 1.2.4
676ade
BuildRequires:  ImageMagick
676ade
BuildRequires:  libvorbis-devel
676ade
BuildRequires:  zlib-devel
676ade
BuildRequires:  desktop-file-utils
676ade
BuildRequires:  libGLU-devel
48c02c
BuildRequires:  libmikmod-devel
4166cf
BuildRequires:  gcc
48c02c
Requires:       autodownloader
cfde30
Provides:       uqm-content = %{version}-%{release}
9c37aa
Provides:       uqm-content-3domusic = %{version}-%{release}
9c37aa
Provides:       uqm-content-voice = %{version}-%{release}
cfde30
Obsoletes:      uqm-content <= 0.6.0-2
9c37aa
Obsoletes:      uqm-content-3domusic <= 0.6.0-2
9c37aa
Obsoletes:      uqm-content-voice <= 0.6.0-2
3b0fdf
cvsextras 8f0322
cvsextras 8f0322
%description
cvsextras 8f0322
The Ur-Quan Masters is a port of the classic game Star Control II to
cvsextras 8f0322
modern systems.  The program code that comprises The Ur-Quan Masters
cvsextras 8f0322
was derived from code written by Toys for Bob, Inc. for the 3DO
cvsextras 8f0322
version of Star Control II, with their permission and encouragement.
cvsextras 8f0322
cvsextras 8f0322
cvsextras 8f0322
%prep
02dffa
%setup -qn uqm-0.7.0-1
e5174e
find -type d -name CVS -exec rm -rf {} ';'
cvsextras 8f0322
%patch0 -p0
cvsextras 8f0322
cvsextras 8f0322
%build
48c02c
echo INPUT_install_sharedir_VALUE=%{_datadir} > config.state
48c02c
sed -i 's|@CONTENTDIR@|~/.uqm|g' src/config_unix.h.in
cvsextras 8f0322
sh ./build.sh uqm < /dev/null
cvsextras 8f0322
convert src/res/ur-quan-icon-std.ico uqm.png
cvsextras 8f0322
cvsextras 8f0322
cvsextras 8f0322
%install
cvsextras 8f0322
b80176
install -dm 755 $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir}}
b80176
sed -e 's|/etc/|%{_sysconfdir}/|' %{SOURCE1} > \
b80176
  $RPM_BUILD_ROOT%{_sysconfdir}/uqm.conf
b80176
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/uqm.conf
b80176
sed -e 's|/usr/games/|%{_prefix}/games/|' %{SOURCE2} \
b80176
  > $RPM_BUILD_ROOT%{_bindir}/uqm
b80176
chmod 755 $RPM_BUILD_ROOT%{_bindir}/uqm
cvsextras 8f0322
b80176
install -Dpm 755 uqm $RPM_BUILD_ROOT%{_prefix}/games/uqm
cvsextras 8f0322
b80176
install -dm 755 \
Jon Ciesla 8dd91c
  $RPM_BUILD_ROOT%{_datadir}/uqm/content/packages/addons
48c02c
echo %{version} > $RPM_BUILD_ROOT%{_datadir}/uqm/content/version
cvsextras 8f0322
cvsextras 8f0322
desktop-file-install \
cvsextras 8f0322
  --mode 644 \
cvsextras 8f0322
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
b80176
 %{SOURCE3}
b80176
install -Dpm 644 uqm-5.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/uqm.png
cvsextras 8f0322
48c02c
# needed "data" files
48c02c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
48c02c
install -p -m 644 %{SOURCE4} %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/%{name}
cvsextras 8f0322
Richard Hughes 0cef07
# Register as an application to be visible in the software center
Richard Hughes 0cef07
#
Richard Hughes 0cef07
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 0cef07
# project, translated and installed into the right place during `make install`.
Richard Hughes 0cef07
#
Richard Hughes 0cef07
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 0cef07
#
Richard Hughes 0cef07
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 0cef07
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 0cef07
Richard Hughes 0cef07
Richard Hughes 0cef07
Richard Hughes 0cef07
BugReportURL: https://bugs.uqm.stack.nl/show_bug.cgi?id=1199
Richard Hughes 0cef07
SentUpstream: 2014-09-25
Richard Hughes 0cef07
-->
Richard Hughes 0cef07
<application>
Richard Hughes 0cef07
  <id type="desktop">uqm.desktop</id>
Richard Hughes 0cef07
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 0cef07
  <summary>Classic space adventure game</summary>
Richard Hughes 0cef07
  <description>
Richard Hughes 0cef07
    

Richard Hughes 0cef07
    A port of classic game Star Control II that includes adventure and melee
Richard Hughes 0cef07
    mode with enhancement for modern system.
Richard Hughes 0cef07
    

Richard Hughes 0cef07
  </description>
Richard Hughes 0cef07
  <url type="homepage">http://sc2.sourceforge.net/</url>
Richard Hughes 0cef07
  <screenshots>
Richard Hughes 0cef07
    <screenshot type="default">http://sc2.sourceforge.net/screenshots/meleestep.png</screenshot>
Richard Hughes 0cef07
    <screenshot>http://sc2.sourceforge.net/screenshots/scale_triscan.png</screenshot>
Richard Hughes 0cef07
    <screenshot>http://sc2.sourceforge.net/screenshots/slaveshield.png</screenshot>
Richard Hughes 0cef07
  </screenshots>
Richard Hughes 0cef07
</application>
Richard Hughes 0cef07
EOF
Richard Hughes 0cef07
cvsextras 8f0322
%files
02dffa
%license COPYING
02dffa
%doc AUTHORS ChangeLog Contributing README
Jon Ciesla 8dd91c
%doc WhatsNew doc/users/manual.txt
cvsextras 8f0322
%config(noreplace) %{_sysconfdir}/uqm.conf
cvsextras 8f0322
%{_bindir}/uqm
b80176
%{_prefix}/games/uqm
48c02c
%{_datadir}/uqm/
Richard Hughes 0cef07
%{_datadir}/appdata/%{name}.appdata.xml
f69619
%{_datadir}/applications/%{name}.desktop
cvsextras 8f0322
%{_datadir}/pixmaps/uqm.png
cvsextras 8f0322
cvsextras 8f0322
cvsextras 8f0322
%changelog
28a5fb
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-20
28a5fb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
28a5fb
25bd1d
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-19
25bd1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
25bd1d
07ad7c
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-18
07ad7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
07ad7c
ff181c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-17
ff181c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff181c
02dffa
* Tue Jan 23 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.7.0-16
02dffa
- Updated upstream.
02dffa
934774
* Tue Jan 23 2018 Gwyn Ciesla <limburgher@gmail.com> - 0.7.0-15
934774
- Rename internal strings.h to fix FTBFS.
934774
5ac42d
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-14
5ac42d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5ac42d
2f312d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-13
2f312d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2f312d
9cde15
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-12
9cde15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9cde15
95e762
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-11
95e762
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
95e762
0e15ae
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-10
0e15ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0e15ae
Richard Hughes 0cef07
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 0.7.0-9
Richard Hughes 0cef07
- Add an AppData file for the software center
Richard Hughes 0cef07
9305fd
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-8
9305fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9305fd
37e16b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-7
37e16b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
37e16b
ed0f91
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-6
ed0f91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ed0f91
f69619
* Mon Feb 11 2013 Jon Ciesla <limburgher@gmail.com> - 0.7.0-5
f69619
- Drop desktop vendor tag.
f69619
6cf553
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-4
6cf553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6cf553
d1d6a1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
d1d6a1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d1d6a1
Jon Ciesla 486f9a
* Tue Nov 29 2011 Jon Ciesla <limb@jcomserv.net> - 0.7.0-2
Jon Ciesla 486f9a
- Corrected autodl file.
Jon Ciesla 486f9a
Jon Ciesla 8dd91c
* Thu Nov 17 2011 Jon Ciesla <limb@jcomserv.net> - 0.7.0-1
Jon Ciesla 8dd91c
- Updated to 0.7.0 release based on Solomon Peachy's changes from BZ 735956.
Jon Ciesla 8dd91c
df3477
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-12
df3477
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
df3477
3290d5
* Wed Apr 28 2010 Jon Ciesla <limb@jcomserv.net> - 0.6.2-11
3290d5
- Fix for autodl urls, BZ 494465.
3290d5
7d3a87
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-10
7d3a87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
7d3a87
e747d2
* Sat Jun 27 2009 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6.2-9
e747d2
- Fix for content location (#505489)
e747d2
d95c99
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-8
d95c99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d95c99
9c37aa
* Fri Sep 12 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6.2-7
9c37aa
- forgot a few obsoletes/provides
9c37aa
cfde30
* Thu Sep 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6.2-6
cfde30
- properly Provide/Obsolete dead uqm-content package
cfde30
48c02c
* Wed Sep 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6.2-5
48c02c
- drop /usr/share/games/uqm to /usr/share/uqm
48c02c
48c02c
* Wed Sep 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.6.2-4
48c02c
- convert package to use autodownloader
48c02c
- look for content in user homedir
48c02c
c552d2
* Sun Feb 17 2008 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6.2-3
c552d2
- Rebuild for newer mikmod.
c552d2
b5bdcf
* Tue Aug 21 2007 Warren Togami <wtogami@redhat.com> - 0.6.2-2
b5bdcf
- rebuild
b5bdcf
8cff2d
* Thu Apr 19 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6.2-1.1
8cff2d
- Rebuild for newer mikmod.
8cff2d
e5174e
* Fri Jan 26 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6.2-1
e5174e
- Upstream 0.6.2.
e5174e
- Require uqm-content >= 0.6, since 0.6.0 has not changed.
e5174e
3b0fdf
* Fri Dec 22 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.6.0-1
3b0fdf
- Upstream 0.6.0
3b0fdf
- Don't exclude 64-bit arches
3b0fdf
- BR: mikmod-devel
3b0fdf
3ae778
* Sun Sep 03 2006 Konstantin Ryabitsev <icon@fedoraproject.org> - 0.5.0-1.1
3ae778
- FC6 rebuild
3ae778
676ade
* Mon Feb  6 2006 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.5.0-1
676ade
- 0.5.0.
676ade
d00f09
* Thu Jun  2 2005 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.4.0-2
d00f09
- Exclude 64-bit archs (#158705).
d00f09
b80176
* Sun May 22 2005 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.4.0-1
b80176
- 0.4.0, most patches applied upstream.
b80176
- Make install layout FHS compliant.
b80176
- Make compiled in default content dir point to the right place.
b80176
bd4e58
* Fri Mar 18 2005 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.3-4
bd4e58
- Fix FC4 build.
bd4e58
054833
* Sat Dec 11 2004 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.3-3
054833
- Fix build on FC3.
054833
- Improve comment in desktop entry file, add Finnish translation.
054833
cvsextras cd626d
* Thu Jun 17 2004 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.3-0.fdr.2
cvsextras cd626d
- Add upstream patch to fix all blue comms screen (bug 1751, upstream bug 363).
cvsextras cd626d
cvsextras 8f0322
* Sat Sep  6 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.3-0.fdr.1
cvsextras 8f0322
- Update to 0.3.
cvsextras 8f0322
- Update description.
cvsextras 8f0322
- Don't use libexecdir, it's not FHS compliant.
cvsextras 8f0322
cvsextras 8f0322
* Mon Jul  7 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.2-0.fdr.3
cvsextras 8f0322
- Use desktop-file-utils.
cvsextras 8f0322
- Spec cleanups.
cvsextras 8f0322
cvsextras 8f0322
* Sat Apr 26 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.2-0.fdr.2
cvsextras 8f0322
- Add missing Epochs.
cvsextras 8f0322
- Save .spec in UTF-8.
cvsextras 8f0322
cvsextras 8f0322
* Sun Mar 23 2003 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0:0.2-0.fdr.1
cvsextras 8f0322
- First Fedora release.
cvsextras 8f0322
- Update to 0.2.
cvsextras 8f0322
- Separate content packages.
cvsextras 8f0322
- Add patch for system default and per-user configurations.
cvsextras 8f0322
- Move towards FHS compliant installation layout.
cvsextras 8f0322
- Include icon for desktop entry.
cvsextras 8f0322
cvsextras 8f0322
* Sun Dec  1 2002 Ville Skyttä <ville.skytta at="" iki.fi=""> - 0.1-1cr
cvsextras 8f0322
- Initial build.