File flamerobin.spec of Package flamerobin
#
# spec file for package flamerobin (Version 0.9.2)
#
# 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/
#
Summary: Graphical client for Firebird
Name: flamerobin
Version: 0.9.2
Release: 1
License: BSD
Group: Productivity/Databases/Tools
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.tar.gz
Patch: flamerobin-0.9.2-wxWindowListNode.patch
Url: http://www.flamerobin.org/
BuildRequires: firebird-devel >= 2.0.0.12748
BuildRequires: wxGTK-devel >= 2.8
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FlameRobin is a database administration tool for Firebird DBMS based on wxgtk
toolkit.
%prep
%setup -q -n %{name}-%{version}-src
%patch
%build
%configure
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f %{buildroot}/%{_datadir}/pixmaps/%{name}.png
cp -f ./res/%{name}.xpm %{buildroot}/%{_datadir}/%{name}/%{name}.xpm
sed "s@Categories=Development;Database;GTK@Categories=System;Database;@" -i %{buildroot}/%{_datadir}/applications/%{name}.desktop
sed "s@Icon=/usr/share/pixmaps/flamerobin.png@Icon=%{_datadir}/%{name}/%{name}.xpm@" -i %{buildroot}/%{_datadir}/applications/%{name}.desktop
mv %{buildroot}%{_datadir}/applications/%{name}.desktop $RPM_SOURCE_DIR/%{name}.desktop
%suse_update_desktop_file -i -n %{name} System Database
rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/docs
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc docs/*
%{_mandir}/man1/flamerobin.1*
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/%{name}
%changelog