]> git.pld-linux.org Git - packages/AfterStep.git/commitdiff
- updated to 2.2.12 auto/th/AfterStep-2.2.12-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 23 Dec 2023 07:10:54 +0000 (08:10 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 23 Dec 2023 07:10:54 +0000 (08:10 +0100)
AfterStep-ac.patch [new file with mode: 0644]
AfterStep-ar.patch [new file with mode: 0644]
AfterStep-inline.patch
AfterStep-libpng-1.5.patch [deleted file]
AfterStep-link.patch
AfterStep-opt.patch
AfterStep.spec

diff --git a/AfterStep-ac.patch b/AfterStep-ac.patch
new file mode 100644 (file)
index 0000000..9bebb3b
--- /dev/null
@@ -0,0 +1,16 @@
+--- afterstep-devel-2.2.12/autoconf/configure.in.orig  2023-12-21 13:59:30.463612638 +0100
++++ afterstep-devel-2.2.12/autoconf/configure.in       2023-12-21 18:10:14.268780022 +0100
+@@ -655,10 +655,10 @@ else
+                       CLEAN_GIOLIB_CFLAGS=
+                       AC_DEFINE(HAVE_GIOLIB,1,GIOLIB v.2.0 or higher is available )
+-                      gio_saved_cflags=$CFLAGS
+-                      export CFLAGS="$CFLAGS $GIOLIB_CFLAGS"
++                      gio_saved_cflags="$CFLAGS"
++                      CFLAGS="$CFLAGS $GIOLIB_CFLAGS"
+                       AC_CHECK_TYPES([GSettings],[],[],[[#include "gio/gio.h"]])
+-                      export CFLAGS=$gio_saved_cflags
++                      CFLAGS="$gio_saved_cflags"
+                       present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
+                       for l in `echo "$GIOLIB_LIBS"`; do
diff --git a/AfterStep-ar.patch b/AfterStep-ar.patch
new file mode 100644 (file)
index 0000000..fb0137c
--- /dev/null
@@ -0,0 +1,33 @@
+--- afterstep-devel-2.2.12/libAfterBase/Makefile.in.orig       2023-12-21 18:11:20.858419275 +0100
++++ afterstep-devel-2.2.12/libAfterBase/Makefile.in    2023-12-21 19:25:37.880940179 +0100
+@@ -58,7 +58,7 @@ CCFLAGS         = @CFLAGS@
+ EXTRA_DEFINES = @DEFINE_XLOCALE@
+ RANLIB                = @RANLIB@
+-AR            = ar clq
++AR            = ar cq
+ CP            = @CP@
+ MV            = @MV@
+ RM            = @RM@
+--- afterstep-devel-2.2.12/libAfterImage/Makefile.in.orig      2023-12-21 19:26:43.370585391 +0100
++++ afterstep-devel-2.2.12/libAfterImage/Makefile.in   2023-12-21 20:35:05.758360850 +0100
+@@ -76,7 +76,7 @@ CCFLAGS         = @CFLAGS@  @MMX_CFLAGS@
+ EXTRA_DEFINES = @DEFINE_XLOCALE@
+ RANLIB                = @RANLIB@
+-AR            = ar clq
++AR            = ar cq
+ CP            = @CP@
+ MV            = @MV@
+ RM            = @RM@
+--- afterstep-devel-2.2.12/autoconf/Makefile.defines.in.orig   2013-05-01 15:34:11.000000000 +0200
++++ afterstep-devel-2.2.12/autoconf/Makefile.defines.in        2023-12-21 20:39:29.353599499 +0100
+@@ -9,7 +9,7 @@ CCFLAGS         = @CFLAGS@
+ EXTRA_DEFINES = 
+ RANLIB                = @RANLIB@
+-AR            = ar clq
++AR            = ar cq
+ CP            = @CP@
+ MV            = @MV@
+ RM            = @RM@
index 3522e22df7b8c615925cfbaa48c0e8c0aee5ba50..fcc5e7d2c1fe57fe9f3c9eb7ca3c37fc84f0866e 100644 (file)
@@ -6,7 +6,7 @@ diff -ur AfterStep-2.2.11/libAfterBase/asvector.c AfterStep-2.2.11.new/libAfterB
  /* finds index of the first element in the vector that is exactly matching specifyed
   * data */
 -inline size_t vector_find_data( ASVector *v, void *data )
-+extern inline size_t vector_find_data( ASVector *v, void *data )
++size_t vector_find_data( ASVector *v, void *data )
  {
      register int i ;
      /* word copying is usually faster then raw memory copying */
@@ -18,69 +18,65 @@ diff -ur AfterStep-2.2.11/libAfterBase/parse.c AfterStep-2.2.11.new/libAfterBase
  static char _as_hex_to_char_table[] = "0123456789ABCDEF";
  
 -inline int
-+extern inline int
++int
  unsigned_int2buffer_end (char *buffer, int buffer_size, unsigned int val)
  {
        int i = buffer_size-1 ; 
-diff -ur AfterStep-2.2.11/libAfterStep/functions.c AfterStep-2.2.11.new/libAfterStep/functions.c
---- AfterStep-2.2.11/libAfterStep/functions.c  2009-12-11 23:38:48.000000000 +0100
-+++ AfterStep-2.2.11.new/libAfterStep/functions.c      2016-11-14 03:04:31.641924138 +0100
-@@ -314,7 +314,7 @@
-     }
+--- afterstep-devel-2.2.12/libAfterStep/functions.c.orig       2023-12-21 21:27:43.791252318 +0100
++++ afterstep-devel-2.2.12/libAfterStep/functions.c    2023-12-22 23:16:30.917822883 +0100
+@@ -307,7 +307,7 @@ void dup_func_data (FunctionData * dst,
+       }
  }
  
--inline FunctionData *
-+extern inline FunctionData *
- create_named_function( int func, char *name)
+-inline FunctionData *create_named_function (int func, char *name)
++FunctionData *create_named_function (int func, char *name)
  {
-     FunctionData *fdata = safecalloc( 1, sizeof(FunctionData) );
-diff -ur AfterStep-2.2.11/libAfterStep/mylook.c AfterStep-2.2.11.new/libAfterStep/mylook.c
---- AfterStep-2.2.11/libAfterStep/mylook.c     2008-01-10 00:23:13.000000000 +0100
-+++ AfterStep-2.2.11.new/libAfterStep/mylook.c 2016-11-14 03:10:59.618805004 +0100
-@@ -861,7 +861,7 @@
-     return NULL;
+       FunctionData *fdata = safecalloc (1, sizeof (FunctionData));
+--- afterstep-devel-2.2.12/libAfterStep/mylook.c.orig  2023-12-21 21:27:43.801252264 +0100
++++ afterstep-devel-2.2.12/libAfterStep/mylook.c       2023-12-22 23:19:08.513635780 +0100
+@@ -843,7 +843,7 @@ MyStyle *mylook_get_style (MyLook * look
+       return NULL;
  }
  
--inline MyDesktopConfig *
-+extern inline MyDesktopConfig *
- mylook_get_desk_config(MyLook *look, long desk)
+-inline MyDesktopConfig *mylook_get_desk_config (MyLook * look, long desk)
++MyDesktopConfig *mylook_get_desk_config (MyLook * look, long desk)
  {
-     if( look )
-@@ -875,7 +875,7 @@
+       if (look) {
+               ASHashData hdata = { 0 };
+@@ -856,7 +856,7 @@ inline MyDesktopConfig *mylook_get_desk_
  }
  
  
--inline MyBackground *
-+extern inline MyBackground *
- mylook_get_desk_back(MyLook *look, long desk)
+-inline MyBackground *mylook_get_desk_back (MyLook * look, long desk)
++MyBackground *mylook_get_desk_back (MyLook * look, long desk)
  {
-       MyBackground *myback = NULL ;
-@@ -902,7 +902,7 @@
+       MyBackground *myback = NULL;
+@@ -888,7 +888,7 @@ inline MyBackground *mylook_get_desk_bac
  }
  
  
--inline MyBackground *
-+extern inline MyBackground *
- mylook_get_back(MyLook *look, char *name)
+-inline MyBackground *mylook_get_back (MyLook * look, char *name)
++MyBackground *mylook_get_back (MyLook * look, char *name)
  {
-     ASHashData hdata = {0};
-diff -ur AfterStep-2.2.11/src/afterstep/misc.c AfterStep-2.2.11.new/src/afterstep/misc.c
---- AfterStep-2.2.11/src/afterstep/misc.c      2005-04-01 18:36:57.000000000 +0200
-+++ AfterStep-2.2.11.new/src/afterstep/misc.c  2016-11-14 03:09:49.125128119 +0100
-@@ -32,14 +32,14 @@
+       ASHashData hdata = { 0 };
+       if (look && name)
+--- afterstep-devel-2.2.12/src/afterstep/misc.c.orig   2023-12-21 21:27:43.814585525 +0100
++++ afterstep-devel-2.2.12/src/afterstep/misc.c        2023-12-22 23:19:34.623494331 +0100
+@@ -32,13 +32,13 @@
  /****************************************************************************/
  /* window management specifics - button ungrabbing convinience functions:   */
  /****************************************************************************/
--inline void
-+extern inline void
- ungrab_window_buttons( Window w )
+-inline void ungrab_window_buttons (Window w)
++void ungrab_window_buttons (Window w)
  {
-       LOCAL_DEBUG_OUT( "w = %lX", w );
-     XUngrabButton (dpy, AnyButton, AnyModifier, w);
+       LOCAL_DEBUG_OUT ("w = %lX", w);
+       XUngrabButton (dpy, AnyButton, AnyModifier, w);
  }
  
--inline void
-+extern inline void
- ungrab_window_keys (Window w )
+-inline void ungrab_window_keys (Window w)
++void ungrab_window_keys (Window w)
  {
-     XUngrabKey (dpy, AnyKey, AnyModifier, w);
+       XUngrabKey (dpy, AnyKey, AnyModifier, w);
+ }
diff --git a/AfterStep-libpng-1.5.patch b/AfterStep-libpng-1.5.patch
deleted file mode 100644 (file)
index 0a4f321..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -ur AfterStep-2.2.11.orig/libAfterImage/export.c AfterStep-2.2.11/libAfterImage/export.c
---- AfterStep-2.2.11.orig/libAfterImage/export.c       2010-09-23 21:52:15.000000000 +0100
-+++ AfterStep-2.2.11/libAfterImage/export.c    2012-06-18 01:48:11.054109582 +0100
-@@ -496,7 +496,7 @@
-       png_ptr = png_create_write_struct( PNG_LIBPNG_VER_STRING, NULL, NULL, NULL );
-     if ( png_ptr != NULL )
-       if( (info_ptr = png_create_info_struct(png_ptr)) != NULL )
--                      if( setjmp(png_ptr->jmpbuf) )
-+                      if( setjmp(png_jmpbuf(png_ptr)) )
-                       {
-                               png_destroy_info_struct(png_ptr, (png_infopp) &info_ptr);
-                               info_ptr = NULL ;
-diff -ur AfterStep-2.2.11.orig/libAfterImage/import.c AfterStep-2.2.11/libAfterImage/import.c
---- AfterStep-2.2.11.orig/libAfterImage/import.c       2010-09-23 21:57:57.000000000 +0100
-+++ AfterStep-2.2.11/libAfterImage/import.c    2012-06-18 01:55:43.547156261 +0100
-@@ -1251,7 +1251,7 @@
-                        * the normal method of doing things with libpng).  REQUIRED unless you
-                        * set up your own error handlers in the png_create_read_struct() earlier.
-                        */
--                      if ( !setjmp (png_ptr->jmpbuf))
-+                      if ( !setjmp(png_jmpbuf(png_ptr)))
-                       {
-                               ASFlagType rgb_flags = ASStorage_RLEDiffCompress|ASStorage_32Bit ;
-@@ -1468,7 +1468,7 @@
- static void asim_png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
- {
--   ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *)png_ptr->io_ptr;
-+   ASImPNGReadBuffer *buf = (ASImPNGReadBuffer *) png_get_io_ptr(png_ptr);
-    memcpy(data, buf->buffer, length);
-    buf->buffer += length;
- }
index 5214de3a840e8e10d89e0b33a4d2077a7f37e4af..72746c6a048e9cad46982678aa67fa35e8fd2292 100644 (file)
  AC_CHECK_LIB(X11, XOpenDisplay, [x_libs="-lX11 $x_libs"],,$x_libs)
  
  PATH_XTRA_CHECKED=yes
---- AfterStep-2.2.3/libAfterImage/Makefile.in.orig     2006-08-16 20:58:41.000000000 +0200
-+++ AfterStep-2.2.3/libAfterImage/Makefile.in  2006-11-04 10:28:10.389510250 +0100
-@@ -342,7 +342,7 @@
+--- afterstep-devel-2.2.12/libAfterImage/Makefile.in.orig      2023-12-20 21:54:30.523950178 +0100
++++ afterstep-devel-2.2.12/libAfterImage/Makefile.in   2023-12-20 22:43:31.391351466 +0100
+@@ -404,7 +404,7 @@ $(LIB_SHARED).$(LIBVERMAJOR): $(LIB_SHAR
  
- $(LIB_SHARED).$(LIBVER): $(LIB_OBJS) $(LIB_INCS) config.h
-       $(CC) -shared -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVER) \
+ $(LIB_SHARED).$(LIBVER): show_flags_cc $(LIB_OBJS) $(LIB_INCS) config.h Makefile
+       $(CC) -shared $(LDFLAGS) -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVER) \
 -       $(LIB_OBJS)
 +       $(LIB_OBJS) $(LIBS_AFTERIMAGE)
  
  install.man:
                @if [ -d doc/man ] ; then \
---- AfterStep-2.2.11/libAfterBase/Makefile.in~ 2011-04-07 14:11:04.140341198 +0100
-+++ AfterStep-2.2.11/libAfterBase/Makefile.in  2011-04-07 14:20:00.303980335 +0100
-@@ -324,7 +324,7 @@
- $(LIB_SHARED).$(LIBVER): $(LIB_OBJS) $(LIB_INCS)
-       $(CC) -shared -Wl,-soname,$(LIB_SHARED).$(LIBVERMAJOR) -o $(LIB_SHARED).$(LIBVER) \
--       $(USER_LD_FLAGS) $(LIBS_X) $(LIB_OBJS)
-+       $(USER_LD_FLAGS) $(LIB_OBJS) $(LIBS_X)
- install:      install.lib
index 8ed2719e1d46de548ca91d23731042c4b8ab9664..eccf77cf11bda05e3209b1371ee762a1cc24882e 100644 (file)
  
  dnl# some standard checks :
  dnl# let's check for endiannes of our box
---- AfterStep-2.2.3/libAfterImage/configure.in.orig    2006-05-23 19:59:30.000000000 +0200
-+++ AfterStep-2.2.3/libAfterImage/configure.in 2006-11-04 10:16:22.373262000 +0100
-@@ -160,16 +160,6 @@
+--- afterstep-devel-2.2.12/libAfterImage/configure.in.orig     2023-12-20 21:45:22.670251489 +0100
++++ afterstep-devel-2.2.12/libAfterImage/configure.in  2023-12-20 21:54:02.670767738 +0100
+@@ -160,19 +160,8 @@ else
+ dnl# we are alone - have to do all the checks ourselves :
+       dnl# Add -fPIC for IA64 compilation
+-      dnl# Add -g
+-      if test "x$enable_gdb" = "xyes"; then
+-              if ! test -n "`echo $CFLAGS' ' | grep '\-g ' 2> /dev/null`" ; then
+-                      CFLAGS="$CFLAGS -g -w"
+-              fi
+-      else
+-              DIRTY_CFLAGS="$CFLAGS"
+-              CFLAGS="-DNO_DEBUG_OUTPUT"
+-              for f in $DIRTY_CFLAGS; do 
+-                      if test "x$f" != "x-g"; then
+-                      CFLAGS="$CFLAGS $f"
+-                      fi       
+-              done
++      if test "x$enable_gdb" != "xyes"; then
++              CFLAGS="$CFLAGS -DNO_DEBUG_OUTPUT"
+       fi
+       dnl# Add -pg
+       if test "x$enable_gprof" = "xyes"; then
+@@ -202,15 +191,6 @@ dnl# we are alone - have to do all the c
        AC_PATH_PROG(LDCONFIG, ldconfig, ldconfig, $PATH:/sbin:/usr/local/sbin)
  fi
  
@@ -32,7 +54,6 @@
 -                      fi       
 -              done
 -fi
--
  
- dnl# Check for MMX :
- if test "x$enable_mmx_optimization" = "xyes"; then
+ MMX_CFLAGS="-mmmx -Winline --param inline-unit-growth=10000 --param large-function-growth=10000"
index 5f1adc2f3ecf7effa76fa68979e1aef17904a5cb..378b16a5262d2bfd9ee6efbe10929892fec89fa9 100644 (file)
@@ -2,10 +2,12 @@
 # Conditional build:
 %bcond_with    mmx             # use MMX
 %bcond_with    gnome2          # build with support for GNOME2 wm-properties
+%bcond_without opengl          # GLX support
 #
 %ifarch pentium3 pentium4 athlon %{x8664}
 %define                with_mmx        1
 %endif
+%define        afterstep_ver   2.2.12
 # versions from libAfter{Base,Image}/configure.in respectively
 %define        afterbase_ver   1.14
 %define        afterimage_ver  1.20
@@ -13,36 +15,42 @@ Summary:    AfterStep Window Manager
 Summary(ja.UTF-8):     AfterStep ウィンドウマネージャ (NeXT風)
 Summary(pl.UTF-8):     AfterStep - zarządca okien
 Name:          AfterStep
-Version:       2.2.11
-Release:       2
+Version:       %{afterstep_ver}
+Release:       1
 License:       GPL v2+
 Group:         X11/Window Managers
 Source0:       ftp://ftp.afterstep.org/stable/%{name}-%{version}.tar.bz2
-# Source0-md5: dbedd3dd4cd6bad56edcab4ee6fb4de8
+# Source0-md5: a3ab1a878270998d420bb2a5ca15801b
 #Source1:      %{name}.RunWM
 Source3:       %{name}-xsession.desktop
 Patch0:                %{name}-no_bash_fix.patch
 Patch1:                %{name}-ldconfig.patch
 Patch2:                %{name}-opt.patch
 Patch3:                %{name}-link.patch
-Patch4:                %{name}-libpng-1.5.patch
+Patch4:                %{name}-ac.patch
 Patch5:                %{name}-inline.patch
+Patch6:                %{name}-ar.patch
 URL:           http://www.afterstep.org/
+%{?with_opengl:BuildRequires:  OpenGL-devel}
+BuildRequires: alsa-lib-devel >= 0.9
 BuildRequires: autoconf >= 2.59-9
 BuildRequires: automake
-BuildRequires: dbus-devel
+BuildRequires: dbus-devel >= 0.22
 BuildRequires: fltk-devel
 BuildRequires: freetype-devel >= 2.0
 BuildRequires: gdk-pixbuf2-devel >= 2.0
 BuildRequires: giflib-devel
+BuildRequires: glib2-devel >= 2.0.0
 BuildRequires: gtk+2-devel >= 1:2.0.0
 BuildRequires: libjpeg-devel
 BuildRequires: libpng-devel
-BuildRequires: librsvg-devel
+BuildRequires: librsvg-devel >= 2.0.0
 BuildRequires: libtiff-devel
+BuildRequires: ncurses-devel
 BuildRequires: pkgconfig
 BuildRequires: readline-devel
 BuildRequires: sgml-tools
+BuildRequires: xorg-lib-libX11-devel
 BuildRequires: xorg-lib-libXext-devel
 BuildRequires: xorg-lib-libXinerama-devel
 Requires:      libAfterBase = %{afterbase_ver}-%{release}
@@ -195,7 +203,7 @@ Requires:   gdk-pixbuf2-devel >= 2.0
 Requires:      giflib-devel
 Requires:      libjpeg-devel
 Requires:      libpng-devel
-Requires:      librsvg-devel
+Requires:      librsvg-devel >= 2.0.0
 Requires:      libtiff-devel
 Requires:      xorg-lib-libXext-devel
 
@@ -219,20 +227,26 @@ Static AfterImage library.
 Statyczna biblioteka AfterImage.
 
 %prep
-%setup -q
+%setup -q -n afterstep-devel-%{afterstep_ver}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
-cp -f autoconf/configure*.in .
+#cp -f autoconf/configure*.in .
 
 %build
+cd autoconf
 %{__aclocal}
-%{__autoconf}
-%{__autoheader}
+cd ..
+%{__autoconf} -I autoconf autoconf/configure.in > autoconf/configure
+%{__autoconf} -I autoconf autoconf/configure.libs.in > autoconf/configure.libs
+chmod 755 autoconf/configure autoconf/configure.libs
+%{__mv} autoconf/configure autoconf/configure.libs .
+%{__autoheader} autoconf/configure.in
 cd libAfterBase
 %{__autoconf}
 %{__autoheader}
@@ -242,6 +256,7 @@ cd ../libAfterImage
 cd ..
 %configure \
        %{!?with_mmx:--disable-mmx-optimization} \
+       %{?with_opengl:--enable-glx} \
        --enable-i18n \
        --enable-sharedlibs \
        --with-gif \
@@ -250,20 +265,23 @@ cd ..
        --with-png \
        --with-xpm
 
-%{__make}
+%{__make} -j1
+
 sgml2html doc/afterstep.sgml
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_datadir}/xsessions,/etc/sysconfig/wmstyle}
+install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,/etc/sysconfig/wmstyle}
+%if %{with gnome2}
+# AfterStep.desktop is installed here if dir exists
+install -d $RPM_BUILD_ROOT%{_wmpropsdir}
+%endif
 
 %{__make} -j1 install \
        DESTDIR=$RPM_BUILD_ROOT
 
-%{?with_gnome2:install AfterStep.desktop $RPM_BUILD_ROOT%{_wmpropsdir}}
-
-#install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/afterstep.sh
-install %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xsessions/AfterStep.desktop
+#cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/afterstep.sh
+cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/xsessions/AfterStep.desktop
 
 # demo programs source and comments don't belong to man3 (and mans in general)
 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{asflip,asgrad,asmerge,asscale,astext,astile,asview,common}.*
@@ -281,9 +299,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc doc/code doc/languages TODO *.html
-%doc UPGRADE NEW README TEAM README.RedHat doc/languages/*
+%doc COPYRIGHT COPYRIGHT.OLD ChangeLog NEW NEW.1.x README TEAM TODO afterstep*.html doc/languages/README.*
 %attr(755,root,root) %{_bindir}/ASFileBrowser
+%attr(755,root,root) %{_bindir}/ASMount
 %attr(755,root,root) %{_bindir}/ASRun
 %attr(755,root,root) %{_bindir}/ASWallpaper
 %attr(755,root,root) %{_bindir}/Animate
This page took 0.141638 seconds and 4 git commands to generate.