File engrampa.spec of Package engrampa

#
# spec file for engrampa
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


Name:           engrampa
Version:        1.8.0
Release:        0
License:        GPL-2.0+ and LGPL-2.0+
Summary:        MATE Desktop archive manager
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Recommends:     %{name}-lang
Provides:       mate-file-archiver = %{version}
Obsoletes:      mate-file-archiver < %{version}
Obsoletes:      mate-file-archiver-lang < %{version}
%glib2_gsettings_schema_requires

BuildRequires:  hicolor-icon-theme
BuildRequires:  mate-common
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libcaja-extension) >= 1.8.0
BuildRequires:  pkgconfig(sm)
BuildRequires:  libxml2-python
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools

%lang_package

%description
Engrampa is an archive manager for the MATE environment. This means that
you can create and modify archives; view the content of an archive; view
and modify a file contained in the archive; extract files from the
archive.

%package -n caja-%{name}
Summary:        MATE Desktop engrampa plugin for caja
Group:          System/GUI/Other
Requires:       %{name} = %{version}-%{release}
Provides:       mate-file-archiver-%{name} = %{version}
Obsoletes:      mate-file-archiver-%{name} < %{version}

%description -n caja-engrampa
Engrampa is an archive manager for the MATE environment. This means that
you can create and modify archives; view the content of an archive; view
and modify a file contained in the archive; extract files from the
archive.

%prep
%setup -q

%build
%configure                                                \
   --disable-static                                       \
   --disable-scrollkeeper                                 \
   --libexecdir=%{_libexecdir}/%{name}
make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -type f -name "*.la" -print -delete
rm -rf %{buildroot}%{_datadir}/MateConf

%post
%desktop_database_postun
%glib2_gsettings_schema_post
%icon_theme_cache_postun

%postun
%desktop_database_postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS README COPYING
%{_bindir}/%{name}
%{_libexecdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/%{name}/
%{_datadir}/icons/hicolor/*/*/*
%{_mandir}/man1/%{name}.1.gz

%files -n caja-%{name}
%defattr(-,root,root,-)
%{_libdir}/caja/extensions-2.0/libcaja-%{name}.so

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by