Compare commits

..

3 commits

Author SHA1 Message Date
Fedora Release Engineering
991e9dbf1e dist-git conversion 2010-07-29 16:18:21 +00:00
Bill Nottingham
e526f57468 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:12:05 +00:00
Jesse Keating
baa73d4b0b Initialize branch F-10 for yadex 2008-11-07 04:08:02 +00:00
12 changed files with 4513 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
yadex-1.7.0.tar.gz

2825
Yadex_170_ALL.diff Normal file

File diff suppressed because it is too large Load diff

1223
Yadex_170_Hexen.diff Normal file

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
Dead upstream, FTBFS. Use to it's successor, Eureka

1
sources Normal file
View file

@ -0,0 +1 @@
d341abe066525394082edfd520af86ae yadex-1.7.0.tar.gz

161
yadex-1.7.0-64bit.patch Normal file
View file

@ -0,0 +1,161 @@
diff -Naur yadex-1.7.0/GNUmakefile yadex-1.7.0.new/GNUmakefile
--- yadex-1.7.0/GNUmakefile 2006-03-16 20:33:36.000000000 -0800
+++ yadex-1.7.0.new/GNUmakefile 2006-03-16 18:37:50.000000000 -0800
@@ -53,6 +53,7 @@
# Which OS ?
OS := $(shell uname -s | tr A-Z a-z)
+ARCH := $(shell uname -i | tr A-Z a-z)
# Where your X11 libraries and headers reside.
# Current rule:
@@ -67,7 +68,11 @@
X11LIBDIR = /usr/openwin/lib
X11INCLUDEDIR = /usr/openwin/include
else
- X11LIBDIR = /usr/X11R6/lib
+ ifeq ($(findstring $(ARCH), x86_64), $(ARCH))
+ X11LIBDIR = /usr/X11R6/lib64
+ else
+ X11LIBDIR = /usr/X11R6/lib
+ endif
X11INCLUDEDIR = /usr/X11R6/include
endif
endif
diff -Naur yadex-1.7.0/src/levels.cc yadex-1.7.0.new/src/levels.cc
--- yadex-1.7.0/src/levels.cc 2003-03-28 04:37:32.000000000 -0800
+++ yadex-1.7.0.new/src/levels.cc 2006-03-16 20:38:01.000000000 -0800
@@ -1387,7 +1387,7 @@
}
NumWTexture = (int) val + 1;
/* read in the offsets for texture1 names */
- offsets = (i32 *) GetMemory ((long) NumWTexture * 4);
+ offsets = (i32 *) GetMemory ((long) NumWTexture * (sizeof(i32)));
wf->read_i32 (offsets + 1, NumWTexture - 1);
if (wf->error ())
{
@@ -1445,7 +1445,7 @@
}
NumWTexture = (int) val + 1;
/* read in the offsets for texture1 names */
- offsets = (i32 *) GetMemory ((long) NumWTexture * 4);
+ offsets = (i32 *) GetMemory ((long) NumWTexture * sizeof(i32));
wf->read_i32 (offsets + 1, NumWTexture - 1);
{
// FIXME
@@ -1489,7 +1489,7 @@
// FIXME
}
/* read in the offsets for texture2 names */
- offsets = (i32 *) GetMemory ((long) val * 4);
+ offsets = (i32 *) GetMemory ((long) val * sizeof(i32));
wf->read_i32 (offsets, val);
if (wf->error ())
{
diff -Naur yadex-1.7.0/src/pic2img.cc yadex-1.7.0.new/src/pic2img.cc
--- yadex-1.7.0/src/pic2img.cc 2003-03-28 04:37:32.000000000 -0800
+++ yadex-1.7.0.new/src/pic2img.cc 2006-03-16 20:30:40.000000000 -0800
@@ -192,7 +192,7 @@
ColumnData = (u8 *) GetMemory (TEX_COLUMNBUFFERSIZE);
/* FIXME DOS and pic_width_ > 16000 */
-NeededOffsets = (i32 *) GetMemory ((long) pic_width_ * 4);
+NeededOffsets = (i32 *) GetMemory ((long) pic_width_ * (sizeof(i32)));
if (long_offsets)
dir->wadfile->read_i32 (NeededOffsets, pic_width_);
diff -Naur yadex-1.7.0/src/r_images.cc yadex-1.7.0.new/src/r_images.cc
--- yadex-1.7.0/src/r_images.cc 2006-03-16 20:33:12.000000000 -0800
+++ yadex-1.7.0.new/src/r_images.cc 2006-03-16 20:39:17.000000000 -0800
@@ -182,7 +182,7 @@
dir->wadfile->seek (dir->dir.start);
dir->wadfile->read_i32 (&numtex);
/* read in the offsets for texture1 names and info. */
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
dir->wadfile->read_i32 (offsets, numtex);
for (n = 0; n < numtex && !texofs; n++)
{
@@ -205,7 +205,7 @@
dir->wadfile->seek (dir->dir.start);
dir->wadfile->read_i32 (&numtex);
/* read in the offsets for texture1 names and info. */
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
dir->wadfile->read_i32 (offsets, numtex);
for (n = 0; n < numtex && !texofs; n++)
{
@@ -225,7 +225,7 @@
dir->wadfile->seek (dir->dir.start);
dir->wadfile->read_i32 (&numtex);
/* read in the offsets for texture2 names */
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
dir->wadfile->read_i32 (offsets, numtex);
for (n = 0; n < numtex && !texofs; n++)
{
diff -Naur yadex-1.7.0/src/textures.cc yadex-1.7.0.new/src/textures.cc
--- yadex-1.7.0/src/textures.cc 2003-04-24 13:50:36.000000000 -0700
+++ yadex-1.7.0.new/src/textures.cc 2006-03-16 20:38:44.000000000 -0800
@@ -177,7 +177,7 @@
goto textures_done;
}
// Read in the offsets for texture1 names and info
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
wf->read_i32 (offsets, numtex);
if (wf->error ())
{
@@ -233,7 +233,7 @@
goto texture1_done;
}
// Read in the offsets for texture1 names and info
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
wf->read_i32 (offsets, numtex);
if (wf->error ())
{
@@ -286,7 +286,7 @@
goto texture2_done;
}
// Read in the offsets for TEXTURE2 names
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
wf->read_i32 (offsets, numtex);
if (wf->error ())
{
@@ -514,7 +514,7 @@
dir->wadfile->seek (dir->dir.start);
dir->wadfile->read_i32 (&numtex);
// Read in the offsets for texture1 names and info
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
dir->wadfile->read_i32 (offsets, numtex);
for (n = 0; n < numtex && !texofs; n++)
{
@@ -534,7 +534,7 @@
dir->wadfile->seek (dir->dir.start);
dir->wadfile->read_i32 (&numtex);
// Read in the offsets for texture2 names
- offsets = (i32 *) GetMemory ((long) numtex * 4);
+ offsets = (i32 *) GetMemory ((long) numtex * sizeof(i32));
dir->wadfile->read_i32 (offsets);
for (n = 0; n < numtex && !texofs; n++)
{
diff -Naur yadex-1.7.0/src/yadex.h yadex-1.7.0.new/src/yadex.h
--- yadex-1.7.0/src/yadex.h 2006-03-16 20:33:12.000000000 -0800
+++ yadex-1.7.0.new/src/yadex.h 2006-03-16 20:29:15.000000000 -0800
@@ -98,11 +98,11 @@
#define F_I16_D "hd"
#define F_I16_H "hX"
-typedef unsigned long u32;
+typedef unsigned int u32;
#define F_U32_D "lu"
#define F_U32_H "lX"
-typedef signed long i32;
+typedef signed int i32;
#define F_I32_D "ld"
#define F_I32_H "lX"

55
yadex-1.7.0-datadir.patch Normal file
View file

@ -0,0 +1,55 @@
diff -Naur yadex-1.7.0/configure yadex-1.7.0.new/configure
--- yadex-1.7.0/configure 2006-03-16 18:49:20.000000000 -0800
+++ yadex-1.7.0.new/configure 2006-03-16 16:36:21.000000000 -0800
@@ -408,16 +408,16 @@
ETCDIR=/etc/$APPNAME/%v
ETCDIRNV=/etc/$APPNAME
MANDIR=/usr/share/man
- SHAREDIR=/usr/share/games/$APPNAME/%v
- SHAREDIRNV=/usr/share/games/$APPNAME
+ SHAREDIR=/usr/share/$APPNAME/%v
+ SHAREDIRNV=/usr/share/$APPNAME
elif expr "$PREFIX" : '//*usr//*local/*$' >/dev/null
then
BINDIR=/usr/local/bin # FHS-ly correct is /usr/local/games
ETCDIR=/etc/$APPNAME/%v
ETCDIRNV=/etc/$APPNAME
MANDIR=/usr/local/man
- SHAREDIR=/usr/local/share/games/$APPNAME/%v
- SHAREDIRNV=/usr/local/share/games/$APPNAME
+ SHAREDIR=/usr/local/share/$APPNAME/%v
+ SHAREDIRNV=/usr/local/share/$APPNAME
elif expr "$PREFIX" : '//*opt/*$' >/dev/null
then
echo '/opt ? Surely you mean /opt/something, Mr. Feynman !' 1>&2
diff -Naur yadex-1.7.0/yadex.cfg yadex-1.7.0.new/yadex.cfg
--- yadex-1.7.0/yadex.cfg 2006-03-16 18:49:20.000000000 -0800
+++ yadex-1.7.0.new/yadex.cfg 2006-03-16 18:49:43.000000000 -0800
@@ -20,16 +20,17 @@
# 9 doompr Doom press release pre-beta (/pub/idgames/historic/doomprbt.zip)
# 10 strife10 Strife 1.0 (demo or commercial)
- iwad1 = /usr/local/share/games/doom/doom.wad
- iwad2 = /usr/local/share/games/doom2/doom2.wad
- iwad3 = /usr/local/share/games/heretic/heretic.wad
- iwad4 = /usr/local/share/games/hexen/hexen.wad
- iwad5 = /usr/local/share/games/strife/strife1.wad
- iwad6 = /usr/local/share/games/doom02/doom.wad
- iwad7 = /usr/local/share/games/doom04/doom.wad
- iwad8 = /usr/local/share/games/doom05/doom.wad
- iwad9 = /usr/local/share/games/doompr/doompres.wad
- iwad10 = /usr/local/share/games/strife10/strife1.wad
+ iwad1 = /usr/share/doom/doom.wad
+# iwad2 = /usr/share/doom/doom2.wad
+ iwad2 = /usr/share/doom/freedoom.wad
+ iwad3 = /usr/share/doom/heretic.wad
+ iwad4 = /usr/share/doom/hexen.wad
+ iwad5 = /usr/share/doom/strife1.wad
+ iwad6 = /usr/share/doom/doom.wad
+ iwad7 = /usr/share/doom/doom.wad
+ iwad8 = /usr/share/doom/doom.wad
+ iwad9 = /usr/share/doom/doompres.wad
+ iwad10 = /usr/share/doom/strife1.wad
# Name of the patch wads you want to load. None by default.

36
yadex-1.7.0-destdir.patch Normal file
View file

@ -0,0 +1,36 @@
diff -Naur yadex-1.7.0/GNUmakefile yadex-1.7.0.new/GNUmakefile
--- yadex-1.7.0/GNUmakefile 2006-03-16 16:08:10.000000000 -0800
+++ yadex-1.7.0.new/GNUmakefile 2006-03-16 16:11:32.000000000 -0800
@@ -392,19 +392,19 @@
.PHONY: install
install: $(OBJDIR)/install
- @scripts/mkinstalldirs $(BINDIR)
- @scripts/mkinstalldirs $(ETCDIR)
- @scripts/mkinstalldirs $(MANDIR)
- @scripts/mkinstalldirs $(MANDIR)/man6
- @scripts/mkinstalldirs $(SHAREDIR)
- $(OBJDIR)/install -m 755 $(OBJDIR)/yadex $(BINDIR)/yadex-$(VERSION)
- rm -f $(BINDIR)/yadex
- ln -s yadex-$(VERSION) $(BINDIR)/yadex
- $(OBJDIR)/install -m 644 doc/yadex.6 $(MANDIR)/man6/yadex-$(VERSION).6
- rm -f $(MANDIR)/man6/yadex.6
- ln -s yadex-$(VERSION).6 $(MANDIR)/man6/yadex.6
- $(OBJDIR)/install -m 644 -d $(SHAREDIR) $(YGD)
- $(OBJDIR)/install -m 644 -d $(ETCDIR) yadex.cfg
+ @scripts/mkinstalldirs $(DESTDIR)$(BINDIR)
+ @scripts/mkinstalldirs $(DESTDIR)$(ETCDIR)
+ @scripts/mkinstalldirs $(DESTDIR)$(MANDIR)
+ @scripts/mkinstalldirs $(DESTDIR)$(MANDIR)/man6
+ @scripts/mkinstalldirs $(DESTDIR)$(SHAREDIR)
+ $(OBJDIR)/install -m 755 $(OBJDIR)/yadex $(DESTDIR)$(BINDIR)/yadex-$(VERSION)
+ rm -f $(DESTDIR)$(BINDIR)/yadex
+ ln -s yadex-$(VERSION) $(DESTDIR)$(BINDIR)/yadex
+ $(OBJDIR)/install -m 644 doc/yadex.6 $(DESTDIR)$(MANDIR)/man6/yadex-$(VERSION).6
+ rm -f $(DESTDIR)$(MANDIR)/man6/yadex.6
+ ln -s yadex-$(VERSION).6 $(DESTDIR)$(MANDIR)/man6/yadex.6
+ $(OBJDIR)/install -m 644 -d $(DESTDIR)$(SHAREDIR) $(YGD)
+ $(OBJDIR)/install -m 644 -d $(DESTDIR)$(ETCDIR) yadex.cfg
@echo "---------------------------------------------------------------"
@echo " Yadex is now installed."
@echo

69
yadex-1.7.0-gcc41.patch Normal file
View file

@ -0,0 +1,69 @@
--- yadex-1.7.0/src/wadlist.cc~ 2006-03-17 11:53:10.000000000 +0100
+++ yadex-1.7.0/src/wadlist.cc 2006-03-17 11:57:06.000000000 +0100
@@ -52,6 +52,7 @@
Wad_list_priv::Wad_list_priv ()
{
+ iter = list.begin ();
rewound = true;
}
@@ -80,6 +81,7 @@
*/
void Wad_list::rewind () const
{
+ priv->iter = priv->list.begin ();
priv->rewound = true;
}
@@ -98,10 +100,7 @@
bool Wad_list::get (Wad_file *& wf)
{
if (priv->rewound)
- {
- priv->iter = priv->list.begin ();
priv->rewound = false;
- }
else
++priv->iter;
@@ -119,10 +118,7 @@
bool Wad_list::get (const Wad_file *& wf) const
{
if (priv->rewound)
- {
- priv->iter = priv->list.begin ();
priv->rewound = false;
- }
else
++priv->iter;
@@ -157,26 +153,12 @@
*/
void Wad_list::del ()
{
- list_t::iterator i;
-
- if (priv->rewound)
- {
- i = priv->list.begin ();
- }
- else
- {
- i = priv->iter;
- }
- if (i == priv->list.end ())
+ if (priv->iter == priv->list.end ())
{
nf_bug ("Wad_list::del: attempt to delete last item");
return;
}
- priv->iter = priv->list.erase (i);
+ priv->iter = priv->list.erase (priv->iter);
if (priv->iter == priv->list.begin ())
- {
- priv->iter = 0; // Catch bugs
priv->rewound = true;
- }
}
-

11
yadex.desktop Normal file
View file

@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Name=Yadex
GenericName=Doom level editor
Comment=Doom level editor
Exec=yadex -i2 /usr/share/doom/freedoom.wad
Icon=yadex.png
Terminal=true
Type=Application
Categories=Graphics;GUIDesigner;
Version=1.0

BIN
yadex.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

131
yadex.spec Normal file
View file

@ -0,0 +1,131 @@
Name: yadex
Version: 1.7.0
Release: 10%{?dist}
Summary: Doom level editor
Group: Amusements/Graphics
License: GPLv2+
URL: http://www.teaser.fr/~amajorel/yadex
Source0: http://www.teaser.fr/~amajorel/yadex/yadex-1.7.0.tar.gz
Source1: yadex.desktop
Source2: yadex.png
Patch0: http://glbsp.sourceforge.net/yadex/Yadex_170_ALL.diff
Patch1: http://glbsp.sourceforge.net/yadex/Yadex_170_Hexen.diff
Patch2: yadex-1.7.0-64bit.patch
Patch3: yadex-1.7.0-destdir.patch
Patch4: yadex-1.7.0-datadir.patch
Patch5: yadex-1.7.0-gcc41.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: desktop-file-utils
BuildRequires: libX11-devel
# Yadex needs an iwad to run. freedoom provides a free iwad that we can use.
Requires: freedoom
%description
Yadex is a Doom level (wad) editor for Unix systems running X, including Linux.
It supports Doom alpha, Doom beta, Doom, Ultimate Doom, Final Doom, Doom II,
Heretic and also, in a more or less limited way, Hexen and Strife.
Yadex is descended from DEU 5.21. Therefore, as you might expect, it's a rather
low-level editor that requires you to take care of a lot of detail but on the
flip side allows you to control very precisely what you are doing. In addition,
it has many advanced functions that DEU didn't have, to make certain
tedious tasks easy.
%prep
%setup -q
%patch0 -p1
# Omitted. Patch fails to apply. Used for Hexen maps only. Needs investigation.
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
# Don't use %%configure because this is not an autotools-generated
# configure script and will choke on some of the default configure switches.
./configure --prefix=%{_prefix}
make CXXFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# Remove the duplicate man pages
rm -f $RPM_BUILD_ROOT%{_mandir}/man6/%{name}*
iconv --from=ISO-8859-1 --to=UTF-8 docsrc/%{name}.6 > docsrc/%{name}.6.new
install -p -m644 docsrc/%{name}.6.new $RPM_BUILD_ROOT/%{_mandir}/man6/
# .desktop file integration
desktop-file-install --vendor fedora \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
%{SOURCE1}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/
install -p -m 644 %{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,-)
%{_bindir}/%{name}
%{_bindir}/%{name}-%{version}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/%{version}
%config(noreplace) %{_sysconfdir}/%{name}/%{version}/%{name}.cfg
%{_datadir}/%{name}
%{_mandir}/man6/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/48x48/apps/yadex.png
%doc COPYING COPYING.LIB doc/*.html docsrc/*.png
%changelog
* Fri Feb 8 2008 Wart <wart at kobold.org> 1.7.0-10
- Rebuild for gcc 4.3
* Fri Sep 7 2007 Wart <wart at kobold.org> 1.7.0-9
- No longer BuildRequires: gawk due to buildroot changes
* Tue Aug 21 2007 Wart <wart at kobold.org> 1.7.0-8
- License tag clarification
- Add BuildRequires: gawk due to changes in the buildroot
* Sat Aug 11 2007 Wart <wart at kobold.org> 1.7.0-7
- Clean up .desktop file version and categories
* Tue Oct 17 2006 Wart <wart at kobold.org> 1.7.0-6
- Own an extra directory
* Sun Aug 27 2006 Wart <wart at kobold.org> 1.7.0-5
- Rebuild for FC-6
* Mon Apr 10 2006 Wart <wart at kobold.org> 1.7.0-4
- Update for modular x.org
* Fri Mar 17 2006 Wart <wart at kobold.org> 1.7.0-3
- Added patch for gcc 4.1
* Thu Mar 16 2006 Wart <wart at kobold.org> 1.7.0-2
- Added .desktop file
* Thu Mar 16 2006 Wart <wart at kobold.org> 1.7.0-1
- Initial submission to Fedora Extras