diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a74f4f4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/accounts-qml-module-VERSION_0.7.tar.bz2 +/accounts-qml-module-05e79ebbbf3784a87f72b7be571070125c10dfe3.tar.gz diff --git a/accounts-qml-module-Werror.patch b/accounts-qml-module-Werror.patch new file mode 100644 index 0000000..1dcef94 --- /dev/null +++ b/accounts-qml-module-Werror.patch @@ -0,0 +1,12 @@ +diff -up accounts-qml-module-VERSION_0.7/common-project-config.pri.Werror accounts-qml-module-VERSION_0.7/common-project-config.pri +--- accounts-qml-module-VERSION_0.7/common-project-config.pri.Werror 2016-06-08 02:26:26.000000000 -0500 ++++ accounts-qml-module-VERSION_0.7/common-project-config.pri 2021-02-04 08:59:43.179085414 -0600 +@@ -3,7 +3,7 @@ + #----------------------------------------------------------------------------- + + # we don't like warnings... +-QMAKE_CXXFLAGS += -Werror -Wno-write-strings ++QMAKE_CXXFLAGS += -Wno-write-strings + # Disable RTTI + QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti + # Use C++11 diff --git a/accounts-qml-module.spec b/accounts-qml-module.spec new file mode 100644 index 0000000..bf7257b --- /dev/null +++ b/accounts-qml-module.spec @@ -0,0 +1,159 @@ +%global gitdate 20231216 +%global commit0 05e79ebbbf3784a87f72b7be571070125c10dfe3 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: accounts-qml-module +Summary: QML bindings for libaccounts-qt + libsignon-qt +Version: 0.7^%{gitdate}.%{shortcommit0} +Release: 7%{?dist} + +License: LGPL-2.1-only +URL: https://gitlab.com/accounts-sso/accounts-qml-module +Source: https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/%{commit0}/%{name}-%{commit0}.tar.gz + +## upstream patches + +## upstreamable patches + +BuildRequires: qt5-rpm-macros +BuildRequires: qt5-doctools +BuildRequires: cmake(AccountsQt5) +BuildRequires: cmake(Qt5Qml) +BuildRequires: cmake(SignOnQt5) + +BuildRequires: qt6-rpm-macros +BuildRequires: qt6-doctools +BuildRequires: cmake(AccountsQt6) +BuildRequires: cmake(Qt6Qml) +BuildRequires: cmake(SignOnQt6) + +BuildRequires: make + +%description +This QML module provides an API to manage the user's online accounts and get +their authentication data. It's a tiny wrapper around the Qt-based APIs of +libaccounts-qt and libsignon-qt. + +%package qt5 +Summary: Qt5 build of %{name} +%description qt5 +%{summary}. + +%package qt6 +Summary: Qt6 build of %{name} +Obsoletes: %{name} < 0.7^20231216 +%description qt6 +%{summary}. + +%package doc +Summary: Documentation for %{name} +BuildArch: noarch +%description doc +This package contains the developer documentation for accounts-qml-module. + + +%prep +%autosetup -n %{name}-%{commit0} -p1 + + +%build +mkdir %{_target_platform}_qt5 +pushd %{_target_platform}_qt5 +%{qmake_qt5} \ + CONFIG+=release \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + .. +popd + +%make_build -C %{_target_platform}_qt5 + + +mkdir %{_target_platform}_qt6 +pushd %{_target_platform}_qt6 +%{qmake_qt6} \ + CONFIG+=release \ + PREFIX=%{_prefix} \ + LIBDIR=%{_libdir} \ + .. +popd + +%make_build -C %{_target_platform}_qt6 + + +%install +%make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform}_qt5 +%make_install INSTALL_ROOT=%{buildroot} -C %{_target_platform}_qt6 + +## unpackaged files +# remove tests +rm %{buildroot}%{_bindir}/tst_plugin +# avoid rpmlint warning +rm -fv %{buildroot}/%{_datadir}/%{name}/doc/html/.gitignore + +%files qt6 +%{_qt6_qmldir}/SSO/ + +%files qt5 +%{_qt5_qmldir}/SSO/ + +%files doc +%license COPYING +%doc README.md +%doc %{_datadir}/%{name}/ + + +%changelog +* Fri Jan 16 2026 Fedora Release Engineering - 0.7^20231216.05e79eb-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Wed Jul 23 2025 Fedora Release Engineering - 0.7^20231216.05e79eb-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 0.7^20231216.05e79eb-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Jul 17 2024 Fedora Release Engineering - 0.7^20231216.05e79eb-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 0.7^20231216.05e79eb-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.7^20231216.05e79eb-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Dec 26 2023 Alessandro Astone - 0.7^20231216.05e79eb-1 +- Build git snapshot for both qt5 and qt6 +- QML module renamed to SSO.OnlineAccounts + +* Wed Jul 19 2023 Fedora Release Engineering - 0.7-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 0.7-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 0.7-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.7-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Feb 04 2021 Rex Dieter - 0.7-5 +- build without -Werror + +* Mon Jan 25 2021 Fedora Release Engineering - 0.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Jul 31 2020 Fedora Release Engineering - 0.7-3 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Feb 11 2020 Rex Dieter - 0.7-1 +- first try, inspiration from opensuse packaging + diff --git a/sources b/sources new file mode 100644 index 0000000..944f507 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (accounts-qml-module-05e79ebbbf3784a87f72b7be571070125c10dfe3.tar.gz) = 439b596d130dee81d2f7e969962c75f51413ceb5ebb7807db229e593466c22d0c87e249515a233bd18c47bf1e58f5631ab30adf8849e71fa4f3d7bd29b6974de