File wmakerconf.spec of Package wmakerconf
#
# spec file for package wmakerconf
#
# Copyright (c) 2012 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/
#
Name: wmakerconf
Summary: Configuration tool for Window Maker
License: GPL-2.0+
Group: System/GUI/Other
Version: 2.12
Release: 0
Url: http://wmakerconf.sourceforge.net/
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-2.9.dif
Patch1: %{name}-fix-bad-po.patch
Patch3: %{name}-2.9-destdir.patch
Patch4: %{name}-2.9-config.patch
Patch5: %{name}-no-imlib.patch
Patch7: %{name}-2.9-varargs.diff
Patch9: %{name}-datarootdir.patch
Patch10: %{name}-2.12-wmaker-0.95_support.patch
# PATCH - Fix SUSE: implicit-pointer-decl
Patch11: %{name}-implicit-pointer-decl.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: WindowMaker-devel
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gtk2-devel
BuildRequires: perl-libwww-perl
BuildRequires: update-desktop-files
Obsoletes: wmaconf
Provides: wmaconf
Requires: WindowMaker
Requires: perl-libwww-perl
%description
Wmakerconf is a GTK+ based configuration tool for Window Maker.
%prep
%setup -q
%patch0
%patch1
%patch3
%patch4
%patch5
%patch7
%patch9
%patch10
%patch11
# ---------------------------------------------------------------------------
%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 %{?_smp_mflags}
# ---------------------------------------------------------------------------
%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