From 0c17d0d249fee991d3a7d5bf201333e48a9e32c7f24130dfd6838474989f2da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 16:32:45 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main malcontent revision 65bf337a5a702e8d67abb8fdc7eb4817 --- .gitattributes | 23 ++++++ malcontent-0.10.4.tar.xz | 3 + malcontent.changes | 82 +++++++++++++++++++ malcontent.spec | 165 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 273 insertions(+) create mode 100644 .gitattributes create mode 100644 malcontent-0.10.4.tar.xz create mode 100644 malcontent.changes create mode 100644 malcontent.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/malcontent-0.10.4.tar.xz b/malcontent-0.10.4.tar.xz new file mode 100644 index 0000000..9192d94 --- /dev/null +++ b/malcontent-0.10.4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dec50b5892d28e1a26c475cd9eb994fe28adcac5190c504d1f797c8e9ad2f534 +size 268200 diff --git a/malcontent.changes b/malcontent.changes new file mode 100644 index 0000000..c07e784 --- /dev/null +++ b/malcontent.changes @@ -0,0 +1,82 @@ +------------------------------------------------------------------- +Tue May 10 16:20:08 UTC 2022 - Ferdinand Thiessen + +- Update to version 0.10.4 + + Remove superfluous arguments to i18n.merge_file. + + Updated translations. +- Drop upstream resolved patch: + + f433aaf8c8f82f0aeaedee664f08bc6fcad47b0d.patch + +------------------------------------------------------------------- +Tue Feb 1 12:58:52 UTC 2022 - Bjørn Lie + +- Update to version 0.10.3: + + Bugs fixed: + - Do not make malcontent-control user uninstallable using gui + - malcontent-control: + . Fix an unterminated option entry array + . Focus controls rather than user selector + + Updated translations. +- Changes from version 0.10.2: + + Hide the launcher for malcontent-control from gnome-shell if + using the GNOME desktop; find it via gnome-control-center + instead + + Bugs fixed: + - Limit depth of clone of subprojects + - Rename master to main branch + + Updated translations. +- Add f433aaf8c8f82f0aeaedee664f08bc6fcad47b0d.patch: Fix build + with meson 0.61.0. + +------------------------------------------------------------------- +Tue Sep 28 13:36:51 UTC 2021 - Dominique Leuenberger + +- Use %_pam_moduledir instead of harcoding %{_lib}/security + (boo#1191037). + +------------------------------------------------------------------- +Mon May 31 16:38:20 UTC 2021 - Ferdinand Thiessen + +- Update to version 0.10.1 + + Improve support for systems without accountsservice + + Fix some data loss-causing state synchronisation problems + + Hide support for flatpak user repositories, as they are + typically not configured on systems + + Add manpage docs for malcontent-client + + Consider terminology of ‘parental controls’ + + Improving padding/spacing in malcontent-control UI + + Reload ‘Restrict Apps’ list when installed apps change on system + + Add command line option to malcontent-control to pre-select a user + + Fails closed if accountsservice isn't available on the bus + + Fix partial loss of parental controls settings when partially + updating them + + libmalcontent-ui: Drop handling of eos-link desktop files + + user-controls: Only save the app filter if it’s changed + + Add Danish translation + + Update Ukrainian, Italian, Swedish, and Polish translation + +------------------------------------------------------------------- +Thu Dec 10 15:52:43 UTC 2020 - Stasiek Michalski + +- Split MalcontentControl into seperate package so a library + doesn't require a desktop application. + +------------------------------------------------------------------- +Wed Nov 18 11:09:13 UTC 2020 - Dominique Leuenberger + +- Don't actually install com.endlessm.ParentalControls.rules: this + just grants 'wheel'-group members access without password; as + openSUSE does not support 'wheel' by default, we only ship the + file as sample file (boo#1177974#c8). + +------------------------------------------------------------------- +Sat Oct 31 11:25:34 UTC 2020 - Marcus Rueckert + +- The library needs to require the daemon package as it is not + usable without it. e.g. gnome-control-center -> applications wont + list any informations. + +------------------------------------------------------------------- +Sat Sep 5 20:58:24 UTC 2020 - Dominique Leuenberger + +- Initial package, version 0.9.0. diff --git a/malcontent.spec b/malcontent.spec new file mode 100644 index 0000000..61280b8 --- /dev/null +++ b/malcontent.spec @@ -0,0 +1,165 @@ +# +# spec file for package malcontent +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: malcontent +Version: 0.10.4 +Release: 0 +Summary: Parental control system +License: GPL-2.0-or-later AND LGPL-2.1-or-later +URL: https://gitlab.freedesktop.org/pwithnall/malcontent +Source: https://tecnocode.co.uk/downloads/%{name}-%{version}.tar.xz +BuildRequires: itstool +BuildRequires: meson >= 0.50.0 +BuildRequires: pam-devel +BuildRequires: pkgconfig +BuildRequires: pkgconfig(accountsservice) >= 0.6.39 +BuildRequires: pkgconfig(appstream-glib) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(flatpak) +BuildRequires: pkgconfig(glib-2.0) >= 2.54.2 +BuildRequires: pkgconfig(glib-testing-0) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(gtk+-3.0) >= 3.24 +BuildRequires: pkgconfig(polkit-gobject-1) + +%description +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%lang_package + +%package -n libmalcontent-0-0 +Summary: Malcontent system library +Requires: malcontent >= %{version} + +%description -n libmalcontent-0-0 +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%package -n typelib-1_0-Malcontent-0 +Summary: Introspection bindings for the malcontent system library + +%description -n typelib-1_0-Malcontent-0 +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%package -n libmalcontent-ui-0-0 +Summary: Malcontent UI library + +%description -n libmalcontent-ui-0-0 +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%package -n typelib-1_0-MalcontentUi-0 +Summary: Introspection bindings for the malcontent UI library + +%description -n typelib-1_0-MalcontentUi-0 +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%package devel +Summary: Devel package +Requires: libmalcontent-0-0 = %{version} +Requires: libmalcontent-ui-0-0 = %{version} +Requires: typelib-1_0-Malcontent-0 = %{version} +Requires: typelib-1_0-MalcontentUi-0 = %{version} + +%description devel +Libmalcontent implements parental controls support which can be +used by applications to filter or limit the access of child +accounts to inappropriate content. + +%package control +Summary: Parental Control Application +Requires: malcontent >= %{version} + +%description control +Parental Control management application for Malcontent + +%prep +%autosetup -p1 +sed -i 's|env python3|python3|' malcontent-client/malcontent-client.py + +%build +%meson \ + -Dpamlibdir=%{_pam_moduledir} + %{nil} +%meson_build + +%install +%meson_install +# com.endlessm.ParentalControls.rules would allow 'wheel' group users access without polkit auth +# wheel is not used in openSUSE, so we simply package this file as an example %%doc file +mv %{buildroot}%{_datadir}/polkit-1/rules.d/com.endlessm.ParentalControls.rules . +%find_lang %{name} + +%post -n libmalcontent-0-0 -p /sbin/ldconfig +%postun -n libmalcontent-0-0 -p /sbin/ldconfig +%post -n libmalcontent-ui-0-0 -p /sbin/ldconfig +%postun -n libmalcontent-ui-0-0 -p /sbin/ldconfig + +%files +%license COPYING +%doc NEWS README.md +%doc com.endlessm.ParentalControls.rules +%{_pam_moduledir}/pam_malcontent.so +%{_bindir}/malcontent-client +%{_mandir}/man8/malcontent-client.8%{?ext_man} +%{_datadir}/dbus-1/interfaces/com.endlessm.ParentalControls.* +%dir %{_datadir}/accountsservice +%dir %{_datadir}/accountsservice/interfaces +%{_datadir}/accountsservice/interfaces/com.endlessm.ParentalControl* +%{_datadir}/polkit-1/actions/com.endlessm.ParentalControls.policy +%{_datadir}/polkit-1/actions/org.freedesktop.MalcontentControl.policy + +%files lang -f %{name}.lang + +%files -n libmalcontent-0-0 +%{_libdir}/libmalcontent-0.so.* + +%files -n typelib-1_0-Malcontent-0 +%{_libdir}/girepository-1.0/Malcontent-0.typelib + +%files -n libmalcontent-ui-0-0 +%{_libdir}/libmalcontent-ui-0.so.* + +%files -n typelib-1_0-MalcontentUi-0 +%{_libdir}/girepository-1.0/MalcontentUi-0.typelib + +%files devel +%{_includedir}/%{name}-0/ +%{_includedir}/%{name}-ui-0/ +%{_libdir}/libmalcontent-0.so +%{_libdir}/libmalcontent-ui-0.so +%{_libdir}/pkgconfig/malcontent-0.pc +%{_libdir}/pkgconfig/malcontent-ui-0.pc +%{_datadir}/gir-1.0/Malcontent-0.gir +%{_datadir}/gir-1.0/MalcontentUi-0.gir + +%files control +%{_bindir}/malcontent-control +%{_datadir}/metainfo/org.freedesktop.MalcontentControl.appdata.xml +%{_datadir}/icons/hicolor/*/apps/org.freedesktop.MalcontentControl* +%{_datadir}/applications/org.freedesktop.MalcontentControl.desktop + +%changelog