summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--indicator-keylock-3.1.0-gcc10.patch17
-rw-r--r--indicator-keylock-3.1.0-icons.patch12
-rw-r--r--indicator-keylock-3.1.0-ldflags.patch10
-rw-r--r--indicator-keylock.spec54
-rw-r--r--sources1
6 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..153b3ba
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/indicator-keylock_3.1.0.tar.xz
diff --git a/indicator-keylock-3.1.0-gcc10.patch b/indicator-keylock-3.1.0-gcc10.patch
new file mode 100644
index 0000000..df8faf0
--- /dev/null
+++ b/indicator-keylock-3.1.0-gcc10.patch
@@ -0,0 +1,17 @@
+diff -up indicator-keylock-3.1.0/src/lockstates.h.gcc10 indicator-keylock-3.1.0/src/lockstates.h
+--- indicator-keylock-3.1.0/src/lockstates.h.gcc10 2020-07-21 10:20:18.489121473 -0400
++++ indicator-keylock-3.1.0/src/lockstates.h 2020-07-21 10:22:00.470093104 -0400
+@@ -2,11 +2,11 @@
+ #define _LOCKSTATES_H
+ #include <glib.h>
+
+-enum {
++enum LockKey {
+ INDICATOR_KEYLOCK_CAPS = 0,
+ INDICATOR_KEYLOCK_NUM = 1,
+ INDICATOR_KEYLOCK_SCROLL = 2
+-} LockKey;
++};
+
+ gboolean *get_led_states();
+ gboolean init_xkb_extension(GCallback show_func);
diff --git a/indicator-keylock-3.1.0-icons.patch b/indicator-keylock-3.1.0-icons.patch
new file mode 100644
index 0000000..2294cb4
--- /dev/null
+++ b/indicator-keylock-3.1.0-icons.patch
@@ -0,0 +1,12 @@
+The rest are Ubuntu-specific icon themes.
+
+--- indicator-keylock-3.1.0/pixmaps/Makefile.am 2016-03-02 01:33:43.000000000 -0600
++++ indicator-keylock-3.1.0/pixmaps/Makefile.am 2016-12-02 00:38:08.169847700 -0600
+@@ -1,4 +1,6 @@
+-SUBDIRS = hicolor \
++SUBDIRS = hicolor
++
++DIST_SUBDIRS = \
+ elementary \
+ Humanity \
+ Humanity-Dark \
diff --git a/indicator-keylock-3.1.0-ldflags.patch b/indicator-keylock-3.1.0-ldflags.patch
new file mode 100644
index 0000000..ee4878e
--- /dev/null
+++ b/indicator-keylock-3.1.0-ldflags.patch
@@ -0,0 +1,10 @@
+--- indicator-keylock-3.1.0/src/Makefile.am 2016-03-02 01:33:43.000000000 -0600
++++ indicator-keylock-3.1.0/src/Makefile.am 2016-12-02 00:41:41.989003700 -0600
+@@ -5,5 +5,5 @@ indicator_keylock_SOURCES = main.c \
+ preferences.c preferences.h
+ indicator_keylock_CFLAGS = -g -Wall -DDATADIR=\"$(datadir)\" \
+ $(PACKAGE_CFLAGS)
+-indicator_keylock_LDFLAGS = -g -Wall -export-dynamic -Xlinker --no-as-needed \
+- $(PACKAGE_LIBS)
++indicator_keylock_LDFLAGS = -g -Wall -rdynamic
++indicator_keylock_LDADD = $(PACKAGE_LIBS)
diff --git a/indicator-keylock.spec b/indicator-keylock.spec
new file mode 100644
index 0000000..da9a86c
--- /dev/null
+++ b/indicator-keylock.spec
@@ -0,0 +1,54 @@
+Name: indicator-keylock
+Version: 3.1.0
+Release: 1%{?dist}
+Summary: Lock Keys indicator applet
+
+License: GPLv3
+URL: https://launchpad.net/indicator-keylock
+Source0: http://archive.ubuntu.com/ubuntu/pool/universe/i/%{name}/%{name}_%{version}.tar.xz
+Patch0: indicator-keylock-3.1.0-icons.patch
+Patch1: indicator-keylock-3.1.0-ldflags.patch
+Patch2: indicator-keylock-3.1.0-gcc10.patch
+
+BuildRequires: gcc
+BuildRequires: gnome-common
+BuildRequires: intltool
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(appindicator3-0.1)
+BuildRequires: pkgconfig(unique-3.0)
+BuildRequires: pkgconfig(libnotify)
+BuildRequires: pkgconfig(x11)
+
+%description
+An indicator that displays the status of the keyboard lock keys.
+
+
+%prep
+%autosetup -p1
+gnome-autogen.sh
+
+
+%build
+%configure
+%make_build
+
+
+%install
+%make_install
+
+
+%files
+%license COPYING
+%doc AUTHORS
+%{_sysconfdir}/xdg/autostart/indicator-keylock.desktop
+%{_bindir}/indicator-keylock
+%{_datadir}/applications/indicator-keylock.desktop
+%{_datadir}/glib-2.0/schemas/apps.indicators.keylock.gschema.xml
+%{_datadir}/icons/hicolor/22x22/status/*-lock-*.png
+%{_datadir}/%{name}
+
+
+%changelog
+* Tue Jul 21 2020 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.0-1
+- Initial version
diff --git a/sources b/sources
new file mode 100644
index 0000000..5b65fc3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (indicator-keylock_3.1.0.tar.xz) = b6c0c5f4cd835db0a491ee97278a822fd71056f00411e6ab8f8a06eae0106701257b2183851f7735be053ef0dbc221017933f664e3bccba2ff6bf11ff89a46cf