1 # TODO: use system-wide QCustomPlot and QHexEdit
2 Summary: DB Browser for SQLite
7 Group: Applications/Databases/Interfaces
8 Source0: https://github.com/sqlitebrowser/sqlitebrowser/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: 9991541d1f93ebcd7769ac8e15475c71
10 Patch0: system-libs.patch
11 URL: http://sqlitebrowser.org/
12 BuildRequires: Qt5Concurrent-devel
13 BuildRequires: Qt5Gui-devel
14 BuildRequires: Qt5Network-devel
15 BuildRequires: Qt5PrintSupport-devel
16 BuildRequires: Qt5Test-devel
17 BuildRequires: Qt5Widgets-devel
18 BuildRequires: Qt5Xml-devel
20 BuildRequires: cmake >= 2.8.7
21 BuildRequires: qscintilla2-qt5-devel
22 BuildRequires: qt5-build
23 BuildRequires: qt5-linguist
24 BuildRequires: rpmbuild(macros) >= 1.596
25 BuildRequires: sqlite3-devel
26 Requires: desktop-file-utils
27 Requires: gtk-update-icon-cache
28 Requires: hicolor-icon-theme
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 SQLite Database Browser is a freeware, public domain, open source
33 visual tool used to create, design and edit database files compatible
34 with SQLite. It is meant to be used for users and developers that want
35 to create databases, edit and search data using a familiarspreadsheet-
36 -like interface, without the need to learn complicated SQL commands.
42 %{__rm} -r libs/{antlr-*,qscintilla}
48 -DBUILD_SHARED_LIBS:BOOL=OFF \
49 -DQT_INCLUDE_DIR:PATH=%{_includedir}/qt5
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install \
55 DESTDIR=$RPM_BUILD_ROOT
58 rm -rf $RPM_BUILD_ROOT
61 %update_desktop_database
62 %update_icon_cache hicolor
65 %update_desktop_database
66 %update_icon_cache hicolor
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_bindir}/%{name}
72 %{_desktopdir}/%{name}.desktop
73 %{_iconsdir}/hicolor/*/apps/%{name}.png
74 %{_datadir}/appdata/sqlitebrowser.desktop.appdata.xml