1
0
forked from pool/sqlitebrowser

- Correct license

- Use more cmake macros
- Use shared qscintilla library

OBS-URL: https://build.opensuse.org/package/show/server:database/sqlitebrowser?expand=0&rev=30
This commit is contained in:
Martin Pluskal 2017-08-30 14:24:38 +00:00 committed by Git OBS Bridge
parent fff49def38
commit e5a09ccbcb
2 changed files with 25 additions and 16 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 30 14:24:07 UTC 2017 - mpluskal@suse.com
- Correct license
- Use more cmake macros
- Use shared qscintilla library
-------------------------------------------------------------------
Tue Aug 29 16:59:44 UTC 2017 - wbauer@tmo.at

View File

@ -20,31 +20,32 @@ Name: sqlitebrowser
Version: 3.10.0
Release: 0
Summary: Create, design and edit SQLite Databases
License: GPL-3.0+ or MPL-2.0
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: update-desktop-files
BuildRequires: pkgconfig(sqlite3)
Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# not on SLE-12
%if 0%{?suse_version} != 1315 || 0%{?is_opensuse}
BuildRequires: antlr-devel
%endif
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
@ -69,9 +70,11 @@ to:
%setup -q
%build
%cmake -DBUILD_SHARED_LIBS=OFF
make %{?_smp_mflags}
%cmake \
-DQSCINTILLA_INCLUDE_DIR=%{_includedir}/qt5/Qsci \
-DQSCINTILLA_LIBRARY=%{_libdir}/libqscintilla2_qt5.so \
-Wno-dev
%make_jobs
%install
%cmake_install
@ -100,7 +103,6 @@ EOF
%icon_theme_cache_postun
%files
%defattr(-,root,root)
%doc README.md LICENSE currentrelease
%{_mandir}/man1/%{name}.1%{ext_man}
%{_bindir}/%{name}