]>
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 ER |
35 | %if "%{_rpmversion}" >= "5" |
36 | BuildArch: noarch | |
37 | %endif | |
7e964d17 JB |
38 | |
39 | %description apidocs | |
40 | QML API documentation for Ubuntu OnlineAccounts. | |
41 | ||
42 | %description apidocs -l pl.UTF-8 | |
43 | Dokumentacja API QML Ubuntu OnlineAccounts. | |
44 | ||
45 | %prep | |
8e62ac21 | 46 | %setup -q -n accounts-qml-module-VERSION_%{version}-cfadea7ba8ba4011ae20d771696eb74deb87201e |
7e964d17 JB |
47 | |
48 | %build | |
49 | qmake-qt5 accounts-qml-module.pro \ | |
50 | QMAKE_CXX="%{__cxx}" \ | |
51 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
52 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
53 | ||
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
61 | ||
62 | install -d $RPM_BUILD_ROOT%{_docdir}/qt5-doc | |
63 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/accounts-qml-module/doc $RPM_BUILD_ROOT%{_docdir}/qt5-doc/accounts-qml-module | |
64 | ||
65 | # test | |
66 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/tst_plugin | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %dir %{_libdir}/qt5/qml/Ubuntu | |
74 | %dir %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts | |
75 | %attr(755,root,root) %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/libAccounts.so | |
76 | %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/plugin.qmltypes | |
77 | %{_libdir}/qt5/qml/Ubuntu/OnlineAccounts/qmldir | |
78 | ||
79 | %files apidocs | |
80 | %defattr(644,root,root,755) | |
81 | %{_docdir}/qt5-doc/accounts-qml-module |