Summary: MATE keyboard shared library Name: libmatekbd Version: 1.1.0 Release: 1%{?_dist_release} Source0: %{name}-%{version}.tar.xz License: GPLv2 Group: System Environment/Libraries URL: https://matsusoft.com.ar/projects/mate/ BuildRequires: mate-common BuildRequires: mate-conf-devel BuildRequires: gtk2-devel BuildRequires: libxklavier-devel BuildRequires: autoconf BuildRequires: automake Requires(post,pre,preun): mate-conf Requires(post,postun): desktop-file-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root Vendor: Project Vine Distribution: Vine Linux Packager: Takemikaduchi %description MATE keyboard shared library %package devel Summary: Development tools for libmatekbd Summary(ja): libmatekbd の開発環境 Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: pkgconfig %description devel Header files and libraries for building a extension library for the libmatekbd. %prep %setup -q %build (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) %configure \ --disable-static \ %{__make} %{?_smp_mflags} %install %{__rm} -rf ${RPM_BUILD_ROOT} export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %{__make} install DESTDIR=${RPM_BUILD_ROOT} unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; %find_lang %{name} %clean %{__rm} -rf ${RPM_BUILD_ROOT} %post /sbin/ldconfig export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` SCHEMAS=" \ desktop_mate_peripherals_keyboard_xkb.schemas" for S in $SCHEMAS; do echo %{_sysconfdir}/mateconf/schemas/$S; done \ | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: update-desktop-database %{_datadir}/applications >& /dev/null ||: %pre if [ "$1" -gt 1 ]; then export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` SCHEMAS=" \ desktop_mate_peripherals_keyboard_xkb.schemas" for S in $SCHEMAS; do echo %{_sysconfdir}/mateconf/schemas/$S; done \ | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: fi %preun if [ "$1" -eq 0 ]; then export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` SCHEMAS=" \ desktop_mate_peripherals_keyboard_xkb.schemas" for S in $SCHEMAS; do echo %{_sysconfdir}/mateconf/schemas/$S; done \ | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: fi %postun /sbin/ldconfig update-desktop-database %{_datadir}/applications >& /dev/null ||: %files -f %{name}.lang %defattr(-,root,root,-) %doc COPYING.LIB ChangeLog NEWS README %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_keyboard_xkb.schemas %{_bindir}/matekbd-indicator-plugins-capplet %{_libdir}/libmatekbd*.so.* %{_datadir}/applications/matekbd-indicator-plugins-capplet.desktop %{_datadir}/libmatekbd/ui/*.ui %files devel %defattr(-,root,root,-) %{_includedir}/libmatekbd %{_libdir}/libmatekbd*.so %{_libdir}/pkgconfig/libmatekbd.pc %{_libdir}/pkgconfig/libmatekbdui.pc %changelog * Fri Dec 23 2011 Yoji TOYODA 1.1.0-1 - initial build for Vine Linux