diff --git a/README.md b/README.md index e1b202d..a38ac28 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # icewm +IceWM is a window manager for the X Window System. + diff --git a/icewm-1.3.7-buildfix-deprecated.patch b/icewm-1.3.7-buildfix-deprecated.patch new file mode 100644 index 0000000..38cd475 --- /dev/null +++ b/icewm-1.3.7-buildfix-deprecated.patch @@ -0,0 +1,14 @@ +--- icewm-1.3.7.orig/src/base.h ++++ icewm-1.3.7/src/base.h +@@ -2,9 +2,9 @@ + #define __BASE_H + + #if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3 +-#define deprecated __attribute__((deprecated)) ++#define _ICEWM_deprecated __attribute__((deprecated)) + #else +-#define deprecated ++#define _ICEWM_deprecated + #endif + + /*** Atomar Data Types ********************************************************/ \ No newline at end of file diff --git a/icewm-1.3.7-gcc-4.7.patch b/icewm-1.3.7-gcc-4.7.patch new file mode 100644 index 0000000..ea57b1b --- /dev/null +++ b/icewm-1.3.7-gcc-4.7.patch @@ -0,0 +1,10 @@ +--- icewm-1.3.7.orig/src/yarray.h 2010-10-31 14:09:36.000000000 +0000 ++++ icewm-1.3.7/src/yarray.h 2012-05-21 01:46:52.970218411 +0000 +@@ -152,7 +152,7 @@ + } + + virtual void remove(const typename YArray::SizeType index) { +- if (index < YArray::getCount()) delete getItem(index); ++ if (index < YArray::getCount()) delete this->getItem(index); + YArray::remove(index); + } \ No newline at end of file diff --git a/icewm.spec b/icewm.spec new file mode 100644 index 0000000..17bd628 --- /dev/null +++ b/icewm.spec @@ -0,0 +1,72 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: icewm +Version: 1.3.8 +Release: 1mamba +Summary: A window manager for the X Window System +Group: System/X11 +Vendor: openmamba +Distribution: openmamba +Packager: Filippo Bedendo Bordon +URL: http://www.icewm.org/ +Source: http://downloads.sourceforge.net/project/icewm/icewm-%{majver}/%{version}/%{name}-%{version}.tar.gz +Patch0: icewm-1.3.7-buildfix-deprecated.patch +Patch1: icewm-1.3.7-gcc-4.7.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libstdc++6-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXft-devel +BuildRequires: libXinerama-devel +BuildRequires: libXrandr-devel +BuildRequires: libXrender-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +IceWM is a window manager for the X Window System. + +%prep +%setup -q +#%patch0 -p1 +#%patch1 -p1 + +%build +%configure +%make \ + LFLAGS="-lfontconfig" + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/%{name}/* +%doc AUTHORS COPYING +#BUGS CHANGES COPYING README README.wm-session TODO + +%changelog +* Tue Nov 19 2013 Automatic Build System 1.3.8-1mamba +- automatic version update by autodist + +* Mon Mar 04 2013 Silvan Calarco 1.3.7-2mamba +- specfile fixes +- added gcc 4.7 plus another ftbfs patches + +* Wed Nov 16 2011 Filippo Bedendo Bordon 1.3.7-1mamba +- package created by autospec