diff --git a/anda/others/unity-greeter/0001-Remove-libido.patch b/anda/others/unity-greeter/0001-Remove-libido.patch new file mode 100644 index 0000000000..4cc5a091f7 --- /dev/null +++ b/anda/others/unity-greeter/0001-Remove-libido.patch @@ -0,0 +1,37 @@ +diff --git a/configure.ac b/configure.ac +index bd71aa5..92995f8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -21,7 +21,6 @@ PKG_CHECK_MODULES(UNITY_GREETER, [ + gtk+-3.0 + gdk-x11-3.0 + indicator3-0.4 +- libido3-0.1 >= 13.10.0 + liblightdm-gobject-1 >= 1.12.0 + freetype2 + cairo-ft +diff --git a/src/indicator.vapi b/src/indicator.vapi +index 9b28c72..d3d1eff 100644 +--- a/src/indicator.vapi ++++ b/src/indicator.vapi +@@ -158,8 +158,3 @@ namespace Indicator { + [CCode (cheader_filename = "gtk/gtk.h,libindicator/indicator.h,libindicator/indicator-desktop-shortcuts.h,libindicator/indicator-image-helper.h,libindicator/indicator-object.h,libindicator/indicator-service.h,libindicator/indicator-service-manager.h")] + public static void image_helper_update (Gtk.Image image, string name); + } +- +-[CCode (cheader_filename="libido/libido.h", lower_case_cprefix = "ido_")] +-namespace Ido { +- public void init (); +-} +diff --git a/src/unity-greeter.vala b/src/unity-greeter.vala +index 929fa2c..2ac649a 100644 +--- a/src/unity-greeter.vala ++++ b/src/unity-greeter.vala +@@ -554,7 +554,6 @@ public class UnityGreeter + Environment.set_variable ("GTK_MODULES", "atk-bridge", false); + + Gtk.init (ref args); +- Ido.init (); + + log_timer = new Timer (); + Log.set_default_handler (log_cb); diff --git a/anda/others/unity-greeter/anda.hcl b/anda/others/unity-greeter/anda.hcl new file mode 100644 index 0000000000..fe248ed138 --- /dev/null +++ b/anda/others/unity-greeter/anda.hcl @@ -0,0 +1,5 @@ +project "pkg" { + rpm { + spec = "unity-greeter.spec" + } +} diff --git a/anda/others/unity-greeter/unity-greeter.spec b/anda/others/unity-greeter/unity-greeter.spec new file mode 100644 index 0000000000..a5f80427bf --- /dev/null +++ b/anda/others/unity-greeter/unity-greeter.spec @@ -0,0 +1,74 @@ +Name: unity-greeter +Version: 22.04.1 +Release: %autorelease +Summary: Unity Greeter for Lightdm + +License: GPLv3 +URL: https://launchpad.net/unity-greeter +Source0: http://archive.ubuntu.com/ubuntu/pool/universe/u/unity-greeter/unity-greeter_22.04.1-0ubuntu2.tar.xz +Patch1: 0001-Remove-libido.patch + +BuildRequires: automake libtool gnome-common +BuildRequires: intltool +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(gdk-x11-3.0) +BuildRequires: pkgconfig(indicator3-0.4) +BuildRequires: pkgconfig(liblightdm-gobject-1) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(cairo-ft) +BuildRequires: pkgconfig(libcanberra) +BuildRequires: pkgconfig(pixman-1) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xext) +BuildRequires: vala +BuildRequires: unity-settings-daemon-devel +Requires: unity-settings-daemon +Requires: lightdm%{?_isa} + +%description +The greeter (login screen) application for Unity. It is implemented as a LightDM greeter. + +%prep +%autosetup -p1 + +%build +NOCONFIGURE=1 \ +./autogen.sh + +%configure --disable-static + +%make_build + +%install +%make_install + +%find_lang %{name} + +%ldconfig_post + +%pre +%{_sbindir}/update-alternatives \ + --remove lightdm-greeter \ + %{_datadir}/xgreeters/unity-greeter.desktop 2> /dev/null ||: + +%postun +if [ ${1} -eq 0 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : +fi + +%posttrans +glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || : + +%files -f %{name}.lang +%doc NEWS +%license COPYING +%{_sbindir}/unity-greeter +%{_datadir}/glib-2.0/schemas/com.canonical.unity-greeter.gschema.xml +%dir %{_datadir}/unity-greeter +%{_datadir}/unity-greeter/*.png +%{_datadir}/unity-greeter/*.svg +%{_datadir}/xgreeters/unity-greeter.desktop +%{_mandir}/man1/unity-greeter.1.gz + +%changelog +%autochangelog