1
0
forked from pool/sqlitebrowser
sqlitebrowser/sqlitebrowser.spec
Martin Pluskal 1ff9607ee7 Accepting request 619760 from home:wolfi323:branches:server:database
- update to version 3.10.1
  * Bug fixes
    - General
      + cipher: Fix passphrases containing single quotes
      + cipher: Change tab order in encryption dialog
      + Fix typo in Russian translation
      + Pass /norestart to vcredist installer
      + Fix index updating when removing an indexed column from a table
      + Don't automatically commit all changes when editing a table column
      + Make text selectable in Edit dock even if db is opened as read only
      + Add '<>NULL' filter
      + Fix custom type saving when only focus changes for user-entered type
    - DBHub.io related
      + dbhub: Tweak certificate UI in the preferences dialog
      + dbhub: Fix progress dialog for very large files
      + dbhub: Remove closing "." from the progress dialog
      + dbhub: Ask user what to do when trying to open an updated database
      + dbhub: Enforce name and commit message length limits in push dialog
      + dbhub: Add tooltip to cog tool button
      + dbhub: Redownload database if local copy has been deleted
      + dbhub: Fix wrong file size being shown for very large files
      + dbhub: Support pushing to different branches than "master"
      + dbhub: Improve file size format
      + dbhub: Optimise code
      + dbhub: Fix branch list in push dialog

OBS-URL: https://build.opensuse.org/request/show/619760
OBS-URL: https://build.opensuse.org/package/show/server:database/sqlitebrowser?expand=0&rev=33
2018-06-29 12:53:51 +00:00

117 lines
3.8 KiB
RPMSpec

#
# spec file for package sqlitebrowser
#
# Copyright (c) 2018 SUSE LINUX 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: sqlitebrowser
Version: 3.10.1
Release: 0
Summary: Create, design and edit SQLite Databases
License: GPL-3.0+ AND MPL-2.0
Group: Productivity/Office/Organizers
Url: http://sqlitebrowser.org/
Source0: https://github.com/sqlitebrowser/sqlitebrowser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: sqlitebrowser.1
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libqscintilla_qt5-devel
BuildRequires: libqt5-linguist-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(sqlite3)
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
# not on SLE-12
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
BuildRequires: antlr-devel
%endif
%description
SQLite Database Browser is a freeware, public domain, open source visual tool
used to create, design and edit database files compatible with SQLite. It is
meant to be used for users and developers that want to create databases, edit
and search data using a familiar spreadsheet-like interface, without the need
to learn complicated SQL commands. Controls and wizards are available for users
to:
* Create and compact database files
* Create, define, modify and delete tables
* Create, define and delete indexes
* Browse, edit, add and delete records
* Search records
* Import and export records as text
* Import and export tables from/to CSV files
* Import and export databases from/to SQL dump files
* Issue SQL queries and inspect the results
* Examine a log of all SQL commands issued by the application
%prep
%setup -q
%build
%cmake \
-DQSCINTILLA_INCLUDE_DIR=%{_includedir}/qt5/Qsci \
-DQSCINTILLA_LIBRARY=%{_libdir}/libqscintilla2_qt5.so \
-DBUILD_SHARED_LIBS=OFF \
-Wno-dev
%make_jobs
%install
%cmake_install
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/{applications,pixmaps}
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1
install -m 0644 images/%{name}.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Categories=Application;Network;GNOME;GTK;System;X-SuSE-ServiceConfiguration;
StartupNotify=true
Exec=%{_bindir}/%{name}
Name=%{name}
GenericName=SQLite Database browser
Terminal=false
Type=Application
Icon=%{name}
EOF
%suse_update_desktop_file %{name}
%post
%desktop_database_post
%icon_theme_cache_post
%postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%doc README.md LICENSE currentrelease
%{_mandir}/man1/%{name}.1%{ext_man}
%{_bindir}/%{name}
%{_datadir}/applications/*
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.desktop.appdata.xml
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/sqlitebrowser.png
%changelog