User:Wart

From FedoraProject

(Redirected from MichaelThomas)
Jump to: navigation, search

Contents

Michael Thomas

I'm a Tcl developer who wants to see more of the popular Tcl extensions included in Fedora, as well as more high quality Games . As a Fedora Sponsor, I am willing to help other Tcl'ers and gamers through the Fedora sponsorship process. I have written Tcl packaging guidelines and maintain the packaging for a large number of games and Tcl extensions for both Fedora and EPEL. You can see the full list of packages that I maintain at:

https://admin.fedoraproject.org/pkgdb/users/packages/wart?acls=owner

An incomplete list grouped by category:

Tcl Packages

Games

WorldForge

Personal Fedora bookmarks

Spec file tricks for copy-and-paste

iconv --from=ISO-8859-1 --to=UTF-8 file.txt > file.txt.new
sed -i 's/\r//' file.txt
BuildRequires: ImageMagick
...
convert -transparent black njamicon.ico %{name}.png
touch -r configure.ac configure.ac.stamp
%patch0 -p0
touch -r configure.ac.stamp configure.ac
%pre
user_uid=<code>id -u crossfire 2>/dev/null</code>
if [ x"$user_uid" = x ]  ; then
%{_sbindir}/fedora-useradd  27 -r -s /sbin/nologin \
-d %{_datadir}/%{name} -M -c 'Crossfire Server' \
crossfire >/dev/null || :
fi

%post
/sbin/chkconfig --add crossfire

%preun
if [ "$1" -le "0" ] ; then
/sbin/service crossfire stop > /dev/null 2>&1
/sbin/chkconfig --del crossfire
fi

%postun
if [ "$1" -ge "1" ] ; then
/sbin/service crossfire condrestart >/dev/null 2>&1
fi
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitelib: %define tcl_sitelib %{_datadir}/tcl%(echo 'puts $tcl_version' | tclsh)}

[[MailTo(wart AT kobold DOT org)]