-
Notifications
You must be signed in to change notification settings - Fork 16
/
avalon.spec
73 lines (54 loc) · 1.66 KB
/
avalon.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Name: avalon
Version: 1.0.442
Release: 1
Summary: RSDN offline client
Group: Applications/Internet
License: BSD-2-clause
URL: https://github.com/rsdn/avalon
Requires: libqt4 >= 4.4, aspell, zlib
BuildRequires: libqt4-devel >= 4.4, aspell-devel, zlib-devel
%if 0%{?suse_version}
Requires: libQtWebKit4
BuildRequires: libQtWebKit-devel
%endif
%if 0%{?fedora}
Requires: qtwebkit
BuildRequires: qtwebkit-devel
%endif
%define qmake qmake
%if 0%{?fedora}
%define qmake qmake-qt4
%endif
Source0: https://build.opensuse.org/source/home:antonbatenev:avalon/avalon/avalon_%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Offile client for Russian Software Developer Network
%prep
%setup -q -n avalon
%build
%{qmake} -project -recursive -Wall -nopwd -o avalon.pro \
"CONFIG += debug_and_release" \
"QT += network sql webkit" \
"LIBS += -laspell -lz" \
"DEFINES += AVALON_PACKAGE" \
src
%{qmake} avalon.pro
make
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/pixmaps
install -d %{buildroot}%{_datadir}/applications
install -m755 avalon %{buildroot}%{_bindir}/avalon
install -m644 src/icons/avalon.xpm %{buildroot}%{_datadir}/pixmaps/avalon.xpm
install -m644 avalon.desktop %{buildroot}%{_datadir}/applications/avalon.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md src/sql/avalon.mysql.sql src/sql/avalon.sqlite.sql
%{_bindir}/avalon
%{_datadir}/pixmaps/avalon.xpm
%{_datadir}/applications/avalon.desktop
%changelog
* Thu Nov 26 2014 Anton Batenev <antonbatenev@yandex.ru> 1.0.442-1
- Initial RPM release