1 | Summary: Archive manipulator for MATE |
---|
2 | Name: mate-file-archiver |
---|
3 | Version: 1.2.1 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | Source0: %{name}-%{version}.tar.xz |
---|
6 | License: GPLv2 |
---|
7 | Group: Applications/Archiving |
---|
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: gtk2-devel |
---|
14 | BuildRequires: libSM-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 | Engrampa is an archive manager for the MATE environment. This means |
---|
31 | that you can create and modify archives; view the content of an archive; |
---|
32 | view and modify a file contained in the archive; extract files from the |
---|
33 | archive. |
---|
34 | |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | |
---|
39 | |
---|
40 | %build |
---|
41 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
42 | %configure \ |
---|
43 | --libexecdir=%{_libexecdir}/mate \ |
---|
44 | --disable-static \ |
---|
45 | --disable-scrollkeeper |
---|
46 | |
---|
47 | %{__make} %{?_smp_mflags} |
---|
48 | |
---|
49 | |
---|
50 | %install |
---|
51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
52 | |
---|
53 | export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
54 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
55 | unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
56 | |
---|
57 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
58 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
59 | |
---|
60 | %find_lang engrampa |
---|
61 | |
---|
62 | |
---|
63 | %clean |
---|
64 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
65 | |
---|
66 | %post |
---|
67 | /sbin/ldconfig |
---|
68 | |
---|
69 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
70 | |
---|
71 | SCHEMAS=" \ |
---|
72 | engrampa.schemas" |
---|
73 | for S in $SCHEMAS; do |
---|
74 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
75 | | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||: |
---|
76 | |
---|
77 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
78 | touch --no-create %{_datadir}/icons/hicolor |
---|
79 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
80 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
81 | fi |
---|
82 | |
---|
83 | %pre |
---|
84 | if [ "$1" -gt 1 ]; then |
---|
85 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
86 | |
---|
87 | SCHEMAS=" \ |
---|
88 | engrampa.schemas" |
---|
89 | for S in $SCHEMAS; do |
---|
90 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
91 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
92 | fi |
---|
93 | |
---|
94 | %preun |
---|
95 | if [ "$1" -eq 0 ]; then |
---|
96 | export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source` |
---|
97 | |
---|
98 | SCHEMAS=" \ |
---|
99 | engrampa.schemas" |
---|
100 | for S in $SCHEMAS; do |
---|
101 | echo %{_sysconfdir}/mateconf/schemas/$S; done \ |
---|
102 | | xargs mateconftool-2 --makefile-uninstall-rule >& /dev/null ||: |
---|
103 | fi |
---|
104 | |
---|
105 | %postun |
---|
106 | /sbin/ldconfig |
---|
107 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
108 | touch --no-create %{_datadir}/icons/hicolor |
---|
109 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
110 | /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||: |
---|
111 | fi |
---|
112 | |
---|
113 | |
---|
114 | %files -f engrampa.lang |
---|
115 | %defattr(-,root,root,-) |
---|
116 | %doc COPYING ChangeLog NEWS README |
---|
117 | %{_sysconfdir}/mateconf/schemas/engrampa.schemas |
---|
118 | %{_bindir}/engrampa |
---|
119 | %{_libexecdir}/mate/engrampa/isoinfo.sh |
---|
120 | %{_libexecdir}/mate/engrampa/rpm2cpio |
---|
121 | %{_datadir}/applications/engrampa.desktop |
---|
122 | %{_datadir}/engrampa |
---|
123 | %{_datadir}/icons/hicolor/*/*/* |
---|
124 | %{_datadir}/mate/help/engrampa |
---|
125 | %{_datadir}/omf/engrampa |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.1-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
133 | - change category |
---|
134 | |
---|
135 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
136 | - initial build for Vine Linux |
---|
137 | |
---|