From 951208612d5a3050df575f5b4d4e884c4b5e1e87 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 28 Dec 2016 10:46:25 +0100 Subject: libreoffice-grammalecte: comment --- libreoffice-grammalecte.spec | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) (limited to 'libreoffice-grammalecte.spec') diff --git a/libreoffice-grammalecte.spec b/libreoffice-grammalecte.spec index 5cbbfbc..1a35ade 100644 --- a/libreoffice-grammalecte.spec +++ b/libreoffice-grammalecte.spec @@ -10,14 +10,15 @@ %global extname grammalecte # data-only package %global debug_package %{nil} -%global _python_bytecompile_errors_terminate_build 0 +# to ensure bytecompile use the right version +%global __python %{_bindir}/python3 # NOTE: this package is not noarch because LibreOffice has no # arch-independent extension location Name: libreoffice-%{extname} -Version: 0.4.10.7 -Release: 1%{?dist} +Version: 0.5.14 +Release: 4%{?dist} Summary: French grammar corrector Summary(fr): Correcteur grammatical Français Group: System Environment/Libraries @@ -25,15 +26,18 @@ Group: System Environment/Libraries # *.py from Lightproof are MPLv2.0, extension is GPLv3 and later License: GPLv3+ and MPLv2.0 URL: http://www.dicollecte.org/grammalecte/ -Source0: http://www.dicollecte.org/grammalecte/oxt/Grammalecte-v%{version}-py27.oxt +Source0: http://www.dicollecte.org/grammalecte/oxt/Grammalecte-fr-v%{version}.oxt +Source1: %{name}.metainfo.xml -BuildRequires: python2-devel > 2.7 -BuildRequires: python2-devel < 3 +BuildRequires: python3-devel +BuildRequires: libappstream-glib + +Supplements: libreoffice-langpack-fr Requires: libreoffice-writer Requires: libreoffice-langpack-fr Requires: libreoffice-pyuno -Requires: python(abi) = 2.7 +Requires: python(abi) >= 3 %description @@ -74,14 +78,30 @@ Ce paquet fournit l'extension pour LibreOffice Writer. install -d -m 0755 %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} cp -pr * %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} +DESTDIR=%{buildroot} appstream-util install %{SOURCE1} + + +%check +appstream-util validate-relax -v %{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml + %files -%{!?_licensedir:%global license %%doc} %license README_fr.txt %{_libdir}/libreoffice/share/extensions/%{extname} +%{_datadir}/appdata/%{name}.metainfo.xml %changelog -* Fri Dec 23 2016 Remi Collet - 0.4.10.7-1 +* Sun Dec 25 2016 Remi Collet - 0.5.14-4 +- Add Appstream metadata + +* Fri Dec 23 2016 Remi Collet - 0.5.14-3 +- add Supplements libreoffice-langpack-fr + +* Fri Dec 23 2016 Remi Collet - 0.5.14-2 +- add dependencies on libreoffice-langpack-fr and libreoffice-pyuno +- enable byte compile + +* Thu Dec 22 2016 Remi Collet - 0.5.14-1 - initial package -- cgit