]>
Commit | Line | Data |
---|---|---|
fedc4b80 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without caja # Caja (mate-file-manager) support | |
4 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
5 | # | |
6 | Summary: Engrampa - an archive manager for MATE | |
7 | Summary(pl.UTF-8): Engrampa - zarządca archiwów dla środowiska MATE | |
8 | Summary(pt_BR.UTF-8): Engrampa - gerenciador de arquivos compactados para o MATE | |
9 | Name: mate-file-archiver | |
10 | Version: 1.6.0 | |
11 | Release: 1 | |
12 | License: GPL v2+ | |
13 | Group: X11/Applications | |
14 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: 8a23b4504605473f790ed9b3f58bfe6e | |
16 | URL: http://mate-desktop.org/ | |
17 | BuildRequires: autoconf >= 2.61 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: gettext-devel >= 0.10.40 | |
21 | BuildRequires: glib2-devel >= 1:2.26.0 | |
22 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.22.0} | |
23 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
24 | BuildRequires: intltool >= 0.35.0 | |
25 | BuildRequires: libtool >= 1:1.4.3 | |
26 | BuildRequires: libxml2-progs | |
27 | BuildRequires: mate-common | |
28 | BuildRequires: mate-doc-utils | |
29 | %{?with_caja:BuildRequires: mate-file-manager-devel >= 1.1.0} | |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: rpmbuild(find_lang) >= 1.23 | |
32 | BuildRequires: rpmbuild(macros) >= 1.311 | |
33 | BuildRequires: scrollkeeper | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | # libegg | |
36 | BuildRequires: xorg-lib-libSM-devel | |
37 | BuildRequires: xz | |
38 | Requires(post,postun): desktop-file-utils | |
39 | Requires(post,postun): gtk-update-icon-cache | |
40 | Requires(post,postun): hicolor-icon-theme | |
41 | Requires(post,postun): scrollkeeper | |
42 | Requires: glib2 >= 1:2.26.0 | |
43 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.22.0} | |
44 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
45 | Suggests: bzip2 | |
46 | Suggests: gzip | |
47 | Suggests: p7zip | |
48 | %ifarch %{ix86} | |
49 | Suggests: rar | |
50 | %else | |
51 | Suggests: unrar | |
52 | %endif | |
53 | Suggests: tar | |
54 | Suggests: zip | |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
56 | ||
57 | %description | |
58 | Engrampa is an archive manager for the MATE environment. It's a fork | |
59 | of File Roller from GNOME. With Engrampa you can: create and modify | |
60 | archives; view the content of an archive; view and modify a file | |
61 | contained in the archive; extract files from the archive. | |
62 | ||
63 | %description -l pl.UTF-8 | |
64 | Engrampa to zarządca archiwów dla środowiska MATE. Jest to | |
65 | odgałęzienie programu File Roller z GNOME. Przy jego pomocy można: | |
66 | tworzyć i modyfikować archiwa, oglądać ich zawartość, oglądać i | |
67 | modyfikować poszczególne pliki zawarte w archiwum oraz rozpakowywać | |
68 | pliki z archiwów. | |
69 | ||
70 | %description -l pt_BR.UTF-8 | |
71 | Engrampa é um gerenciador de pacotes de arquivos compactados para o | |
72 | ambiente MATE. Com ele é possível criar arquivos, visualizar o | |
73 | conteúdo de arquivos existentes, visualizar um arquivo contido em um | |
74 | pacote e extrair os arquivos de um pacote. | |
75 | ||
76 | %package -n mate-file-manager-extension-engrampa | |
77 | Summary: Engrampa (archive manager) extension for Caja (MATE file manager) | |
78 | Summary(pl.UTF-8): Rozszerzenie Engrampa (zarządca archiwów) dla zarządcy plików Caja | |
79 | Group: X11/Applications | |
80 | Requires: %{name} = %{version}-%{release} | |
81 | Requires: mate-file-manager >= 1.1.0 | |
82 | ||
83 | %description -n mate-file-manager-extension-engrampa | |
84 | Engrampa (archive manager) extension for Caja (MATE file manager). | |
85 | ||
86 | %description -n mate-file-manager-extension-engrampa -l pl.UTF-8 | |
87 | Rozszerzenie Engrampa (zarządca archiwów) dla zarządcy plików Caja. | |
88 | ||
89 | %prep | |
90 | %setup -q | |
91 | ||
92 | %build | |
93 | mate-doc-prepare --copy --force | |
94 | %{__intltoolize} | |
95 | %{__libtoolize} | |
96 | %{__aclocal} | |
97 | %{__autoconf} | |
98 | %{__autoheader} | |
99 | %{__automake} | |
100 | %configure \ | |
101 | %{!?with_caja:--disable-caja-actions} \ | |
102 | --disable-silent-rules \ | |
103 | --disable-static \ | |
104 | %{?with_gtk3:--with-gtk=3.0} | |
105 | ||
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %{__make} install \ | |
112 | DESTDIR=$RPM_BUILD_ROOT | |
113 | ||
114 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la | |
115 | ||
116 | # just a copy of ur | |
117 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK | |
118 | # update naming convention | |
119 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@ije,sr@ijekavian} | |
120 | ||
121 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
122 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/engrampa.convert | |
123 | ||
124 | %find_lang engrampa --with-mate --with-omf | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
129 | %post | |
130 | %glib_compile_schemas | |
131 | %scrollkeeper_update_post | |
132 | %update_desktop_database_post | |
133 | %update_icon_cache hicolor | |
134 | ||
135 | %postun | |
136 | %glib_compile_schemas | |
137 | %scrollkeeper_update_postun | |
138 | %update_desktop_database_postun | |
139 | %update_icon_cache hicolor | |
140 | ||
141 | %files -f engrampa.lang | |
142 | %defattr(644,root,root,755) | |
143 | %doc AUTHORS ChangeLog MAINTAINERS NEWS README TODO | |
144 | %attr(755,root,root) %{_bindir}/engrampa | |
145 | %dir %{_libdir}/engrampa | |
146 | %attr(755,root,root) %{_libdir}/engrampa/isoinfo.sh | |
147 | %attr(755,root,root) %{_libdir}/engrampa/rpm2cpio | |
148 | %{_datadir}/engrampa | |
149 | %{_datadir}/glib-2.0/schemas/org.mate.engrampa.gschema.xml | |
150 | %{_desktopdir}/engrampa.desktop | |
151 | %{_iconsdir}/hicolor/*/apps/engrampa.* | |
152 | ||
153 | %if %{with caja} | |
154 | %files -n mate-file-manager-extension-engrampa | |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-engrampa.so | |
157 | %endif |