diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2a7f11a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xxkb-1.11.1-src.tar.gz diff --git a/README.md b/README.md new file mode 100644 index 0000000..4e198c8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# xxkb + +The xxkb package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..6e14421 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (xxkb-1.11.1-src.tar.gz) = 081629ccee41016cd468bd411c8584298bf64d4d791bf803490f6286a330401b933f895fbff2f4a6d1fcfe86c0490267f86d334436c1cea743ad08d97b26038f diff --git a/xxkb-default-config.patch b/xxkb-default-config.patch new file mode 100644 index 0000000..f13a7e8 --- /dev/null +++ b/xxkb-default-config.patch @@ -0,0 +1,30 @@ +--- a/XXkb.ad.var 2014-09-08 21:06:02.000000000 +0300 ++++ b/XXkb.ad.var 2019-05-02 15:14:33.338427752 +0300 +@@ -4,10 +4,10 @@ + XXkb.group.alt: 2 + + XXkb.mainwindow.enable: yes +-XXkb.mainwindow.geometry: 48x48 +-XXkb.mainwindow.image.1: en48.xpm +-XXkb.mainwindow.image.2: ru48.xpm +-XXkb.mainwindow.image.3: su48.xpm ++XXkb.mainwindow.geometry: 15x15+2+2 ++XXkb.mainwindow.image.1: ru15.xpm ++XXkb.mainwindow.image.2: en15.xpm ++XXkb.mainwindow.image.3: su15.xpm + XXkb.mainwindow.image.4: + XXkb.mainwindow.label.font: -misc-*-r-*-20-* + +@@ -18,10 +18,10 @@ + XXkb.*.label.background: blue4 + XXkb.*.label.enable: no + +-! XXkb.mainwindow.type: ++XXkb.mainwindow.type: tray + ! possible values - normal, top, tray, wmaker + +-XXkb.button.enable: yes ++XXkb.button.enable: no + XXkb.button.geometry: 15x15-60+7 + XXkb.button.image.1: en15.xpm + XXkb.button.image.2: ru15.xpm diff --git a/xxkb.spec b/xxkb.spec new file mode 100644 index 0000000..3c56121 --- /dev/null +++ b/xxkb.spec @@ -0,0 +1,75 @@ +Name: xxkb +Version: 1.11.1 +Release: 13%{?dist} +Summary: Keyboard layout indicator and switcher + +License: Artistic 2.0 +Url: http://xxkb.sourceforge.net +Source: http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}-src.tar.gz +# Minimal changes in default config file to make xxkb works out of box on +# modern systems +Patch0: %{name}-default-config.patch + +BuildRequires: make +BuildRequires: gcc +BuildRequires: imake +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xpm) +BuildRequires: pkgconfig(xt) + +%description +The xxkb program is a keyboard layout switcher and indicator. Unlike the +programs that reload keyboard maps and use their own hot-keys, xxkb is a simple +GUI for XKB (X KeyBoard extension) and just sends commands to and accepts events +from XKB. That means that it will work with the existing setup of your X Server +without any modifications. + +%prep +%autosetup -p1 + +%build +xmkmf +sed -i "s|CCOPTIONS =|CCOPTIONS = %{build_cflags}|" Makefile +sed -i "s|EXTRA_LDOPTIONS =|EXTRA_LDOPTIONS = %{build_ldflags}|" Makefile +%make_build + +%install +%make_install install.man + +%files +%doc README +%license LICENSE +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_datadir}/X11/app-defaults/XXkb +%{_mandir}/man1/xxkb.1x.* +%dir %{_prefix}/lib/X11 +%{_prefix}/lib/X11/app-defaults + +%changelog +* Sat Jan 21 2023 Fedora Release Engineering - 1.11.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 1.11.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 1.11.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.11.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jan 28 2021 Fedora Release Engineering - 1.11.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.11.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 1.11.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 1.11.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed May 01 2019 Artem Polishchuk - 1.11.1-5 +- Initial package