forked from daodaoliang/GitQlient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitqlient.spec
55 lines (43 loc) · 1.16 KB
/
gitqlient.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Name: {{{ git_name name="gitqlient" }}}
Version: 1.3.0
Release: {{{ git_version }}}%{?dist}
Summary: A multi-platform Git client
License: LGPLv2
URL: https://github.com/francescmm/GitQlient
VCS: {{{ git_vcs }}}
Source: {{{ git_pack }}}
BuildRequires: /usr/bin/qmake-qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: desktop-file-utils
%description
%{summary}.
%prep
{{{ git_setup_macro }}}
%build
%if 0%{?suse_version}
#https://en.opensuse.org/openSUSE:Build_system_recipes#qmake
qmake-qt5 -makefile \
QMAKE_CFLAGS+="%optflags" \
QMAKE_CXXFLAGS+="%optflags" \
QMAKE_STRIP="/bin/true" \
PREFIX=%{_prefix} \
GitQlient.pro
%else
%qmake_qt5 PREFIX=%{_prefix} GitQlient.pro
%endif
%make_build
%install
make install INSTALL_ROOT=%{buildroot}
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%doc README.md
%license LICENSE
%{_bindir}/gitqlient
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%changelog
{{{ git_changelog }}}