File AfterStep.spec of Package AfterStep

#
# spec file for package AfterStep (Version 2.2.9)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#

# norootforbuild

Name:		AfterStep
Version:	2.2.9
Release:	SOAD.1
Summary:	AfterStep is a window manager for the Unix X Window System
License:	GPL
Group:		System/GUI/Other
Vendor:         The AfterStep Team (see TEAM in docdir)
URL:		http://www.afterstep.org/
Source:		%{name}-%{version}.tar.bz2
#Patch:		
BuildRequires:	xorg-x11-libXpm-devel xorg-x11-libXpm  xorg-x11-libxcb-devel xorg-x11-libxcb
BuildRequires:	libjpeg-devel libjpeg libpng-devel libpng
BuildRequires:	gcc freetype2-devel rxvt-unicode libtiff-devel libtiff3
BuildRequires:	giflib-devel giflib librsvg-devel librsvg 
BuildRequires:	gtk2-devel gtk2 alsa-devel xli readline-devel libreadline5
BuildRoot:	/tmp/%{name}-%{version}-build
Requires:		rxvt-unicode

%description


%prep
%setup

%build
%install
rm -rf "$RPM_BUILD_ROOT"
rm -rf %{buildroot}

if test "`uname -m | grep 64`" != ""                                                                                                                
then export NEW_LIBDIR=/usr/lib64
else export NEW_LIBDIR=/usr/lib
fi

#./configure \
#        --prefix=/usr                        \
#	--exec-prefix=/usr                   \
#        --datadir=/usr/share                 \
#        --libdir=$NEW_LIBDIR                 \
#        --disable-staticlibs                      \
#        --enable-sharedlibs                       \
#        --with-xpm                                \
#        --with-jpeg                               \
#        --with-png                                \
#        --with-ttf                                \
#        --with-tiff                               \
#        --with-gif                                \
#        --with-jpeg                               \
#        --enable-ascp                             \
#        --enable-i18n                             \
#	--with-readline				  \
#	--with-svg				  \
#	--with-gtk				  \
#	--enable-alsa				  \
#        --with-helpcommand="urxvt -e man"         \
#        --with-desktops=1 --with-deskgeometry=2x3 \
#        --with-imageloader="xsetbg"               \
#        --disable-send-postcard-to-developer 
#


%configure \
        --disable-staticlibs                      \
        --enable-sharedlibs                       \
        --with-xpm                                \
        --with-jpeg                               \
        --with-png                                \
        --with-ttf                                \
        --with-tiff                               \
        --with-gif                                \
        --with-jpeg                               \
        --enable-ascp                             \
        --enable-i18n                             \
    --with-readline               \
    --with-svg                \
    --with-gtk                \
    --enable-alsa                 \
        --with-helpcommand="urxvt -e man"         \
        --with-desktops=1 --with-deskgeometry=2x3 \
        --with-imageloader="xsetbg"               \
        --disable-send-postcard-to-developer

                                                                                                                                           
make

# %install

make DESTDIR=$RPM_BUILD_ROOT install || return 1
find $RPM_BUILD_ROOT/ -type f  -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f  -iname '*.a' -exec rm {} \;
## find $RPM_BUILD_ROOT/ -type f -perm 755  -exec strip -s {} \;

if [ -e $RPM_BUILD_ROOT/usr/man ] ; then
mkdir -p $RPM_BUILD_ROOT/usr/share
mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT/usr/share/
fi

%clean
rm -rf %{buildroot}
rm -rf "$RPM_BUILD_ROOT"

%post
%run_ldconfig

%postun
%run_ldconfig

%files 
%defattr(-,root,root)
/usr/share/xsessions/*
%{_bindir}/*                                                                                                                           
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_libdir}/libA*
%{_datadir}/afterstep

#%ifarch i586
#%exclude /usr/lib/debug
#%endif

#%{_datadir}/locale/*
#%doc 

%changelog
* Mon Mar 17 2008 was released AfterStep 2.2.8
Packed by sda00@himki.net
openSUSE Build Service is sponsored by