File fvwm-themes.spec of Package fvwm-themes

#
# spec file for package fvwm-themes (Version 0.7.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           fvwm-themes
BuildRequires:  fvwm2 xorg-x11-devel
%if "%(xft-config --prefix)" == "/usr"
%define	xprefix  /usr
%else
%define	xprefix  /usr/X11R6
%endif
License:        GPL v2 or later
Group:          System/GUI/Other
AutoReqProv:    on
Version:        0.7.0
Release:        1
PreReq:         /usr/bin/perl /usr/bin/mkfifo
Requires:       fvwm2 >= 2.5.8, perl >= 5.002
Summary:        FVWM Configuration Framework
Url:            http://fvwm-themes.sourceforge.net/
Source0:        fvwm-themes-0.7.0.tar.bz2
#Patch0:         fvwm-themes-0.4.2-icon-names.patch
#Patch1:         fvwm-themes-0.4.2-menustyle-fontset.patch
#Patch2:         fvwm-themes-windowlook-fontset.patch
#Patch3:         fvwm-themes-modules-fontset.patch
#Patch5:         acdivert.patch
Patch1:         %{name}-head.patch
Patch2:         %{name}-configure.patch
Patch3:         %{name}-destdir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
FVWM Themes is a powerful configuration framework for FVWM, designed to
be easily extendable and configurable.	It includes several prebuilt
themes and a pack of images and sounds.



Authors:
--------
    Mikhael Goikhman <migo@homemail.com>

%prep
%setup -q -n fvwm-themes-0.7.0
%patch1 -p1 -b .head
%patch2 -p1 -b .configure
%patch3 -p1

%build
autoreconf --force --install
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=%{xprefix} \
            --mandir=%{_mandir} \
            --disable-build-menus \
	    --without-gnome
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
for i in %{xprefix}/share/fvwm/themes/current/theme.cfg \
	 %{xprefix}/share/fvwm/themes-rc \
	 %{xprefix}/share/fvwm/themes-rc-2 \
 	 %{xprefix}/share/fvwm/themes-rc-3 ; do
sed -e "s@$RPM_BUILD_ROOT@@g" < $RPM_BUILD_ROOT/$i > xxtmp
mv xxtmp $RPM_BUILD_ROOT/$i
done

%post
[ -x usr/X11R6/bin/fvwm-themes-menuapp ] && usr/X11R6/bin/fvwm-themes-menuapp --site --build-menus --remove-popup || true

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README TODO
%doc doc/FAQ doc/README.1st doc/colorsets doc/fvwm-themes.lsm
%{xprefix}/bin/*
%{xprefix}/share/fvwm/*
%{_mandir}/man?/*

%changelog
* Thu Aug 21 2008 lmichnovic@suse.cz
- update to version 0.7.0
  * new themes
  * if xmessage is'n found invoke other dialog tools using FvwmPerl
 - requires fvwm > 2.5.8
- obsoleted patches: *icon-names.patch, *menustyle-fontset.patch,
  *windowlook-fontset.patch, *modules-fontset.patch, acdivert.patch
* Mon Aug 14 2006 mfabian@suse.de
- fix build in STABLE (move to X11R7).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Feb 23 2004 hmacht@suse.de
- building as non-root
* Mon Aug 25 2003 mfabian@suse.de
- update to 0.6.2.
* Wed Jul 02 2003 ro@suse.de
- remove traces of buildroot from installed files
* Sat Jun 14 2003 mfabian@suse.de
- fix "directory not owned by any package".
* Thu Apr 10 2003 ro@suse.de
- fix deprecated head calling syntax (-1)
- fix deprecated sort calling syntax in configure.in
* Fri Aug 16 2002 mfabian@suse.de
- add Prereq:       /usr/bin/perl /usr/bin/mkfifo
- xf86 -> x-devel-packages in # neededforbuild
* Thu Apr 26 2001 mfabian@suse.de
- correct icon names
- patch fonts to work with Japanese
* Tue Apr 24 2001 mfabian@suse.de
- new package: fvwm-themes, version 0.4.2
openSUSE Build Service is sponsored by