diff --git a/README.md b/README.md index ef57751..7f4ecd5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libgnomekbd +Gnome keyboard library. + diff --git a/libgnomekbd-2.26.0-libxklavier-4.0.patch b/libgnomekbd-2.26.0-libxklavier-4.0.patch new file mode 100644 index 0000000..12c9c7d --- /dev/null +++ b/libgnomekbd-2.26.0-libxklavier-4.0.patch @@ -0,0 +1,11 @@ +--- libgnomekbd-2.26.0.orig/libgnomekbd/gkbd-indicator.c 2009-03-14 00:01:12.000000000 +0100 ++++ libgnomekbd-2.26.0/libgnomekbd/gkbd-indicator.c 2009-07-05 17:54:24.491272390 +0200 +@@ -717,7 +717,7 @@ + globals.registry = + xkl_config_registry_get_instance (globals.engine); + +- xkl_config_registry_load (globals.registry); ++ xkl_config_registry_load (globals.registry,FALSE); + + gconf_client = gconf_client_get_default (); + diff --git a/libgnomekbd.spec b/libgnomekbd.spec new file mode 100644 index 0000000..eb8b2cd --- /dev/null +++ b/libgnomekbd.spec @@ -0,0 +1,157 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: libgnomekbd +Version: 3.6.0 +Release: 1mamba +Summary: Gnome keyboard library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.gnome.org +Source: http://ftp.gnome.org/pub/GNOME/sources/libgnomekbd/%{majver}/libgnomekbd-%{version}.tar.xz +Patch0: %{name}-2.26.0-libxklavier-4.0.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: GConf-devel +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libdbus-devel +BuildRequires: libdbus-glib-devel +BuildRequires: libexpat-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libglade-devel +BuildRequires: libglib-devel +BuildRequires: libglitz-devel +BuildRequires: libgtk-devel +BuildRequires: libpango-devel +BuildRequires: libpixman-devel +BuildRequires: libpng-devel +BuildRequires: libselinux-devel +BuildRequires: libX11-devel +BuildRequires: libXau-devel +BuildRequires: libxcb-devel +BuildRequires: libxcb-util-devel +BuildRequires: libXdmcp-devel +BuildRequires: libXext-devel +BuildRequires: libXi-devel +BuildRequires: libxkbfile-devel +BuildRequires: libxklavier-devel +BuildRequires: libxml2-devel +BuildRequires: libXrender-devel +BuildRequires: libz-devel +BuildRequires: ORBit2-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Gnome keyboard library. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Gnome keyboard library. + +This package contains static libraries and header files need for development. + +%prep +%setup -q +#%patch0 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ $1 -ge 1 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi +: + +%postun +if [ $1 -eq 0 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : +fi +: + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/gkbd-keyboard-display +%{_libdir}/libgnomekbd.so.* +%{_libdir}/libgnomekbdui.so.* +%{_libdir}/girepository-1.0/Gkbd-3.0.typelib +%{_datadir}/GConf/gsettings/libgnomekbd.convert +%{_datadir}/applications/gkbd-keyboard-display.desktop +%{_datadir}/glib-2.0/schemas/org.gnome.libgnomekbd.desktop.gschema.xml +%{_datadir}/glib-2.0/schemas/org.gnome.libgnomekbd.gschema.xml +%{_datadir}/glib-2.0/schemas/org.gnome.libgnomekbd.keyboard.gschema.xml +%dir %{_datadir}/libgnomekbd +%dir %{_datadir}/libgnomekbd/icons +%{_datadir}/libgnomekbd/icons/kbdled-caps-lock.svg +%{_datadir}/libgnomekbd/icons/kbdled-num-lock.svg +%{_datadir}/libgnomekbd/icons/kbdled-scroll-lock.svg +%dir %{_datadir}/libgnomekbd/ui +%{_datadir}/libgnomekbd/ui/show-layout.ui +%doc AUTHORS COPYING.LIB + +%files devel +%defattr(-,root,root) +%{_libdir}/libgnomekbd.a +%{_libdir}/libgnomekbd.la +%{_libdir}/libgnomekbd.so +%{_libdir}/libgnomekbdui.a +%{_libdir}/libgnomekbdui.la +%{_libdir}/libgnomekbdui.so +%{_datadir}/gir-1.0/Gkbd-3.0.gir +%dir %{_includedir}/libgnomekbd +%{_includedir}/libgnomekbd/*.h +%{_libdir}/pkgconfig/*.pc +%doc ChangeLog ChangeLog.libgswitchit ChangeLog.libkbdraw +%doc NEWS README.cvs + +%changelog +* Wed Sep 26 2012 Automatic Build System 3.6.0-1mamba +- automatic version update by autodist + +* Sun Sep 16 2012 Silvan Calarco 3.4.0.2-2mamba +- .typelib file moved from -devel to runtime library package + +* Sun Apr 01 2012 Automatic Build System 3.4.0.2-1mamba +- update to 3.4.0.2 + +* Wed Sep 28 2011 Automatic Build System 3.2.0-1mamba +- automatic version update by autodist + +* Sun Jul 24 2011 Automatic Build System 3.0.0.1-1mamba +- automatic update to 3.0.3.0 by autodist + +* Mon Oct 11 2010 Automatic Build System 2.32.0-1mamba +- automatic update to 2.32.0 by autodist + +* Wed Jun 23 2010 Automatic Build System 2.30.2-1mamba +- automatic update to 2.30.2 by autodist + +* Wed May 12 2010 Silvan Calarco 2.30.1-1mamba +- update to 2.30.1 + +* Wed Jan 20 2010 Automatic Build System 2.28.2-1mamba +- automatic update by autodist + +* Tue Sep 29 2009 Automatic Build System 2.28.0-1mamba +- update to 2.28.0 + +* Sun Jul 05 2009 Silvan Calarco 2.26.0-1mamba +- package created by autospec