[5322] | 1 | Summary: Editor/admin tool for mate-conf |
---|
| 2 | Name: mate-conf-editor |
---|
[6679] | 3 | Version: 1.4.0 |
---|
[5322] | 4 | Release: 1%{?_dist_release} |
---|
[6679] | 5 | Source0: http://pub.mate-desktop.org/releases/1.4/%{name}-%{version}.tar.xz |
---|
[5322] | 6 | License: GPLv2 |
---|
| 7 | Group: Applications/System |
---|
[6679] | 8 | URL: http://mate-desktop.org/ |
---|
[5322] | 9 | |
---|
| 10 | BuildRequires: mate-common |
---|
| 11 | BuildRequires: mate-doc-utils |
---|
| 12 | BuildRequires: mate-conf-devel |
---|
| 13 | BuildRequires: gtk2-devel |
---|
| 14 | BuildRequires: dbus-glib-devel |
---|
| 15 | BuildRequires: gtk-doc |
---|
| 16 | BuildRequires: autoconf |
---|
| 17 | BuildRequires: automake |
---|
| 18 | |
---|
| 19 | Requires(post,pre,preun): mate-conf |
---|
| 20 | Requires(post,postun): desktop-file-utils |
---|
| 21 | |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | |
---|
| 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | Packager: Takemikaduchi |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | An editor for the MateConf configuration system. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %build |
---|
| 38 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 39 | %configure \ |
---|
| 40 | --disable-static \ |
---|
| 41 | --disable-scrollkeeper |
---|
| 42 | |
---|
| 43 | %{__make} %{?_smp_mflags} |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %install |
---|
| 47 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 48 | |
---|
| 49 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 50 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 51 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 52 | |
---|
| 53 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 54 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 55 | |
---|
[6172] | 56 | %find_lang %{name} |
---|
[5322] | 57 | |
---|
| 58 | |
---|
| 59 | %clean |
---|
| 60 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 61 | |
---|
| 62 | %post |
---|
| 63 | /sbin/ldconfig |
---|
| 64 | |
---|
| 65 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 66 | |
---|
| 67 | SCHEMAS=" \ |
---|
| 68 | mateconf-editor.schemas" |
---|
| 69 | for S in $SCHEMAS; do |
---|
| 70 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 71 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
| 72 | |
---|
| 73 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 74 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 75 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 76 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 77 | fi |
---|
| 78 | |
---|
| 79 | %pre |
---|
| 80 | if [ "$1" -gt 1 ]; then |
---|
| 81 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 82 | |
---|
| 83 | SCHEMAS=" \ |
---|
| 84 | mateconf-editor.schemas" |
---|
| 85 | for S in $SCHEMAS; do |
---|
| 86 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 87 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 88 | fi |
---|
| 89 | |
---|
| 90 | %preun |
---|
| 91 | if [ "$1" -eq 0 ]; then |
---|
| 92 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 93 | |
---|
| 94 | SCHEMAS=" \ |
---|
| 95 | mateconf-editor.schemas" |
---|
| 96 | for S in $SCHEMAS; do |
---|
| 97 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 98 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | %postun |
---|
| 102 | /sbin/ldconfig |
---|
| 103 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 104 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 105 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 106 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 107 | fi |
---|
| 108 | |
---|
| 109 | |
---|
[6172] | 110 | %files -f %{name}.lang |
---|
[5322] | 111 | %defattr(-,root,root,-) |
---|
| 112 | %doc COPYING ChangeLog NEWS README |
---|
| 113 | %{_sysconfdir}/mateconf/schemas/mateconf-editor.schemas |
---|
| 114 | %{_bindir}/mateconf-editor |
---|
| 115 | %{_datadir}/applications/mateconf-editor.desktop |
---|
| 116 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 117 | %{_datadir}/mate/help/mateconf-editor |
---|
| 118 | %{_datadir}/mateconf-editor |
---|
| 119 | %{_datadir}/omf/mateconf-editor |
---|
| 120 | %{_mandir}/man1/mateconf-editor.1.gz |
---|
| 121 | |
---|
| 122 | |
---|
| 123 | %changelog |
---|
[6679] | 124 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[6172] | 127 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
| 128 | - new upstream release |
---|
| 129 | |
---|
[5322] | 130 | * Sat Dec 24 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 131 | - initial build for Vine Linux |
---|
| 132 | |
---|