127 lines
3.3 KiB
RPMSpec
127 lines
3.3 KiB
RPMSpec
Name: libgnomekbd
|
|
Version: 0.1
|
|
Release: 3%{?dist}
|
|
Summary: A keyboard configuration library
|
|
|
|
Group: System Environment/Libraries
|
|
License: LGPL
|
|
URL: http://gswitchit.sourceforce.net
|
|
Source0: libgnomekbd-0.1.tar.gz
|
|
# http://bugzilla.gnome.org/show_bug.cgi?id=365590
|
|
Patch0: libgnomekbd-0.1-memalloc.patch
|
|
Patch1: libgnomekbd-0.1-werror.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: dbus-devel >= 0.92
|
|
BuildRequires: dbus-glib >= 0.34
|
|
BuildRequires: GConf2-devel >= 2.14.0
|
|
BuildRequires: gtk2-devel >= 2.10.3
|
|
BuildRequires: libglade2-devel >= 2.6.0
|
|
BuildRequires: libgnome-devel >= 2.16.0
|
|
BuildRequires: libgnomeui-devel >= 2.16.0
|
|
BuildRequires: libxklavier-devel >= 2.91
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
Requires(pre): GConf2
|
|
Requires(post): GConf2
|
|
Requires(preun): GConf2
|
|
|
|
|
|
%description
|
|
The libgnomekbd package contains a GNOME library which manages
|
|
keyboard configuration and offers various widgets related to
|
|
keyboard configuration.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
|
|
%description devel
|
|
The libgnomekbd-devel package contains libraries and header files for
|
|
developing applications that use libgnomekbd.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1 -b .memalloc
|
|
%patch1 -p1 -b .werror
|
|
|
|
|
|
%build
|
|
%configure --disable-static --enable-compile-warnings=no
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
echo "NoDisplay=true" >> $RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
|
|
|
|
desktop-file-install --vendor gnome --delete-original \
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/gkbd-indicator-plugins-capplet.desktop
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas > /dev/null || :
|
|
|
|
|
|
%pre
|
|
if [ "$1" -gt 1 ]; then
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas > /dev/null || :
|
|
fi
|
|
|
|
|
|
%preun
|
|
if [ "$1" -eq 0 ]; then
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/desktop_gnome_peripherals_keyboard_xkb.schemas > /dev/null || :
|
|
fi
|
|
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/*.so.*
|
|
%{_sysconfdir}/gconf/schemas/*
|
|
%{_bindir}/gkbd-indicator-plugins-capplet
|
|
%{_datadir}/applications/gnome-gkbd-indicator-plugins-capplet.desktop
|
|
%{_datadir}/libgnomekbd
|
|
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
|
%changelog
|
|
* Thu Nov 2 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-3
|
|
- Don't use --Werror
|
|
|
|
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-2
|
|
- Fix a memory allocation error
|
|
|
|
* Sat Oct 28 2006 Matthias Clasen <mclasen@redhat.com> - 0.1-1
|
|
- Initial release
|