%define waddir %{_datadir}/doom Name: deutex Version: 4.4.0 Release: 15%{?dist} Summary: DOOM wad file manipulator Group: Amusements/Graphics # All files LGPLv2+ or GPLv2+ except ./src/lzw.c which is MIT License: GPLv2+ and MIT URL: http://www.teaser.fr/~amajorel/deutex/ Source0: http://www.teaser.fr/~amajorel/deutex/deutex-4.4.0.tar.gz Patch0: deutex-4.4.0-build.patch Patch1: deutex-4.4.0-64bit.patch Patch2: deutex-4.4.0-freedoom.patch Patch3: deutex-4.4.0-waddir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description DeuTex is a wad composer for Doom, Heretic, Hexen and Strife. It can be used to extract the lumps of a wad and save them as individual files. Conversely, it can also build a wad from separate files. When extracting a lump to a file, it does not just copy the raw data, it converts it to an appropriate format (such as PPM for graphics, Sun audio for samples, etc.). Conversely, when it reads files for inclusion in pwads, it does the necessary conversions (for example, from PPM to Doom picture format). In addition, DeuTex has functions such as merging wads, etc. If you're doing any wad hacking beyond level editing, DeuTex is a must. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 # Minor permissions cleanup for rpmlint. chmod a-x src/picture.c %build make CFLAGS="$RPM_OPT_FLAGS -DDOOMDIR=\"\\\"%{waddir}\\\"\"" %{?_smp_mflags} iconv --from=ISO-8859-1 --to=UTF-8 deutex.6 > deutex.6.new mv deutex.6.new deutex.6 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/deutex %{_bindir}/deusf %{_mandir}/man6/* %doc COPYING COPYING.LIB LICENSE CHANGES README %doc docsrc/changes.html docsrc/hackers_guide.html %changelog * Sat Aug 16 2014 Fedora Release Engineering - 4.4.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 4.4.0-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 4.4.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 4.4.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 4.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 4.4.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 4.4.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jul 24 2009 Fedora Release Engineering - 4.4.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 4.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 8 2008 Wart 4.4.0-6 - Rebuild for gcc 3.4 * Sun Aug 19 2007 Wart 4.4.0-5 - License tag clarification * Wed Apr 11 2007 Wart 4.4.0-4 - Set default wad directory to the fedora default * Sun Aug 27 2006 Wart 4.4.0-3 - Rebuild for FC-6 * Sun Apr 20 2006 Wart 4.4.0-2 - Add freedoom to the list of known iwads. * Sun Mar 19 2006 Wart 4.4.0-1 - Initial spec file.