diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b4d8ceb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +WFUT-1.1.0.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index d0d33c6..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Not updated or needed these days. ember uses libwfut instead and that's the only world forge client we have. diff --git a/sources b/sources new file mode 100644 index 0000000..65d068f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +72bed202a37f2aaee536a6264a4957f2 WFUT-1.1.0.tar.gz diff --git a/wfut.desktop b/wfut.desktop new file mode 100644 index 0000000..03e6a39 --- /dev/null +++ b/wfut.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=wfut +GenericName=WorldForge media updater +Comment=Update the WorldForge media +Exec=wfut +Icon=wfut.png +Terminal=false +StartupNotify=false +Type=Application +Categories=Application;Game; +Version=1.0 diff --git a/wfut.png b/wfut.png new file mode 100644 index 0000000..947b11a Binary files /dev/null and b/wfut.png differ diff --git a/wfut.spec b/wfut.spec new file mode 100644 index 0000000..be17744 --- /dev/null +++ b/wfut.spec @@ -0,0 +1,117 @@ +Name: wfut +Version: 1.1.0 +Release: 8%{?dist} +Summary: Software updater tool for WorldForge applications + +Group: Development/Libraries +License: GPL+ +URL: http://www.worldforge.org +Source0: http://downloads.sourceforge.net/worldforge/WFUT-1.1.0.tar.gz +Source1: wfut.desktop +Source2: wfut.png +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gcc-java desktop-file-utils + +%description +Software updater tool for WorldForge applications. + + +%prep +%setup -q -n WFUT-%{version} +sed -i -e 's/gcj -c/gcj $(RPM_OPT_FLAGS) -c/' src/Makefile.in + + +%build +# This should be compiling to native code now, making the JAR +# override unnecessary. Leave it in for now as a reminder of +# how to use it with gcc's jar program. +JAR=fastjar +export JAR +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +# The start script checks for a native binary, and if not found, will +# try to use java + jar file instead. But we are only building the +# native binary, so don't bother with this check. +mv $RPM_BUILD_ROOT%{_bindir}/wfut-bin $RPM_BUILD_ROOT%{_bindir}/wfut + +desktop-file-install --vendor fedora \ + --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + %{SOURCE1} + +mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps +install -p %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + +%postun +touch --no-create %{_datadir}/icons/hicolor || : +if [ -x %{_bindir}/gtk-update-icon-cache ]; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : +fi + + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README TODO +%{_bindir}/%{name} +%{_datadir}/applications/*.desktop +%{_datadir}/icons/hicolor/48x48/apps/%{name}.png + + +%changelog +* Mon Jul 27 2009 Fedora Release Engineering - 1.1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 1.1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sun Feb 08 2009 Alex Lancaster - 1.1.0-6 +- Rebuild for new GCC 4.4 to fix broken deps + +* Thu Jan 31 2008 Wart 1.1.0-5 +- Rebuild for new libgcj + +* Wed Aug 22 2007 Wart 1.1.0-4 +- License tag clarification +- Better download URL + +* Wed Mar 28 2007 Wart 1.1.0-3 +- Enable use of RPM_OPT_FLAGS + +* Thu Mar 1 2007 Wart 1.1.0-2 +- Rebuild for new libgcj .so version + +* Wed Feb 7 2007 Wart 1.1.0-1 +- Update to 1.1.0 +- Upstream moved sources to SourceForge + +* Thu Aug 17 2006 Wart 1.0-3 +- Remove unnecessary startup script. +- Added .desktop file + +* Wed Aug 16 2006 Wart 1.0-2 +- Removed BR: autoxxx which aren't needed anymore. + +* Wed Aug 16 2006 Wart 1.0-1 +- Update to latest WFUT public tarball. + +* Tue Aug 15 2006 Wart 0.0.0-2 +- Updated spec for FC5 and newer. This no longer builds + the WFUT.jar archive, but uses a native binary instead. + +* Tue Jun 20 2006 Wart 0.0.0-1 +- Initial package for Fedora