]> git.pld-linux.org Git - packages/sqlitebrowser.git/blob - sqlitebrowser.spec
- up to 3.11.2
[packages/sqlitebrowser.git] / sqlitebrowser.spec
1 # TODO: use system-wide QCustomPlot and QHexEdit
2 Summary:        DB Browser for SQLite
3 Name:           sqlitebrowser
4 Version:        3.11.2
5 Release:        1
6 License:        MPLv2/GPLv3
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
19 BuildRequires:  antlr
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)
30
31 %description
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.
37
38 %prep
39 %setup -q
40 %patch0 -p1
41
42 %{__rm} -r libs/{antlr-*,qscintilla}
43
44 %build
45 mkdir build
46 cd build
47 %cmake ../ \
48         -DBUILD_SHARED_LIBS:BOOL=OFF \
49         -DQT_INCLUDE_DIR:PATH=%{_includedir}/qt5
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} -C build install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %post
61 %update_desktop_database
62 %update_icon_cache hicolor
63
64 %postun
65 %update_desktop_database
66 %update_icon_cache hicolor
67
68 %files
69 %defattr(644,root,root,755)
70 %doc README.md
71 %attr(755,root,root) %{_bindir}/%{name}
72 %{_desktopdir}/%{name}.desktop
73 %{_iconsdir}/hicolor/*/apps/%{name}.png
74 %{_datadir}/appdata/sqlitebrowser.desktop.appdata.xml
This page took 0.077213 seconds and 3 git commands to generate.