]> git.pld-linux.org Git - packages/engrampa.git/blob - engrampa.spec
- up to 1.8.1
[packages/engrampa.git] / engrampa.spec
1 #
2 # Conditional build:
3 %bcond_without  caja    # Caja 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:           engrampa
10 Version:        1.8.1
11 Release:        1
12 License:        GPL v2+
13 Group:          X11/Applications
14 Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
15 # Source0-md5:  933ba9d4bdac0c7ac53a57a6e6e11300
16 URL:            http://mate-desktop.org/
17 BuildRequires:  autoconf >= 2.61
18 BuildRequires:  automake >= 1:1.9
19 %{?with_caja:BuildRequires:     caja-devel >= 1.1.0}
20 BuildRequires:  docbook-dtd412-xml
21 BuildRequires:  gettext-devel >= 0.10.40
22 BuildRequires:  glib2-devel >= 1:2.26.0
23 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.22.0}
24 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
25 BuildRequires:  intltool >= 0.35.0
26 BuildRequires:  json-glib-devel >= 0.14.0
27 BuildRequires:  libtool >= 1:1.4.3
28 BuildRequires:  libxml2-progs
29 BuildRequires:  mate-common
30 BuildRequires:  pkgconfig
31 BuildRequires:  rpmbuild(find_lang) >= 1.36
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 >= 2:2.22.0}
44 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
45 Requires:       json-glib >= 0.14.0
46 Suggests:       bzip2
47 Suggests:       gzip
48 Suggests:       p7zip
49 %ifarch %{ix86}
50 Suggests:       rar
51 %else
52 Suggests:       unrar
53 %endif
54 Suggests:       tar
55 Suggests:       zip
56 Obsoletes:      mate-file-archiver
57 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58
59 %description
60 Engrampa is an archive manager for the MATE environment. It's a fork
61 of File Roller from GNOME. With Engrampa you can: create and modify
62 archives; view the content of an archive; view and modify a file
63 contained in the archive; extract files from the archive.
64
65 %description -l pl.UTF-8
66 Engrampa to zarządca archiwów dla środowiska MATE. Jest to
67 odgałęzienie programu File Roller z GNOME. Przy jego pomocy można:
68 tworzyć i modyfikować archiwa, oglądać ich zawartość, oglądać i
69 modyfikować poszczególne pliki zawarte w archiwum oraz rozpakowywać
70 pliki z archiwów.
71
72 %description -l pt_BR.UTF-8
73 Engrampa é um gerenciador de pacotes de arquivos compactados para o
74 ambiente MATE. Com ele é possível criar arquivos, visualizar o
75 conteúdo de arquivos existentes, visualizar um arquivo contido em um
76 pacote e extrair os arquivos de um pacote.
77
78 %package -n caja-extension-engrampa
79 Summary:        Engrampa (archive manager) extension for Caja (MATE file manager)
80 Summary(pl.UTF-8):      Rozszerzenie Engrampa (zarządca archiwów) dla zarządcy plików Caja
81 Group:          X11/Applications
82 Requires:       %{name} = %{version}-%{release}
83 Requires:       caja >= 1.1.0
84 Obsoletes:      mate-file-manager-extension-engrampa
85
86 %description -n caja-extension-engrampa
87 Engrampa (archive manager) extension for Caja (MATE file manager).
88
89 %description -n caja-extension-engrampa -l pl.UTF-8
90 Rozszerzenie Engrampa (zarządca archiwów) dla zarządcy plików Caja.
91
92 %prep
93 %setup -q
94
95 %build
96 %{__intltoolize}
97 %{__libtoolize}
98 %{__aclocal}
99 %{__autoconf}
100 %{__autoheader}
101 %{__automake}
102 %configure \
103         %{!?with_caja:--disable-caja-actions} \
104         --disable-silent-rules \
105         --disable-static \
106         %{?with_gtk3:--with-gtk=3.0}
107
108 %{__make}
109
110 %install
111 rm -rf $RPM_BUILD_ROOT
112
113 %{__make} install \
114         DESTDIR=$RPM_BUILD_ROOT
115
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/caja/extensions-2.0/*.la
117
118 # just a copy of ur
119 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/ur_PK
120 # update naming convention
121 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{sr@ije,sr@ijekavian}
122
123 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
124 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/engrampa.convert
125
126 %find_lang engrampa --with-mate
127
128 %clean
129 rm -rf $RPM_BUILD_ROOT
130
131 %post
132 %glib_compile_schemas
133 %update_desktop_database_post
134 %update_icon_cache hicolor
135
136 %postun
137 %glib_compile_schemas
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 %{_mandir}/man1/engrampa.1*
153
154 %if %{with caja}
155 %files -n caja-extension-engrampa
156 %defattr(644,root,root,755)
157 %attr(755,root,root) %{_libdir}/caja/extensions-2.0/libcaja-engrampa.so
158 %endif
This page took 0.056785 seconds and 3 git commands to generate.