commit 991b043a07115a55ab19ba4d7749bdadcb8f8302f0756dc29e4bd383cf8e3633 Author: Dominique Leuenberger Date: Mon Oct 26 08:09:48 2020 +0000 Accepting request 842837 from GNOME:Next Introduce malcontent, a new dep for GNOME OBS-URL: https://build.opensuse.org/request/show/842837 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/malcontent?expand=0&rev=1 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/malcontent-0.9.0.tar.xz b/malcontent-0.9.0.tar.xz new file mode 100644 index 0000000..e48d110 --- /dev/null +++ b/malcontent-0.9.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e973044c07237dfb4ec78afcde2a88136b13d4c5f87f556e36e4682067a852c7 +size 192524 diff --git a/malcontent.changes b/malcontent.changes new file mode 100644 index 0000000..ddcb1c5 --- /dev/null +++ b/malcontent.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..793026c --- /dev/null +++ b/malcontent.spec @@ -0,0 +1,150 @@ +# +# spec file for package malcontent +# +# Copyright (c) 2020 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.9.0 +Release: 0 +Summary: Parental control system +License: LGPL-2.1-or-later AND GPL-2.0-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 + +%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. + +%prep +%autosetup + +%build +%meson \ + -Dpamlibdir=/%{_lib}/security +%meson_build + +%install +%meson_install +%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 +/%{_lib}/security/pam_malcontent.so +%{_bindir}/malcontent-client +%{_bindir}/malcontent-control +%{_mandir}/man8/malcontent-client.8%{?ext_man} +%{_datadir}/dbus-1/interfaces/com.endlessm.ParentalControls.* +%{_datadir}/metainfo/org.freedesktop.MalcontentControl.appdata.xml +%{_datadir}/icons/hicolor/*/apps/org.freedesktop.MalcontentControl* +%{_datadir}/applications/org.freedesktop.MalcontentControl.desktop +%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 +%{_datadir}/polkit-1/rules.d/com.endlessm.ParentalControls.rules + +%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 + +%changelog