Package libexo: Specfile

%define _name exo

Name: lib%_name
Version: 4.18.0
Release: alt1

Summary: Extension library to Xfce
Summary (ru_RU.UTF-8): Библиотека расширений Xfce
License: LGPLv2+ and GPLv2+
Group: System/Libraries
Url: https://docs.xfce.org/xfce/exo/start
Packager: Xfce Team <xfce@packages.altlinux.org>

Vcs: https://gitlab.xfce.org/xfce/exo.git
Source: %_name-%version.tar
Patch: %_name-%version-%release.patch

BuildRequires: rpm-build-xfce4  xfce4-dev-tools >= 4.15 libxfce4util-devel >= 4.17.2
BuildRequires: libgtk+3-devel libxfce4ui-gtk3-devel
BuildRequires: glib2-devel >= 2.66
BuildRequires: gtk-doc intltool

Requires: %name-common = %version-%release
# There is no longer python bindings for exo.
Conflicts: python-module-exo < 0.7.0

%define _unpackaged_files_terminate_build 1

%description
Libexo is an Xfce library targeted at application development. It contains
various custom widgets and APIs extending the functionality of GLib and
GTK. It also ships utilities for defining preferred applications,
mounting storage devices and more.

%description -l ru_RU.UTF-8
Libexo - библиотека расширений Xfce предназначенная для использования в
приложениях разрабатываемых под Xfce.

%package common
Summary: Common files for %name
Group: Graphical desktop/XFce
Requires: xfce4-common
BuildArch: noarch

%description common
Common files used by all %name variants.

%package -n %_name-utils
Summary: Utility files for %name
Group: Graphical desktop/XFce

%description -n %_name-utils
This package conteins Xfce utilities for defining preferred applications,
mounting storage devices and more.

%package gtk3
Summary: Extension library to Xfce (GTK+3 version)
Group: System/Libraries
Requires: %name-common = %version-%release

%description gtk3
Libexo is an Xfce library targeted at application development. It contains
various custom widgets and APIs extending the functionality of GLib and GTK.
This is a GTK+3 version.

%package gtk3-devel
Summary: Development files for %name-gtk3
Group: Development/C
Requires: %name-gtk3 = %version-%release

%description gtk3-devel
This package contains development files required for packaging
%name-based software.
This is a GTK+3 version.

%package devel-doc
Summary: Documentation files for %name
Group: Development/Documentation
BuildArch: noarch
Conflicts: %name-gtk3-devel < %version-%release

%description devel-doc
This package contains documentation files required for packaging
%name-based software.

%prep
%setup -n %_name-%version
%patch -p1

# Don't use git tag in version.
%xfce4_drop_gitvtag libexo_version_tag configure.ac.in

%build
%xfce4reconf
%configure \
	--disable-static \
	--enable-maintainer-mode \
	--enable-gtk-doc \
	--enable-debug=minimum

# Seems there is race in desktop files processing
export NPROCS=1
%make_build

%install
%makeinstall_std
%find_lang %_name

%check
make check

%files common -f %_name.lang
%doc AUTHORS NEWS README.md
%_pixmapsdir/%_name/

%files -n %_name-utils
%_bindir/*
%_man1dir/*

%files gtk3
%_libdir/%name-2.so.*

%files gtk3-devel
%_includedir/%_name-2/
%_libdir/%name-2.so
%_pkgconfigdir/%_name-2.pc

%files devel-doc
%_datadir/gtk-doc/html/%{_name}*

%changelog
* Thu Dec 15 2022 Mikhail Efremov <sem@altlinux.org> 4.18.0-alt1
- Updated descriptions.
- Updated to 4.18.0.

* Thu Dec 01 2022 Mikhail Efremov <sem@altlinux.org> 4.17.4-alt1
- Updated to 4.17.4.

* Tue Nov 01 2022 Mikhail Efremov <sem@altlinux.org> 4.17.3-alt1
- Updated to 4.17.3.

* Tue Jun 14 2022 Mikhail Efremov <sem@altlinux.org> 4.17.2-alt1
- Updated Url tag.
- Updated to 4.17.2 (fixes: CVE-2022-32278).

* Thu Sep 30 2021 Mikhail Efremov <sem@altlinux.org> 4.17.1-alt1
- Updated to 4.17.1.

* Thu Jul 22 2021 Mikhail Efremov <sem@altlinux.org> 4.17.0-alt1
- Cleanup BR.
- Updated to 4.17.0.

* Mon Apr 12 2021 Mikhail Efremov <sem@altlinux.org> 4.16.2-alt1
- Updated to 4.16.2.

* Fri Mar 12 2021 Mikhail Efremov <sem@altlinux.org> 4.16.1-alt1
- Updated to 4.16.1.

* Wed Dec 23 2020 Mikhail Efremov <sem@altlinux.org> 4.16.0-alt1
- Updated to 4.16.0.

* Mon Nov 02 2020 Mikhail Efremov <sem@altlinux.org> 4.15.3-alt1
- Dropped perl-URI from BR.
- Updated to 4.15.3.

* Wed Sep 02 2020 Mikhail Efremov <sem@altlinux.org> 4.15.2-alt1
- Dropped exo-csource subpackage.
- Dropped GTK+2 support.
- Updated Vcs tag.
- Updated to 4.15.2.

* Thu Dec 19 2019 Mikhail Efremov <sem@altlinux.org> 0.12.11-alt1
- Don't use rpm-build-licenses.
- Updated to 0.12.11.

* Fri Nov 22 2019 Mikhail Efremov <sem@altlinux.org> 0.12.10-alt1
- Updated to 0.12.10.

* Mon Nov 18 2019 Mikhail Efremov <sem@altlinux.org> 0.12.9-alt1
- Updated to 0.12.9.

* Mon Aug 12 2019 Mikhail Efremov <sem@altlinux.org> 0.12.8-alt1
- Updated to 0.12.8.

* Mon Jul 29 2019 Mikhail Efremov <sem@altlinux.org> 0.12.7-alt1
- Updated to 0.12.7.

* Fri Jun 14 2019 Mikhail Efremov <sem@altlinux.org> 0.12.6-alt1
- Updated to 0.12.6.

* Mon May 13 2019 Mikhail Efremov <sem@altlinux.org> 0.12.5-alt1
- Don't use deprecated PreReq.
- Updated to 0.12.5.

* Mon Jan 21 2019 Mikhail Efremov <sem@altlinux.org> 0.12.4-alt1
- Updated to 0.12.4.

* Tue Oct 16 2018 Mikhail Efremov <sem@altlinux.org> 0.12.3-alt1
- Updated to 0.12.3.

* Tue Aug 07 2018 Mikhail Efremov <sem@altlinux.org> 0.12.2-alt1
- Set NPROCS=1 for build.
- Update url.
- Enable debug (minimum level).
- Move translations to common subpackage.
- Split out common and utils subpackages from libexo.
- Drop %%exclude for categories icons.
- Build GTK+3 version.
- Updated to 0.12.2.

* Sat Apr 28 2018 Mikhail Efremov <sem@altlinux.org> 0.10.7-alt2
- Added helper New Moon Web browser (by Anton Midyukov)
    (closes: #34637).

* Mon Sep 14 2015 Mikhail Efremov <sem@altlinux.org> 0.10.7-alt1
- Updated to 0.10.7.

* Tue May 26 2015 Mikhail Efremov <sem@altlinux.org> 0.10.6-alt1
- Updated to 0.10.6.

* Tue Mar 17 2015 Mikhail Efremov <sem@altlinux.org> 0.10.4-alt1
- Updated to 0.10.4.

* Thu Mar 05 2015 Mikhail Efremov <sem@altlinux.org> 0.10.3-alt1
- Don't package menu categories icons.
- Updated to 0.10.3.

* Mon Jan 12 2015 Mikhail Efremov <sem@altlinux.org> 0.10.2-alt3.git20150112
- Fix Xfce name (XFce,XFCE -> Xfce).
- Upstream git snapshot.

* Fri Dec 28 2012 Mikhail Efremov <sem@altlinux.org> 0.10.2-alt2
- Bring back changes for xfce4-terminal.

* Thu Dec 27 2012 Mikhail Efremov <sem@altlinux.org> 0.10.2-alt1
- Temporally revert commits for xfce4-terminal.
- Updated to 0.10.2.

* Mon Dec 10 2012 Mikhail Efremov <sem@altlinux.org> 0.10.1-alt1
- Updated to 0.10.1.

* Mon Dec 03 2012 Mikhail Efremov <sem@altlinux.org> 0.10.0-alt1
- Updated to 0.10.0.
- Don't package Debian-specific helpers.
- Require xfce4-common.

* Sun Apr 29 2012 Mikhail Efremov <sem@altlinux.org> 0.8.0-alt1
- Updated to 0.8.0.

* Tue Apr 17 2012 Mikhail Efremov <sem@altlinux.org> 0.7.3-alt1
- Updated to 0.7.3.

* Mon Apr 09 2012 Mikhail Efremov <sem@altlinux.org> 0.7.2-alt1
- Updated to 0.7.2.

* Mon Feb 13 2012 Mikhail Efremov <sem@altlinux.org> 0.7.1-alt1
- Updated to 0.7.1.

* Fri Dec 30 2011 Mikhail Efremov <sem@altlinux.org> 0.7.0-alt1
- Drop python module subpackage.
- Drop obsileted patches.
- Updated to 0.7.0.

* Sat Oct 22 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.6.2-alt3.1
- Rebuild with Python-2.7

* Wed Aug 31 2011 Mikhail Efremov <sem@altlinux.org> 0.6.2-alt3
- Drop obsoleted fix-russian-translation.patch.
- Updated Russian translation.

* Mon Aug 15 2011 Mikhail Efremov <sem@altlinux.org> 0.6.2-alt2
- Rename and update fix-russian-translation.patch.
- Updated Russian translation (by Artem Zolochevskiy).

* Fri Jun 24 2011 Mikhail Efremov <sem@altlinux.org> 0.6.2-alt1
- Updated alt-translation.patch.
- Updated to 0.6.2.

* Tue Feb 15 2011 Mikhail Efremov <sem@altlinux.org> 0.6.0-alt3
- Own %%_pixmapsdir/exo-1 dir.
- Enable tests.
- Fix tests.
- Package libexo-devel-doc as noarch.

* Fri Feb 11 2011 Mikhail Efremov <sem@altlinux.org> 0.6.0-alt2
- Fix build with glib >= 2.27.

* Thu Jan 20 2011 Mikhail Efremov <sem@altlinux.org> 0.6.0-alt1
- Rename package: exo -> libexo.
- Fix build python module on x86_64 (based on patch from FC).
- Fix license.
- Spec cleanup.
- Update and enable alt-translation.patch.
- Drop exo-0.3.2-alt-noatime.patch (obsolete).
- Drop exo-0.3.2-alt-eject.patch (obsolete).
- Drop alt-exo-iocharset.patch (obsolete).
- Updated to 0.6.0.

* Thu Jan 20 2011 Igor Vlasenko <viy@altlinux.ru> 0.3.101-alt2.1
- rebuild for set:provides by request of mithraen

* Tue Jan 05 2010 Denis Koryavov <dkoryavov@altlinux.org> 0.3.101-alt2
- Fix build with gtkdocize.

* Wed Nov 25 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.101-alt1.1
- Rebuilt with python 2.6

* Mon Apr 20 2009 Denis Koryavov <dkoryavov@altlinux.org> 0.3.101-alt1
- Xfce 4.6.1

* Sun Apr 12 2009 Denis Koryavov <dkoryavov@altlinux.org> 0.3.100-alt1
- Xfce 4.6.0

* Tue Jan 27 2009 Eugene Ostapets <eostapets@altlinux.ru> 0.3.99.1-alt1
- Xfce 4.6rc1

* Thu Jan 22 2009 Eugene Ostapets <eostapets@altlinux.ru> 0.3.93-alt1
- Xfce 4.6 beta 3

* Fri Oct 24 2008 Eugene Ostapets <eostapets@altlinux.org> 0.3.91-alt1
- Xfce 4.6 beta1

* Fri Jan 25 2008 Grigory Batalov <bga@altlinux.ru> 0.3.4-alt2.1
- Rebuilt with python-2.5.

* Wed Dec 12 2007 Alex V. Myltsev <avm@altlinux.ru> 0.3.4-alt2
- restore lost changes (now as patches)
- pull Russian translation from SVN
- create version script for libexo (new symbol added)

* Mon Dec 10 2007 Eugene Ostapets <eostapets@altlinux.org> 0.3.4-alt1
- Xfce 4.4.2 release

* Wed Nov 21 2007 Alex V. Myltsev <avm@altlinux.ru> 0.3.2-alt6
- Russian translation fixes

* Mon Oct 29 2007 Alex V. Myltsev <avm@altlinux.ru> 0.3.2-alt5
- use 'noatime' if allowed by HAL
- enable mount notifications through libnotify

* Wed Sep 12 2007 Alex V. Myltsev <avm@altlinux.ru> 0.3.2-alt4
- fix #12702: pushing eject on the disc drive should now work.

* Tue Jun 19 2007 Eugene Ostapets <eostapets@altlinux.ru> 0.3.2-alt3
- try fix 11176

* Sun Jun 17 2007 Eugene Ostapets <eostapets@altlinux.ru> 0.3.2-alt2
- fix 12005

* Fri Mar 16 2007 Eugene Ostapets <eostapets@altlinux.ru> 0.3.2-alt1
- add requires for hal

* Mon Jan 22 2007 Eugene Ostapets <eostapets@altlinux.ru> 0.3.2-alt0.1
- Xfce 4.4 release

* Sun Nov 05 2006 Eugene Ostapets <eostapets@altlinux.ru> 0.3.1.12-alt1
- Xfce 4.4rc2

* Mon Oct 30 2006 Eugene Ostapets <eostapets@altlinux.ru>  0.3.1.10rc1-alt2
- Fix buildreq and cleanup spec

* Sat Sep 30 2006 Eugene Ostapets <eostapets@altlinux.ru> 0.3.1.10rc1-alt1
- Xfce 4.4rc1

* Wed Oct 12 2005 Eugene Ostapets <eostapets@altlinux.ru> 0.3.0-alt2
- fix macro

* Sun Mar 20 2005 Andrey Astafiev <andrei@altlinux.ru> 0.3.0-alt1
- 0.3.0

* Sat Dec 25 2004 Andrey Astafiev <andrei@altlinux.ru> 0.2.0-alt1
- First version of RPM package for Sisyphus.