1
0
forked from pool/sqlitebrowser

Accepting request 304505 from server:database

1

OBS-URL: https://build.opensuse.org/request/show/304505
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sqlitebrowser?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2015-05-02 19:36:51 +00:00 committed by Git OBS Bridge
commit 5ce7b74f77
2 changed files with 23 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 28 21:32:32 UTC 2015 - crrodriguez@opensuse.org
- Use QT5 for Factory builds
- Honour RPM_OPT_FLAGS.
-------------------------------------------------------------------
Thu Apr 2 07:09:42 UTC 2015 - mpluskal@suse.com

View File

@ -35,10 +35,18 @@ BuildRequires: cmake
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libQtWebKit-devel
BuildRequires: libqt4-devel >= 4.6
BuildRequires: sqlite3-devel
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1320
BuildRequires: libqt5-linguist-devel
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
%else
BuildRequires: libqt4-devel
%endif
%if 0%{?suse_version} > 1100
BuildRequires: pkgconfig(glib-2.0)
%endif
@ -67,8 +75,13 @@ to:
%setup -q -n sqlitebrowser-sqlitebrowser-0ddf048
%build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .
make %{?_smp_mflags}
export CXXFLAGS="%optflags"
cmake \
%if 0%{?suse_version} > 1320
-DUSE_QT5=true \
%endif
-DCMAKE_INSTALL_PREFIX=%{_prefix} .
make %{?_smp_mflags} VERBOSE=1
%install
make DESTDIR="%{buildroot}" install