/
engrampa.spec
137 lines (120 loc) · 4.1 KB
/
engrampa.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname mate-file-archiver
Summary: An archive manager for MATE Desktop
Name: engrampa
Version: 1.26.0
Release: 2
Group: Archiving/Compression
License: GPLv2+ and LGPLv2+
Url: http://mate-desktop.org
Source0: http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
#Patch0: %{name}-1.18.2-port-to-libarchiver-tar.patch
BuildRequires: autoconf-archive
BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: mate-common
BuildRequires: yelp-tools
BuildRequires: magic-devel
BuildRequires: pkgconfig(gsettings-desktop-schemas)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libcaja-extension)
BuildRequires: pkgconfig(sm)
BuildRequires: xsltproc
BuildRequires: yelp-tools
# libarchive is not supported yet
# https://github.com/mate-desktop/engrampa/issues/52
Requires: gnutar
# for the gsettings schema
Requires: caja
Suggests: cdrecord-isotools
%rename %{oname}
%description
The MATE Desktop Environment is the continuation of GNOME 2. It provides an
intuitive and attractive desktop environment using traditional metaphors for
Linux and other Unix-like operating systems.
MATE is under active development to add support for new technologies while
preserving a traditional desktop experience.
This package provides Engrampa, an archive manager utility for the MATE
Environment. This means that you can:
* create and modify archives;
* view the content of an archive;
* view a file contained in the archive;
* extract files from the archive.
Engrampa is only a front-end (a graphical interface) to archiving programs
like tar and zip. The supported file types are :
* 7-Zip Compressed File (.7z)
* WinAce Compressed File (.ace)
* ALZip Compressed File (.alz)
* AIX Small Indexed Archive (.ar)
* ARJ Compressed Archive (.arj)
* Cabinet File (.cab)
* UNIX CPIO Archive (.cpio)
* Debian Linux Package (.deb) [Read-only mode]
* ISO-9660 CD Disc Image (.iso) [Read-only mode]
* Java Archive (.jar)
* Java Enterprise archive (.ear)
* Java Web Archive (.war)
* LHA Archive (.lzh, .lha)
* WinRAR Compressed Archive (.rar)
* RAR Archived Comic Book (.cbr)
* RPM Linux Package (.rpm) [Read-only mode]
* Tape Archive File:
* uncompressed (.tar)
or compressed with:
* gzip (.tar.gz , .tgz)
* bzip (.tar.bz , .tbz)
* bzip2 (.tar.bz2 , .tbz2)
* compress (.tar.Z , .taz)
* lrzip (.tar.lrz , .tlrz)
* lzip (.tar.lz , .tlz)
* lzop (.tar.lzo , .tzo)
* 7zip (.tar.7z)
* xz (.tar.xz)
* Stuffit Archives (.bin, .sit)
* ZIP Archive (.zip)
* ZIP Archived Comic Book (.cbz)
* ZOO Compressed Archive File (.zoo)
* Single files compressed with gzip, bzip, bzip2, compress, lrzip, lzip,
lzop, rzip, xz.
%files -f %{name}.lang
%doc README COPYING NEWS AUTHORS
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}-server
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.mate.engrampa.gschema.xml
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/icons/hicolor/*/actions/add-files-to-archive.png
%{_datadir}/icons/hicolor/*/actions/add-folder-to-archive.png
%{_datadir}/icons/hicolor/*/actions/extract-archive.png
%{_libdir}/caja/extensions-2.0/libcaja-%{name}.so
%{_datadir}/metainfo/engrampa.appdata.xml
%{_datadir}/caja/extensions/libcaja-engrampa.caja-extension
%{_datadir}/dbus-1/services/org.mate.Engrampa.service
%{_mandir}/man1/engrampa.1*
#---------------------------------------------------------------------------
%prep
%setup -q
%autopatch -p1
%build
%configure \
--disable-schemas-compile \
--enable-caja-actions \
--enable-magic \
--enable-packagekit \
%{nil}
%make_build
%install
%make_install
# locales
%find_lang %{name} --with-gnome --all-name
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop