Michael Thomas d7aa20
%define waddir  %{_datadir}/doom
Michael Thomas d7aa20
Michael Thomas f2bf47
Name:           deutex
Michael Thomas f2bf47
Version:        4.4.0
Michael Thomas d7aa20
Release:        4%{?dist}
Michael Thomas f2bf47
Summary:        DOOM wad file manipulator
Michael Thomas f2bf47
Michael Thomas f2bf47
Group:          Amusements/Graphics
Michael Thomas f2bf47
License:        GPL-Compatible
Michael Thomas f2bf47
URL:            http://www.teaser.fr/~amajorel/deutex/
Michael Thomas f2bf47
Source0:        http://www.teaser.fr/~amajorel/deutex/deutex-4.4.0.tar.gz
Michael Thomas f2bf47
Patch0:         deutex-4.4.0-build.patch
Michael Thomas f2bf47
Patch1:         deutex-4.4.0-64bit.patch
Michael Thomas 75e842
Patch2:         deutex-4.4.0-freedoom.patch
Michael Thomas d7aa20
Patch3:         deutex-4.4.0-waddir.patch
Michael Thomas f2bf47
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Michael Thomas f2bf47
Michael Thomas f2bf47
%description
Michael Thomas f2bf47
DeuTex is a wad composer for Doom, Heretic, Hexen and Strife. It can be
Michael Thomas f2bf47
used to extract the lumps of a wad and save them as individual files.
Michael Thomas f2bf47
Conversely, it can also build a wad from separate files. When extracting
Michael Thomas f2bf47
a lump to a file, it does not just copy the raw data, it converts it to
Michael Thomas f2bf47
an appropriate format (such as PPM for graphics, Sun audio for samples,
Michael Thomas f2bf47
etc.). Conversely, when it reads files for inclusion in pwads, it does
Michael Thomas f2bf47
the necessary conversions (for example, from PPM to Doom picture
Michael Thomas f2bf47
format). In addition, DeuTex has functions such as merging wads, etc. If
Michael Thomas f2bf47
you're doing any wad hacking beyond level editing, DeuTex is a must.
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%prep
Michael Thomas f2bf47
%setup -q
Michael Thomas f2bf47
%patch0 -p1
Michael Thomas f2bf47
%patch1 -p1
Michael Thomas 75e842
%patch2 -p1
Michael Thomas d7aa20
%patch3 -p1
Michael Thomas f2bf47
# Minor permissions cleanup for rpmlint.
Michael Thomas f2bf47
chmod a-x src/picture.c
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%build
Michael Thomas d7aa20
make CFLAGS="$RPM_OPT_FLAGS -DDOOMDIR=\"\\\"%{waddir}\\\"\"" %{?_smp_mflags}
Michael Thomas f2bf47
iconv --from=ISO-8859-1 --to=UTF-8 deutex.6 > deutex.6.new
Michael Thomas f2bf47
mv deutex.6.new deutex.6
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%install
Michael Thomas f2bf47
rm -rf $RPM_BUILD_ROOT
Michael Thomas f2bf47
make install DESTDIR=$RPM_BUILD_ROOT
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%clean
Michael Thomas f2bf47
rm -rf $RPM_BUILD_ROOT
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%files
Michael Thomas f2bf47
%defattr(-,root,root,-)
Michael Thomas f2bf47
%{_bindir}/deutex
Michael Thomas f2bf47
%{_bindir}/deusf
Michael Thomas f2bf47
%{_mandir}/man6/*
Michael Thomas f2bf47
%doc COPYING COPYING.LIB LICENSE CHANGES README
Michael Thomas f2bf47
%doc docsrc/changes.html docsrc/hackers_guide.html
Michael Thomas f2bf47
Michael Thomas f2bf47
Michael Thomas f2bf47
%changelog
Michael Thomas d7aa20
* Wed Apr 11 2007 Wart <wart at="" kobold.org=""> 4.4.0-4
Michael Thomas d7aa20
- Set default wad directory to the fedora default
Michael Thomas d7aa20
Michael Thomas 13c21b
* Sun Aug 27 2006 Wart <wart at="" kobold.org=""> 4.4.0-3
Michael Thomas 13c21b
- Rebuild for FC-6
Michael Thomas 13c21b
Michael Thomas 75e842
* Sun Apr 20 2006 Wart <wart at="" kobold.org=""> 4.4.0-2
Michael Thomas 75e842
- Add freedoom to the list of known iwads.
Michael Thomas 75e842
Michael Thomas f2bf47
* Sun Mar 19 2006 Wart <wart at="" kobold.org=""> 4.4.0-1
Michael Thomas f2bf47
- Initial spec file.