File wmakerconf.spec of Package wmakerconf

#
# spec file for package wmakerconf (Version 2.9)
#
# Copyright (c) 2009 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:           wmakerconf
BuildRequires:  WindowMaker-devel freetype2-devel gtk-devel imlib-config imlib-devel lynx wget
License:        GPL v2 or later
Group:          System/GUI/Other
Obsoletes:      wmaconf 
Provides:       wmaconf
Requires:       lynx wget WindowMaker
AutoReqProv:    on
Summary:        Configuration tool for Window Maker
Version:        2.9
Release:        580
Source:         http://www.windowmaker.org/pub/contrib/source/wmakerconf/wmakerconf-%{version}.tar.bz2
Patch:          wmakerconf-%{version}.dif
Patch2:         wmakerconf-%{version}-themesdir.patch
Patch3:         wmakerconf-%{version}-destdir.patch
Patch4:         wmakerconf-%{version}-config.patch
Patch5:         wmakerconf-%{version}-segfault.patch
Patch6:         wmakerconf-rreleaseimage.patch
Patch7:         wmakerconf-%{version}-varargs.diff
Patch8:         wmakerconf-%{version}-wmconfig.patch
Patch9:         wmakerconf-datarootdir.patch
Patch10:        wmakerconf-%{version}-nb.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Wmakerconf is a GTK+ based configuration tool for Window Maker.



Authors:
--------
    Ullrich Hafner <hafner@bigfoot.de>

%prep
%setup -q -n wmakerconf-%{version}
%patch
%patch2
%patch3
%patch4
%patch5
%patch6 -p1 -b .rreleaseimage
%patch7
%patch8
%patch9
%patch10
mv po/no.po po/nb.po
# ---------------------------------------------------------------------------
%{suse_update_config -f data}

%build
gettextize -f
autoreconf --install --force
test -f po/Makevars || mv po/Makevars.template po/Makevars
CFLAGS="$RPM_OPT_FLAGS" \
%configure \
	--with-nlsdir=/usr/share/locale \
	--with-pixmapdir=/usr/share/WindowMaker/Pixmaps
make
# ---------------------------------------------------------------------------

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name}
%find_lang wmakerconf-data %{name}.lang

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog MANUAL NEWS NLS-TEAM1 README TODO
/usr/bin/mkpreview
/usr/bin/wmakerconf
/usr/share/wmakerconf

%changelog
* Mon Apr 28 2008 ro@suse.de
- remove hermes-devel from buildreq
* Sun Feb 24 2008 crrodriguez@suse.de
- use find_lang macros properly
* Mon Aug 21 2006 nadvornik@suse.cz
- changed prefix to /usr
- renamed no.po -> nb.po
* Tue Aug 08 2006 cthiel@suse.de
- fix build
* Tue Jul 04 2006 schwab@suse.de
- Handle datarootdir.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr
* Thu Jun 19 2003 ro@suse.de
- build with current gettext
* Tue May 13 2003 nadvornik@suse.cz
- fixed merging user configuration [#25928]
* Tue Apr 29 2003 sf@suse.de
- remove '#include varargs.h'
* Mon Apr 28 2003 nadvornik@suse.cz
- fixed crash in setting themes [#25928]
* Fri Apr 18 2003 mfabian@suse.de
- add "freetype2 freetype2-devel expat" to neededforbuild
- wmakerconf-rreleaseimage.patch: RDestroyImage() is obsolete,
  replace by RReleaseImage() (necessary because of WindowMaker
  upgrade)
* Fri Mar 07 2003 nadvornik@suse.cz
- fixed segfault
* Tue Nov 19 2002 mmj@suse.de
- Add AM_GNU_GETTEXT_VERSION
* Tue Oct 01 2002 nadvornik@suse.cz
- updated to 2.9
  - updated translations
  - does not require libPropList
* Tue Sep 10 2002 kukuk@suse.de
- fix provides for update
* Fri Jul 26 2002 adrian@suse.de
- fix neededforbuild
* Wed May 15 2002 ro@suse.de
- use RPM_OPT_FLAGS, add -L/usr/X11R6/%%_lib
* Wed May 01 2002 kukuk@suse.de
- Remove superfluous libmpeg
* Wed Apr 03 2002 ro@suse.de
- build with current gettext
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Wed Jan 16 2002 schwab@suse.de
- Fix typo in specfile.
- Don't pass -I/usr/include or -I/usr/local/include to preprocessor.
* Mon Jun 25 2001 nadvornik@suse.cz
- added buildroot
- added correct path for windowmaker themes
* Thu Jun 21 2001 ro@suse.de
- added imlib and hermes to neededforbuild
* Tue Mar 13 2001 ro@suse.de
- changed neededforbuild <WindowMaker> to <WindowMaker WindowMaker-devel>
* Thu Jan 25 2001 violiet@suse.de
- added wmakerconf-data Korean translation.
- improvement wmakerconf Korean translation.
* Fri Nov 17 2000 kukuk@suse.de
- fixed Requires for WindowMaker
* Wed Nov 15 2000 ro@suse.de
- fixed neededforbuild for libPropList
* Mon Nov 06 2000 ro@suse.de
- fixed neededforbuild
* Wed Nov 01 2000 egger@suse.de
- Updated specfile to new long packagenames.
- Reworked specfile.
- Probably needs some more work; I'm taking care of that.
* Fri May 19 2000 choeger@suse.de
- updated to version 2.6.1
* Wed Mar 08 2000 ro@suse.de
- fixed segfault
* Fri Dec 03 1999 ray@suse.de
- update to 2.3
* Mon Oct 25 1999 ro@suse.de
- switched to libungif
* Thu Sep 23 1999 choeger@suse.de
- new version 2.2
* Tue Sep 21 1999 ro@suse.de
- added proplst, proplstd to neededforbuild
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Tue Jul 13 1999 bs@suse.de
- use gtk and glib instead of gtkn and glibn
* Thu Jun 24 1999 ray@suse.de
- update to 2.1
* Wed Apr 28 1999 ray@suse.de
- new package version 1.99.4
openSUSE Build Service is sponsored by