File sqliteman.spec of Package sqliteman

#
# spec file for package Sqliteman
#
# Copyright (c) 2007 Petr Vanek
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:         sqliteman
URL:          http://sqliteman.com
License:      GPL
Group:        Productivity/Databases/Tools
Summary:      Lightweigth but powerful Sqlite3 manager
Version:      1.2.2
Release:      1
Source0:      %{name}-%{version}.tar.bz2

%if 0%{?suse_version}
BuildRequires: libqt4-devel >= 4.2.0 libqt4-sql-sqlite libqscintilla-devel cmake update-desktop-files desktop-file-utils
%endif

%if 0%{?fedora_version}
BuildRequires: qt4-devel >= 4.2.0 qt4-sqlite qscintilla-devel cmake >= 2.6.0 gcc-c++ desktop-file-utils
%endif


BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
The best developer's and/or admin's GUI tool for Sqlite3
in the world. No joking here (or just a bit only) - it
contains the most complette feature set of all tools available


Authors:
--------
    Petr Vanek <petr@scribus.info>

%prep
%setup -q

%build
%if 0%{?suse_version}
cmake \
        -DCMAKE_C_FLAGS="%{optflags}" \
        -DCMAKE_CXX_FLAGS="%{optflags}" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
        %{_builddir}/%{name}-%{version}
%endif

%if 0%{?fedora_version}
cmake \
        -DCMAKE_C_FLAGS="%{optflags}" \
        -DCMAKE_CXX_FLAGS="%{optflags}" \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr \
        %{_builddir}/%{name}-%{version}
%endif

%{__make} %{?jobs:-j%jobs}


%install
%makeinstall


%if 0%{?suse_version}  
%suse_update_desktop_file -G "Toolkit for Sqlite3 database" %{name} Office Database
%endif

%if 0%{?fedora_version} >= 5  
%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/  
desktop-file-install --vendor %{desktop_vendor} --add-category X-Red-Hat-Base --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%name.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%{_prefix}/share/applications/*
%{_prefix}/share/icons/*
%{_prefix}/share/sqliteman/*
%{_prefix}/share/sqliteman


%changelog -n sqliteman
* Sat Jul 19 2010 - Petr Vanek <petr@scribus.info>
- version bump. Version 1.2.2

* Sat Apr 04 2010 - Petr Vanek <petr@scribus.info>
- fixed rpm group to fit opensuse categories.

* Tue Jun 12 2007 - Petr Vanek <petr@scribus.info>
- merging FC and Suse specs into one. Opensuse Build service works

* Fri Apr 11 2007 - Eugene Pivnev <ti.eugene@gmail.com>
- initial build for FC6

* Wed Feb 20 2007 - Petr Vanek <petr@scribus.info>
- initial package

  
openSUSE Build Service is sponsored by