[5311] | 1 | Summary: MATE keyboard shared library |
---|
| 2 | Name: libmatekbd |
---|
[6679] | 3 | Version: 1.4.0 |
---|
[5311] | 4 | Release: 1%{?_dist_release} |
---|
[6679] | 5 | Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz |
---|
[5311] | 6 | License: GPLv2 |
---|
| 7 | Group: System Environment/Libraries |
---|
[6679] | 8 | URL: http://mate-desktop.org/ |
---|
[5311] | 9 | |
---|
| 10 | BuildRequires: mate-common |
---|
| 11 | BuildRequires: mate-conf-devel |
---|
| 12 | BuildRequires: gtk2-devel |
---|
| 13 | BuildRequires: libxklavier-devel |
---|
[6172] | 14 | BuildRequires: libSM-devel |
---|
[5311] | 15 | BuildRequires: autoconf |
---|
| 16 | BuildRequires: automake |
---|
| 17 | |
---|
| 18 | Requires(post,pre,preun): mate-conf |
---|
| 19 | Requires(post,postun): desktop-file-utils |
---|
| 20 | |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 22 | |
---|
| 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: Takemikaduchi |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | MATE keyboard shared library |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %package devel |
---|
| 33 | Summary: Development tools for libmatekbd |
---|
| 34 | Summary(ja): libmatekbd の開発環境 |
---|
| 35 | Group: Development/Libraries |
---|
| 36 | Requires: %{name} = %{version}-%{release} |
---|
| 37 | Requires: pkgconfig |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | Header files and libraries for building a extension library for the |
---|
| 41 | libmatekbd. |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | %setup -q |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %build |
---|
| 49 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 50 | %configure \ |
---|
| 51 | --disable-static \ |
---|
| 52 | |
---|
| 53 | %{__make} %{?_smp_mflags} |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %install |
---|
| 57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 58 | |
---|
| 59 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 60 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 61 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 62 | |
---|
| 63 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 64 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 65 | |
---|
| 66 | %find_lang %{name} |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 70 | |
---|
| 71 | %post |
---|
| 72 | /sbin/ldconfig |
---|
| 73 | |
---|
| 74 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 75 | |
---|
| 76 | SCHEMAS=" \ |
---|
| 77 | desktop_mate_peripherals_keyboard_xkb.schemas" |
---|
| 78 | for S in $SCHEMAS; do |
---|
| 79 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 80 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
| 81 | |
---|
| 82 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 83 | |
---|
| 84 | %pre |
---|
| 85 | if [ "$1" -gt 1 ]; then |
---|
| 86 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 87 | |
---|
| 88 | SCHEMAS=" \ |
---|
| 89 | desktop_mate_peripherals_keyboard_xkb.schemas" |
---|
| 90 | for S in $SCHEMAS; do |
---|
| 91 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 92 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 93 | fi |
---|
| 94 | |
---|
| 95 | %preun |
---|
| 96 | if [ "$1" -eq 0 ]; then |
---|
| 97 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 98 | |
---|
| 99 | SCHEMAS=" \ |
---|
| 100 | desktop_mate_peripherals_keyboard_xkb.schemas" |
---|
| 101 | for S in $SCHEMAS; do |
---|
| 102 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 103 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 104 | fi |
---|
| 105 | |
---|
| 106 | %postun |
---|
| 107 | /sbin/ldconfig |
---|
| 108 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 109 | |
---|
| 110 | %files -f %{name}.lang |
---|
| 111 | %defattr(-,root,root,-) |
---|
| 112 | %doc COPYING.LIB ChangeLog NEWS README |
---|
| 113 | %{_sysconfdir}/mateconf/schemas/desktop_mate_peripherals_keyboard_xkb.schemas |
---|
| 114 | %{_bindir}/matekbd-indicator-plugins-capplet |
---|
| 115 | %{_libdir}/libmatekbd*.so.* |
---|
| 116 | %{_datadir}/applications/matekbd-indicator-plugins-capplet.desktop |
---|
| 117 | %{_datadir}/libmatekbd/ui/*.ui |
---|
| 118 | |
---|
| 119 | %files devel |
---|
| 120 | %defattr(-,root,root,-) |
---|
| 121 | %{_includedir}/libmatekbd |
---|
| 122 | %{_libdir}/libmatekbd*.so |
---|
| 123 | %{_libdir}/pkgconfig/libmatekbd.pc |
---|
| 124 | %{_libdir}/pkgconfig/libmatekbdui.pc |
---|
| 125 | |
---|
| 126 | |
---|
| 127 | %changelog |
---|
[6679] | 128 | * Wed Aug 01 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
| 129 | - new upstream release |
---|
| 130 | |
---|
[6172] | 131 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
| 132 | - new upstream release |
---|
| 133 | - add BuildRequires: libSM-devel |
---|
| 134 | |
---|
[5311] | 135 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 136 | - initial build for Vine Linux |
---|
| 137 | |
---|