[5311] | 1 | Summary: Simply a document viewer for MATE |
---|
| 2 | Name: mate-document-viewer |
---|
| 3 | Version: 1.1.0 |
---|
[5316] | 4 | Release: 2%{?_dist_release} |
---|
[5311] | 5 | Source0: %{name}-%{version}.tar.xz |
---|
| 6 | License: GPLv2 |
---|
[5316] | 7 | Group: Applications/Publishing |
---|
[5311] | 8 | URL: https://matsusoft.com.ar/projects/mate/ |
---|
| 9 | |
---|
| 10 | BuildRequires: mate-common |
---|
| 11 | BuildRequires: mate-doc-utils |
---|
| 12 | BuildRequires: mate-conf-devel |
---|
| 13 | BuildRequires: mate-icon-theme |
---|
| 14 | BuildRequires: mate-file-manager-devel |
---|
| 15 | BuildRequires: libmatekeyring-devel |
---|
| 16 | BuildRequires: gtk2-devel |
---|
| 17 | BuildRequires: libxml2-devel |
---|
| 18 | BuildRequires: libSM-devel |
---|
| 19 | BuildRequires: poppler-devel |
---|
| 20 | BuildRequires: libtiff-devel |
---|
| 21 | BuildRequires: djvulibre-devel |
---|
| 22 | BuildRequires: libspectre-devel |
---|
| 23 | BuildRequires: libkpathsea-devel |
---|
| 24 | BuildRequires: gtk-doc |
---|
| 25 | BuildRequires: autoconf |
---|
| 26 | BuildRequires: automake |
---|
| 27 | |
---|
| 28 | Requires(post,pre,preun): mate-conf |
---|
| 29 | Requires(post,postun): desktop-file-utils |
---|
| 30 | |
---|
| 31 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 32 | |
---|
| 33 | Vendor: Project Vine |
---|
| 34 | Distribution: Vine Linux |
---|
| 35 | Packager: Takemikaduchi |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | %description |
---|
| 39 | he MATE Display Manager is a system service that is responsible for |
---|
| 40 | providing graphical log-ins and managing local and remote displays. |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %package devel |
---|
| 44 | Summary: Development tools for mate-document-viewer |
---|
| 45 | Summary(ja): mate-document-viewer の開発環境 |
---|
| 46 | Group: Development/Libraries |
---|
| 47 | Requires: %{name} = %{version}-%{release} |
---|
| 48 | Requires: pkgconfig |
---|
| 49 | |
---|
| 50 | %description devel |
---|
| 51 | Header files and libraries for building a extension library for the |
---|
| 52 | mate-document-viewer. |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %prep |
---|
| 56 | %setup -q |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %build |
---|
| 60 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 61 | %configure \ |
---|
| 62 | --libexecdir=%{_libexecdir}/mate \ |
---|
| 63 | --disable-static \ |
---|
| 64 | --disable-scrollkeeper |
---|
| 65 | |
---|
| 66 | %{__make} %{?_smp_mflags} |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %install |
---|
| 70 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 71 | |
---|
| 72 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 73 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 74 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 75 | |
---|
| 76 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 77 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 78 | |
---|
| 79 | %find_lang atril |
---|
| 80 | |
---|
| 81 | |
---|
| 82 | %clean |
---|
| 83 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 84 | |
---|
| 85 | %post |
---|
| 86 | /sbin/ldconfig |
---|
| 87 | |
---|
| 88 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 89 | |
---|
| 90 | SCHEMAS=" \ |
---|
| 91 | atril-thumbnailer-comics.schemas \ |
---|
| 92 | atril-thumbnailer-djvu.schemas \ |
---|
| 93 | atril-thumbnailer-dvi.schemas \ |
---|
| 94 | atril-thumbnailer-ps.schemas \ |
---|
| 95 | atril-thumbnailer.schemas" |
---|
| 96 | for S in $SCHEMAS; do |
---|
| 97 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 98 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
| 99 | |
---|
| 100 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 101 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 102 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 103 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
| 104 | fi |
---|
| 105 | |
---|
| 106 | |
---|
| 107 | %pre |
---|
| 108 | if [ "$1" -gt 1 ]; then |
---|
| 109 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 110 | |
---|
| 111 | SCHEMAS=" \ |
---|
| 112 | atril-thumbnailer-comics.schemas \ |
---|
| 113 | atril-thumbnailer-djvu.schemas \ |
---|
| 114 | atril-thumbnailer-dvi.schemas \ |
---|
| 115 | atril-thumbnailer-ps.schemas \ |
---|
| 116 | atril-thumbnailer.schemas" |
---|
| 117 | for S in $SCHEMAS; do |
---|
| 118 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
| 119 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
| 120 | fi |
---|
| 121 | |
---|
| 122 | %preun |
---|
| 123 | if [ "$1" -eq 0 ]; then |
---|
| 124 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
| 125 | |
---|
| 126 | SCHEMAS=" \ |
---|
| 127 | atril-thumbnailer-comics.schemas \ |
---|
| 128 | atril-thumbnailer-djvu.schemas \ |
---|
| 129 | atril-thumbnailer-dvi.schemas \ |
---|
| 130 | atril-thumbnailer-ps.schemas \ |
---|
| 131 | atril-thumbnailer.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 | if [ $1 -eq 0 ]; then |
---|
| 145 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 146 | fi |
---|
| 147 | |
---|
| 148 | %posttrans |
---|
| 149 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 150 | |
---|
| 151 | |
---|
| 152 | %files -f atril.lang |
---|
| 153 | %defattr(-,root,root,-) |
---|
| 154 | %doc COPYING ChangeLog NEWS README |
---|
| 155 | %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-comics.schemas |
---|
| 156 | %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-djvu.schemas |
---|
| 157 | %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-dvi.schemas |
---|
| 158 | %{_sysconfdir}/mateconf/schemas/atril-thumbnailer-ps.schemas |
---|
| 159 | %{_sysconfdir}/mateconf/schemas/atril-thumbnailer.schemas |
---|
| 160 | %{_bindir}/atril |
---|
| 161 | %{_bindir}/atril-previewer |
---|
| 162 | %{_bindir}/atril-thumbnailer |
---|
| 163 | %{_libdir}/libatrildocument.so.* |
---|
| 164 | %{_libdir}/libatrilview.so.* |
---|
| 165 | %{_libdir}/atril |
---|
| 166 | %{_libdir}/caja/extensions-2.0/libatril-properties-page.so |
---|
| 167 | %{_libexecdir}/mate/atril-convert-metadata |
---|
| 168 | %{_libexecdir}/mate/atrild |
---|
| 169 | %{_datadir}/MateConf/gsettings/atril.convert |
---|
| 170 | %{_datadir}/applications/atril.desktop |
---|
| 171 | %{_datadir}/atril |
---|
| 172 | %{_datadir}/dbus-1/services/org.mate.atril.Daemon.service |
---|
| 173 | %{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml |
---|
| 174 | %{_datadir}/icons/hicolor/*/*/* |
---|
| 175 | %{_datadir}/mate/help/atril |
---|
| 176 | %{_datadir}/omf/atril |
---|
| 177 | %{_mandir}/man1/atril.1.gz |
---|
| 178 | |
---|
| 179 | %files devel |
---|
| 180 | %defattr(-,root,root,-) |
---|
| 181 | %{_includedir}/atril |
---|
| 182 | %{_libdir}/libatrildocument.so |
---|
| 183 | %{_libdir}/libatrilview.so |
---|
| 184 | %{_libdir}/pkgconfig/atril-document-2.32.pc |
---|
| 185 | %{_libdir}/pkgconfig/atril-view-2.32.pc |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | %changelog |
---|
[5316] | 189 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 190 | - change category |
---|
| 191 | |
---|
[5311] | 192 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 193 | - initial build for Vine Linux |
---|
| 194 | |
---|