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