File wmakerconf.spec of Package wmakerconf
#
# spec file for package wmakerconf (Version 2.12)
#
# Copyright (c) 2010 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 fdupes gtk2-devel perl-libwww-perl update-desktop-files
License: GPLv2+
Group: System/GUI/Other
Obsoletes: wmaconf
Provides: wmaconf
Requires: WindowMaker
Requires: perl-libwww-perl
AutoReqProv: on
Summary: Configuration tool for Window Maker
Version: 2.12
Release: 1
Url: http://wmakerconf.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
Patch: wmakerconf-2.9.dif
Patch1: wmakerconf-fix-bad-po.patch
Patch3: wmakerconf-2.9-destdir.patch
Patch4: wmakerconf-2.9-config.patch
Patch5: wmakerconf-no-imlib.patch
Patch7: wmakerconf-2.9-varargs.diff
Patch9: wmakerconf-datarootdir.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
%patch
%patch1 -p1
%patch3
%patch4
%patch5 -p1
%patch7
%patch9
# ---------------------------------------------------------------------------
%{suse_update_config -f data}
%build
gettextize -f
autoreconf --install --force
test -f po/Makevars || mv po/Makevars.template po/Makevars
%configure \
--with-nlsdir=%{_datadir}/locale \
--with-pixmapdir=%{_datadir}/WindowMaker/Pixmaps
make
# ---------------------------------------------------------------------------
%install
%makeinstall
# Change no to nb
mv %{buildroot}%{_datadir}/locale/no %{buildroot}%{_datadir}/locale/nb
%find_lang %{name}
%find_lang wmakerconf-data %{name}.lang
%suse_update_desktop_file wmakerconf
%fdupes %{buildroot}
%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
%{_bindir}/mkpreview
%{_bindir}/wmakerconf
%doc %{_mandir}/man?/mkpreview.*
%doc %{_mandir}/man?/wmakerconf.*
%{_datadir}/applications/wmakerconf.desktop
%{_datadir}/wmakerconf/
%changelog