]>
Commit | Line | Data |
---|---|---|
7e964d17 JB |
1 | Summary: Ubuntu OnlineAccounts QML API |
2 | Summary(pl.UTF-8): API języka QML do Ubuntu OnlineAccounts | |
3 | Name: Qt5Qml-module-accounts | |
0680dbbd | 4 | Version: 0.6 |
e12d6b7f | 5 | Release: 2 |
7e964d17 JB |
6 | License: LGPL v2.1 |
7 | Group: Libraries | |
0680dbbd | 8 | #Source0Download: https://gitlab.com/accounts-sso/accounts-qml-module/tags |
2e75347e JB |
9 | # TODO: in the future use fake GET arg to force sane filename on df |
10 | #Source0: https://gitlab.com/accounts-sso/accounts-qml-module/repository/archive.tar.bz2?ref=VERSION_%{version}&fake_out=/%{name}-%{version}.tar.bz2 | |
11 | Source0: archive.tar.gz%3Fref=VERSION_%{version} | |
0680dbbd JB |
12 | # Source0-md5: d62f676e837bfa2b8bb5c12507a36ce9 |
13 | URL: https://gitlab.com/accounts-sso/accounts-qml-module | |
7e964d17 JB |
14 | BuildRequires: Qt5Qml-devel >= 5 |
15 | BuildRequires: doxygen | |
16 | BuildRequires: glib2-devel >= 2.0 | |
17 | BuildRequires: libaccounts-qt5-devel | |
18 | BuildRequires: libsignon-qt5-devel | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: qt5-build >= 5 | |
21 | BuildRequires: qt5-qmake >= 5 | |
22 | BuildRequires: qt5-qtdeclarative >= 5 | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | Ubuntu OnlineAccounts QML API. It is part of the accounts-sso project. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | API języka QML do Ubuntu OnlineAccounts. Jest to część projektu | |
30 | accounts-sso. | |
31 | ||
32 | %package apidocs | |
33 | Summary: QML API documentation for Ubuntu OnlineAccounts | |
34 | Summary(pl.UTF-8): Dokumentacja API QML Ubuntu OnlineAccounts | |
35 | Group: Documentation | |
e12d6b7f ER |
36 | %if "%{_rpmversion}" >= "5" |
37 | BuildArch: noarch | |
38 | %endif | |
7e964d17 JB |
39 | |
40 | %description apidocs | |
41 | QML API documentation for Ubuntu OnlineAccounts. | |
42 | ||
43 | %description apidocs -l pl.UTF-8 | |
44 | Dokumentacja API QML Ubuntu OnlineAccounts. | |
45 | ||
46 | %prep | |
0680dbbd | 47 | %setup -q -n accounts-qml-module-VERSION_%{version}-45a153eb0f6c65ee7b0c347bce723acd821bbb00 |
7e964d17 JB |
48 | |
49 | %build | |
50 | qmake-qt5 accounts-qml-module.pro \ | |
51 | QMAKE_CXX="%{__cxx}" \ | |
52 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
53 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
54 | ||
55 | %{__make} | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
62 | ||
63 | install -d $RPM_BUILD_ROOT%{_docdir}/qt5-doc | |
64 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/accounts-qml-module/doc $RPM_BUILD_ROOT%{_docdir}/qt5-doc/accounts-qml-module | |
65 | ||
66 | # test | |
67 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/tst_plugin | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %dir %{_libdir}/qt5/qml/Ubuntu | |
75 | %dir %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts | |
76 | %attr(755,root,root) %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/libAccounts.so | |
77 | %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/plugin.qmltypes | |
78 | %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/qmldir | |
79 | ||
80 | %files apidocs | |
81 | %defattr(644,root,root,755) | |
82 | %{_docdir}/qt5-doc/accounts-qml-module |