[5311] | 1 | Summary: The MATE shell and file manager |
---|
| 2 | Name: mate-file-manager |
---|
[6172] | 3 | Version: 1.2.2 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | |
---|
[5311] | 6 | Source0: %{name}-%{version}.tar.xz |
---|
[6172] | 7 | |
---|
| 8 | Patch0: mate-file-manager-1.2.2-makefile.patch |
---|
| 9 | |
---|
[5311] | 10 | License: GPLv2 |
---|
[5316] | 11 | Group: User Interface/Desktops |
---|
[5311] | 12 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
| 13 | |
---|
| 14 | BuildRequires: mate-common |
---|
| 15 | BuildRequires: mate-conf-devel |
---|
| 16 | BuildRequires: mate-desktop-devel |
---|
| 17 | BuildRequires: gtk2-devel |
---|
| 18 | BuildRequires: libxml2-devel |
---|
| 19 | BuildRequires: libSM-devel |
---|
| 20 | BuildRequires: unique-devel |
---|
| 21 | BuildRequires: libexif-devel |
---|
| 22 | BuildRequires: exempi-devel |
---|
| 23 | BuildRequires: gtk-doc |
---|
| 24 | BuildRequires: autoconf |
---|
| 25 | BuildRequires: automake |
---|
| 26 | |
---|
| 27 | Requires(post,pre,preun): mate-conf |
---|
| 28 | Requires(post,postun): desktop-file-utils |
---|
| 29 | |
---|
| 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
| 34 | Packager: Takemikaduchi |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | This is Caja, the file manager for the MATE desktop. |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %package devel |
---|
| 42 | Summary: Development tools for mate-file-manager |
---|
| 43 | Summary(ja): mate-file-manager の開発環境 |
---|
| 44 | Group: Development/Libraries |
---|
| 45 | Requires: %{name} = %{version}-%{release} |
---|
| 46 | Requires: pkgconfig |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | Header files and libraries for building a extension library for the |
---|
| 50 | mate-file-manager. |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %package doc |
---|
| 54 | Summary: Documentation for mate-file-manager |
---|
| 55 | Summary(ja): mate-file-manager 用のドキュメント |
---|
| 56 | Group: Documentation |
---|
| 57 | Requires: %{name} = %{version}-%{release} |
---|
| 58 | BuildArch: noarch |
---|
| 59 | |
---|
| 60 | %description doc |
---|
| 61 | This package contains documentation for mate-file-manager. |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %prep |
---|
| 65 | %setup -q |
---|
[6172] | 66 | %patch0 -p1 |
---|
[5311] | 67 | |
---|
| 68 | |
---|
| 69 | %build |
---|
| 70 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 71 | %configure \ |
---|
| 72 | --libexecdir=%{_libexecdir}/mate \ |
---|
| 73 | --disable-static \ |
---|
| 74 | --disable-scrollkeeper \ |
---|
| 75 | --enable-unique \ |
---|
| 76 | --disable-update-mimedb |
---|
| 77 | |
---|
| 78 | %{__make} %{?_smp_mflags} |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %install |
---|
| 82 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 83 | |
---|
| 84 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 85 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 86 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 87 | |
---|
| 88 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 89 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 90 | |
---|
| 91 | %find_lang caja |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %clean |
---|
| 95 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %post |
---|
| 99 | /sbin/ldconfig |
---|
| 100 | |
---|
| 101 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 102 | |
---|
| 103 | SCHEMAS=" \ |
---|
| 104 | apps_caja_preferences.schemas" |
---|
| 105 | for S in $SCHEMAS; do |
---|
| 106 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 107 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
| 108 | |
---|
| 109 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 110 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 111 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 112 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 113 | fi |
---|
| 114 | |
---|
| 115 | %pre |
---|
| 116 | if [ "$1" -gt 1 ]; then |
---|
| 117 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 118 | |
---|
| 119 | SCHEMAS=" \ |
---|
| 120 | apps_caja_preferences.schemas" |
---|
| 121 | for S in $SCHEMAS; do |
---|
| 122 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 123 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 124 | fi |
---|
| 125 | |
---|
| 126 | %preun |
---|
| 127 | if [ "$1" -eq 0 ]; then |
---|
| 128 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 129 | |
---|
| 130 | SCHEMAS=" \ |
---|
| 131 | apps_caja_preferences.schemas" |
---|
| 132 | for S in $SCHEMAS; do |
---|
| 133 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 134 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 135 | fi |
---|
| 136 | |
---|
| 137 | %postun |
---|
| 138 | /sbin/ldconfig |
---|
| 139 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 140 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 141 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 142 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 143 | fi |
---|
| 144 | |
---|
| 145 | |
---|
| 146 | %files -f caja.lang |
---|
| 147 | %defattr(-,root,root,-) |
---|
| 148 | %doc COPYING ChangeLog NEWS README |
---|
| 149 | %{_sysconfdir}/mateconf/schemas/apps_caja_preferences.schemas |
---|
| 150 | %{_bindir}/caja |
---|
| 151 | %{_bindir}/caja-autorun-software |
---|
| 152 | %{_bindir}/caja-connect-server |
---|
| 153 | %{_bindir}/caja-file-management-properties |
---|
| 154 | %{_libdir}/libcaja-extension.so.* |
---|
| 155 | %{_libdir}/girepository-1.0/Caja-2.0.typelib |
---|
| 156 | %{_libexecdir}/mate/caja-convert-metadata |
---|
| 157 | %{_datadir}/applications/*.desktop |
---|
| 158 | %{_datadir}/caja |
---|
| 159 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 160 | %{_datadir}/mime/packages/caja.xml |
---|
| 161 | %{_datadir}/pixmaps/caja |
---|
| 162 | %{_mandir}/man1/*.1.gz |
---|
| 163 | |
---|
| 164 | %files devel |
---|
| 165 | %defattr(-,root,root,-) |
---|
| 166 | %{_includedir}/caja |
---|
| 167 | %{_libdir}/libcaja-extension.so |
---|
| 168 | %{_libdir}/pkgconfig/libcaja-extension.pc |
---|
| 169 | %{_datadir}/gir-1.0/Caja-2.0.gir |
---|
| 170 | |
---|
| 171 | %files doc |
---|
| 172 | %defattr(-,root,root,-) |
---|
| 173 | %{_datadir}/gtk-doc/html/libcaja-extension |
---|
| 174 | |
---|
| 175 | |
---|
| 176 | %changelog |
---|
[6172] | 177 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.2-1 |
---|
| 178 | - new upstream release |
---|
| 179 | - add Patch0 (mate-file-manager-1.2.2-makefile.patch) |
---|
| 180 | |
---|
[5316] | 181 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 182 | - change category |
---|
| 183 | |
---|
[5311] | 184 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 185 | - initial build for Vine Linux |
---|
| 186 | |
---|