source: projects/specs/trunk/m/mate-file-archiver/mate-file-archiver-vl.spec @ 5316

Revision 5316, 3.3 KB checked in by Takemikaduchi, 12 years ago (diff)

mate: change category
fontconfig: rebuild
others: new upstream release

Line 
1Summary:        Archive manipulator for MATE
2Name:           mate-file-archiver
3Version:        1.1.0
4Release:        2%{?_dist_release}
5Source0:        %{name}-%{version}.tar.xz
6License:        GPLv2
7Group:          Applications/Archiving
8URL:            https://matsusoft.com.ar/projects/mate/
9
10BuildRequires:  mate-common
11BuildRequires:  mate-doc-utils
12BuildRequires:  mate-conf-devel
13BuildRequires:  gtk2-devel
14BuildRequires:  libSM-devel
15BuildRequires:  gtk-doc
16BuildRequires:  autoconf
17BuildRequires:  automake
18
19Requires(post,pre,preun):       mate-conf
20Requires(post,postun):  desktop-file-utils
21
22BuildRoot:      %{_tmppath}/%{name}-%{version}-root
23
24Vendor:         Project Vine
25Distribution:   Vine Linux
26Packager:       Takemikaduchi
27
28
29%description
30Engrampa is an archive manager for the MATE environment.  This means
31that you can create and modify archives; view the content of an archive;
32view and modify a file contained in the archive; extract files from the
33archive.
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
53export MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
54%{__make} install DESTDIR=${RPM_BUILD_ROOT}
55unset MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
56
57find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \;
58find $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
69export MATECONF_CONFIG_SOURCE=`mateconftool-2 --get-default-source`
70
71SCHEMAS=" \
72  engrampa.schemas"
73for S in $SCHEMAS; do
74  echo %{_sysconfdir}/mateconf/schemas/$S; done \
75  | xargs mateconftool-2 --makefile-install-rule >& /dev/null ||:
76
77update-desktop-database %{_datadir}/applications >& /dev/null ||:
78touch --no-create %{_datadir}/icons/hicolor
79if [ -x /usr/bin/gtk-update-icon-cache ]; then
80  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
81fi
82
83%pre
84if [ "$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 ||:
92fi
93
94%preun
95if [ "$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 ||:
103fi
104
105%postun
106/sbin/ldconfig
107update-desktop-database %{_datadir}/applications >& /dev/null ||:
108touch --no-create %{_datadir}/icons/hicolor
109if [ -x /usr/bin/gtk-update-icon-cache ]; then
110  /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
111fi
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* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
130- change category
131
132* Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
133- initial build for Vine Linux
134
Note: See TracBrowser for help on using the repository browser.