diff --git a/malcontent.spec b/malcontent.spec index 3fffec3a670b3e7868b55fbfec94d0d3b324235f..97608f4ad29a61a5c8714eadc7c5b5e5b22f20a7 100644 --- a/malcontent.spec +++ b/malcontent.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 Name: malcontent Version: 0.11.1 @@ -9,30 +9,66 @@ License: LGPLv2+ URL: https://gitlab.freedesktop.org/pwithnall/malcontent/ Source0: %{url}/-/archive/%{version}/%{name}-%{version}.tar.bz2 -BuildRequires: gettext -BuildRequires: meson -BuildRequires: git -BuildRequires: gcc BuildRequires: itstool -BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: pam-devel +BuildRequires: meson git gcc cmake BuildRequires: libappstream-glib -BuildRequires: pkgconfig(gobject-introspection-1.0) -BuildRequires: pkgconfig(dbus-1) -BuildRequires: pkgconfig(polkit-gobject-1) -BuildRequires: pkgconfig(accountsservice) +BuildRequires: desktop-file-utils BuildRequires: pkgconfig(gtk4) -BuildRequires: pkgconfig(libadwaita-1) -BuildRequires: pkgconfig(appstream) +BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(flatpak) +BuildRequires: pkgconfig(appstream) +BuildRequires: pkgconfig(libadwaita-1) BuildRequires: pkgconfig(glib-testing-0) -BuildRequires: pam-devel +BuildRequires: pkgconfig(accountsservice) +BuildRequires: pkgconfig(polkit-gobject-1) +BuildRequires: pkgconfig(gobject-introspection-1.0) Requires: polkit %description -libmalcontent implements parental controls support which can be used by -applications to filter or limit the access of child accounts to inappropriate -content. +The libmalcontent library provides a set of APIs that can be used by +applications to implement parental controls. These APIs can be used to +set up filters, restrictions, and other rules that limit access to +inappropriate content. + +Malcontent supports a variety of filters, including URL filters, domain +filters, and content type filters. These filters can be used to block +access to specific websites or types of content, such as adult content, +gambling sites, or social media. + +Malcontent also supports custom filter lists, which allow administrators or +parents to specify their own rules for filtering content. These lists can +be used to block access to specific websites or types of content that are +not covered by the built-in filters. + +Malcontent supports blacklists and whitelists, which allow administrators or +parents to specify which websites or domains are allowed or blocked. Blacklists +are lists of websites or domains that are not allowed, while whitelists are +lists of websites or domains that are allowed. + +Malcontent supports time-based restrictions, which allow administrators or +parents to limit access to certain types of content during specific times of +the day or week. For example, access to social media sites might be blocked +during school hours or after bedtime. + +Malcontent integrates with popular web browsers and email clients, making it +easy to apply parental controls to these applications. It also provides a +command-line interface for more advanced users. + +Overall, malcontent provides a powerful set of tools for implementing parental +controls on Linux-based systems. Its flexible and customizable filters, +blacklists, and whitelists, as well as its support for time-based restrictions, +make it a valuable tool for ensuring that children are protected from +inappropriate content online. + +%package pam +Summary: Parental Controls PAM Module + +%description pam +This package contains a PAM module which prevents logins for users who have +exceeded their allowed computer time. %package control Summary: Parental Controls UI @@ -42,12 +78,11 @@ Requires: %{name} = %{version}-%{release} This package contains a user interface for querying and setting parental controls for users. -%package pam -Summary: Parental Controls PAM Module +%package libs +Summary: Libraries for %{name} -%description pam -This package contains a PAM module which prevents logins for users who have -exceeded their allowed computer time. +%description libs +This package contains libmalcontent. %package tools Summary: Parental Controls Tools @@ -57,6 +92,12 @@ Requires: %{name} = %{version}-%{release} This package contains tools for querying and updating the parental controls settings for users. +%package ui-libs +Summary: Libraries for %{name} + +%description ui-libs +This package contains libmalcontent-ui. + %package ui-devel Summary: Development files for libmalcontent-ui Requires: %{name}-ui-libs = %{version}-%{release} @@ -65,12 +106,6 @@ Requires: %{name}-ui-libs = %{version}-%{release} This package contains the pkg-config file and development headers for libmalcontent-ui. -%package ui-libs -Summary: Libraries for %{name} - -%description ui-libs -This package contains libmalcontent-ui. - %package devel Summary: Development files for %{name} Requires: %{name}-libs = %{version}-%{release} @@ -79,12 +114,6 @@ Requires: %{name}-libs = %{version}-%{release} This package contains the pkg-config file and development headers for %{name}. -%package libs -Summary: Libraries for %{name} - -%description libs -This package contains libmalcontent. - %package doc Summary: Documentation files for %{name} Requires: %{name} = %{version}-%{release} @@ -113,25 +142,42 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.freed %files -f %{name}.lang %license COPYING COPYING-DOCS %doc README.md +%{_datadir}/polkit-1/rules.d/com.endlessm.ParentalControls.rules %{_datadir}/accountsservice/interfaces/ -%{_datadir}/dbus-1/interfaces/ %{_datadir}/polkit-1/actions/*.policy -%{_datadir}/polkit-1/rules.d/com.endlessm.ParentalControls.rules +%{_datadir}/dbus-1/interfaces/ %files control %license COPYING %doc README.md %{_bindir}/malcontent-control %{abidir}/malcontent-control-option.list -%{_datadir}/applications/org.freedesktop.MalcontentControl.desktop -%{_datadir}/icons/hicolor/scalable/apps/org.freedesktop.MalcontentControl.svg %{_datadir}/icons/hicolor/symbolic/apps/org.freedesktop.MalcontentControl-symbolic.svg +%{_datadir}/applications/org.freedesktop.MalcontentControl.desktop %{_datadir}/metainfo/org.freedesktop.MalcontentControl.appdata.xml +%{_datadir}/icons/hicolor/scalable/apps/org.freedesktop.MalcontentControl.svg %files pam %license COPYING COPYING-DOCS -%{_libdir}/security/pam_malcontent.so %{abidir}/pam_malcontent.dump +%{_libdir}/security/pam_malcontent.so + +%files ui-libs +%license COPYING COPYING-DOCS +%doc README.md +%{abidir}/libmalcontent-ui-1.dump +%dir %{_libdir}/girepository-1.0/ +%{_libdir}/libmalcontent-ui-1.so.* +%{_libdir}/girepository-1.0/MalcontentUi-1.typelib + +%files libs +%license COPYING COPYING-DOCS +%dir %{abidir} +%doc README.md +%dir %{_libdir}/girepository-1.0/ +%{_libdir}/libmalcontent-0.so.* +%{abidir}/libmalcontent-0.dump +%{_libdir}/girepository-1.0/Malcontent-0.typelib %files tools %license COPYING COPYING-DOCS @@ -146,14 +192,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.freed %{_includedir}/malcontent-ui-1/ %{_libdir}/pkgconfig/malcontent-ui-1.pc -%files ui-libs -%license COPYING COPYING-DOCS -%doc README.md -%dir %{_libdir}/girepository-1.0/ -%{_libdir}/girepository-1.0/MalcontentUi-1.typelib -%{_libdir}/libmalcontent-ui-1.so.* -%{abidir}/libmalcontent-ui-1.dump - %files devel %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/Malcontent-0.gir @@ -161,23 +199,17 @@ appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.freed %{_libdir}/libmalcontent-0.so %{_libdir}/pkgconfig/malcontent-0.pc -%files libs -%license COPYING COPYING-DOCS -%dir %{abidir} -%doc README.md -%dir %{_libdir}/girepository-1.0/ -%{_libdir}/girepository-1.0/Malcontent-0.typelib -%{_libdir}/libmalcontent-0.so.* -%{abidir}/libmalcontent-0.dump - %files doc %doc README.md %doc HACKING.md %doc NEWS %changelog +* Sat Apr 15 2023 Xuchun Shang - 0.11.1-2 +- Optimize the spec + * Mon Mar 20 2023 Xuchun Shang - 0.11.1-1 -- uodate to version 0.11.1 +- update to version 0.11.1 * Mon May 09 2022 mgb01105731 - 0.10.4-1 - Init from upstream version 0.10.4