diff --git a/README.md b/README.md index c687f7d..cf3047c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libxklavier +Libxklavier is an utility library to make XKB stuff easier. + diff --git a/libxklavier-2.0-werror.patch b/libxklavier-2.0-werror.patch new file mode 100644 index 0000000..0a575ad --- /dev/null +++ b/libxklavier-2.0-werror.patch @@ -0,0 +1,22 @@ +--- libxklavier-1.14/libxklavier/Makefile.am.werror 2005-02-01 11:24:34.684925000 -0500 ++++ libxklavier-1.14/libxklavier/Makefile.am 2005-02-01 11:24:44.044556000 -0500 +@@ -14,7 +14,7 @@ + ENABLE_XMM_SUPPORT_CFLAG = -DDISABLE_XMM_SUPPORT=1 + endif + +-AM_CFLAGS=-Wall -Werror -DDATA_DIR=\"$(datadir)/$(PACKAGE)\" \ ++AM_CFLAGS=-Wall -DDATA_DIR=\"$(datadir)/$(PACKAGE)\" \ + -I. -I$(includedir) $(XML_CFLAGS) -I$(x_includes) -I$(top_srcdir) \ + $(XKB_HEADERS_PRESENT_CFLAG) \ + $(ENABLE_XKB_SUPPORT_CFLAG) \ +--- libxklavier-1.14/libxklavier/Makefile.in.werror 2005-02-01 11:25:24.981578000 -0500 ++++ libxklavier-1.14/libxklavier/Makefile.in 2005-02-01 11:25:35.528023000 -0500 +@@ -205,7 +205,7 @@ + @ENABLE_XKB_SUPPORT_TRUE@ENABLE_XKB_SUPPORT_CFLAG = -DENABLE_XKB_SUPPORT=1 + @ENABLE_XMM_SUPPORT_FALSE@ENABLE_XMM_SUPPORT_CFLAG = -DDISABLE_XMM_SUPPORT=1 + @ENABLE_XMM_SUPPORT_TRUE@ENABLE_XMM_SUPPORT_CFLAG = -DENABLE_XMM_SUPPORT=1 +-AM_CFLAGS = -Wall -Werror -DDATA_DIR=\"$(datadir)/$(PACKAGE)\" \ ++AM_CFLAGS = -Wall -DDATA_DIR=\"$(datadir)/$(PACKAGE)\" \ + -I. -I$(includedir) $(XML_CFLAGS) -I$(x_includes) -I$(top_srcdir) \ + $(XKB_HEADERS_PRESENT_CFLAG) \ + $(ENABLE_XKB_SUPPORT_CFLAG) \ diff --git a/libxklavier.spec b/libxklavier.spec new file mode 100644 index 0000000..584fa73 --- /dev/null +++ b/libxklavier.spec @@ -0,0 +1,126 @@ +%define majversion %(echo %version | cut -d. -f 1-2) + +Name: libxklavier +Version: 5.3 +Release: 1mamba +Summary: Utility library to make XKB stuff easier +Group: Graphical Desktop/Libraries/GNOME +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.freedesktop.org/wiki/Software/LibXklavier +Source: ftp://ftp.gnome.org/pub/gnome/sources/libxklavier/%{majversion}/libxklavier-%{version}.tar.xz +Patch: %{name}-2.0-werror.patch +License: LGPL +BuildRequires: libX11-devel >= 1.1.1 +BuildRequires: pkgconfig >= 0.19 +BuildRequires: zlib-devel >= 1.2.2 +BuildRequires: iso-codes-devel +BuildRequires: libxkbfile-devel +BuildRequires: gtk-doc +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libxml2-devel >= 2.0.0 +## AUTOBUILDREQ-END +Requires: iso-codes +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Libxklavier is an utility library to make XKB stuff easier. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{version} + +%description devel +Libxklavier is an utility library to make XKB stuff easier. +This package contains static libraries and header files need for development. + +%prep +%setup -q +#%patch -p1 -b .werror + +%build +%configure \ + --with-xkb-base=%{_datadir}/X11/xkb \ + --enable-gtk-doc + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/*.so.* +%{_libdir}/girepository-1.0/Xkl-1.0.typelib +%doc AUTHORS COPYING.LIB CREDITS + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libxklavier +#%dir %{_datadir}/libxklavier +#%{_datadir}/libxklavier/xfree86.xml +%dir %{_includedir}/libxklavier +%{_includedir}/libxklavier/*.h +%{_libdir}/*.a +%{_libdir}/*.la +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_datadir}/gir-1.0/Xkl-1.0.gir +%{_datadir}/gtk-doc/html/libxklavier/* +%doc ChangeLog NEWS README + +%changelog +* Tue Oct 23 2012 Automatic Build System 5.3-1mamba +- automatic version update by autodist + +* Sun Sep 16 2012 Silvan Calarco 5.2.1-2mamba +- .typelib file moved from -devel to runtime library package + +* Wed Apr 11 2012 Silvan Calarco 5.2.1-1mamba +- update to 5.2.1 + +* Sun Jul 24 2011 Silvan Calarco 5.1-1mamba +- update to 5.1 + +* Mon Oct 11 2010 Silvan Calarco 5.0-2mamba +- rebuilt to add pkgconfig provides + +* Tue May 11 2010 Automatic Build System 5.0-1mamba +- automatic update by autodist + +* Thu Jul 02 2009 Automatic Build System 4.0-1mamba +- automatic update by autodist + +* Tue Jun 16 2009 Silvan Calarco 3.9-3mamba +- added build requirement for libxkbfile-devel and iso-codes-devel +- fixed xkb X11 path +- enabled gtk-doc + +* Wed May 20 2009 Automatic Build System 3.9-2mamba +- automatic rebuild by autodist + +* Tue Mar 31 2009 Silvan Calarco 3.9-1mamba +- automatic update by autodist + +* Mon Feb 02 2009 Silvan Calarco 3.8-1mamba +- update to 3.8 + +* Thu Jun 12 2008 gil 3.4-1mamba +- update to 3.4 + +* Mon Mar 05 2007 Silvan Calarco 3.1-1qilnx +- update to version 3.1 by autospec + +* Thu Sep 08 2005 Davide Madrisan 2.0-1qilnx +- package created by autospec