diff options
author | Remi Collet <fedora@famillecollet.com> | 2017-03-24 10:46:08 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2017-03-24 10:46:08 +0100 |
commit | 2aa8a77970c8cbd76d59743da3494938ea07ea41 (patch) | |
tree | 63f32ac9c9ab1b7850f11653eb185825fc30946b /libreoffice-grammalecte.spec | |
parent | 61481030b5935570a75d83875f785ead83913ce5 (diff) |
cleanuppy27
Diffstat (limited to 'libreoffice-grammalecte.spec')
-rw-r--r-- | libreoffice-grammalecte.spec | 69 |
1 files changed, 13 insertions, 56 deletions
diff --git a/libreoffice-grammalecte.spec b/libreoffice-grammalecte.spec index 2be640c..6fdf35b 100644 --- a/libreoffice-grammalecte.spec +++ b/libreoffice-grammalecte.spec @@ -1,4 +1,4 @@ -# remirepo/fedora spec file for libreoffice-grammalecte +# remirepo spec file for libreoffice-grammalecte # # Copyright (c) 2016-2017 Remi Collet # License: CC-BY-SA @@ -10,14 +10,13 @@ %global extname grammalecte # data-only package %global debug_package %{nil} -# to ensure bytecompile use the right version -%global __python %{_bindir}/python3 +%global _python_bytecompile_errors_terminate_build 0 # NOTE: this package is not noarch because LibreOffice has no # arch-independent extension location Name: libreoffice-%{extname} -Version: 0.5.15 +Version: 0.4.10.7 Release: 1%{?dist} Summary: French grammar corrector Summary(fr): Correcteur grammatical Français @@ -26,21 +25,15 @@ 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}.7z -Source1: %{name}.metainfo.xml +Source0: http://www.dicollecte.org/grammalecte/oxt/Grammalecte-v%{version}-py27.oxt -BuildRequires: p7zip -BuildRequires: python3-devel -BuildRequires: libappstream-glib -%if 0%{?fedora} >= 24 -BuildRequires: glibc-langpack-fr -%endif - -Supplements: libreoffice-langpack-fr +BuildRequires: python2-devel > 2.7 +BuildRequires: python2-devel < 3 Requires: libreoffice-writer Requires: libreoffice-langpack-fr Requires: libreoffice-pyuno +Requires: python(abi) = 2.7 %description @@ -70,61 +63,25 @@ Ce paquet fournit l'extension pour LibreOffice Writer. %prep -%setup -qcT -7za x %{SOURCE0} - -for file in $(find . -name \*.py) -do - sed -e '/#!python3/d' -e 's/\r//' -i $file -done +%setup -q -c %build -export LANG=fr_FR.UTF-8 -%{__python} ./make.py -b fr +: Nothing to build %install install -d -m 0755 %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} -unzip -d %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} _build/Grammalecte-fr-v%{version}.oxt -chmod -R +rX %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} - -DESTDIR=%{buildroot} appstream-util install %{SOURCE1} - - -%check -appstream-util validate-relax -v %{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml - -export LANG=fr_FR.UTF-8 -%{__python} ./make.py -t fr - +cp -pr * %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extname} %files -%license README.txt LICENSE.* +%{!?_licensedir:%global license %%doc} +%license README_fr.txt %{_libdir}/libreoffice/share/extensions/%{extname} -%{_datadir}/appdata/%{name}.metainfo.xml %changelog -* Mon Feb 13 2017 Remi Collet <remi@remirepo.net> - 0.5.15-1 -- update to 0.5.15 -- run upstream tests during the build -- drop patch merged upstream - -* Thu Dec 29 2016 Remi Collet <remi@fedoraproject.org> - 0.5.14-5 -- build from sources - -* Sun Dec 25 2016 Remi Collet <remi@fedoraproject.org> - 0.5.14-4 -- Add Appstream metadata - -* Fri Dec 23 2016 Remi Collet <remi@fedoraproject.org> - 0.5.14-3 -- add Supplements libreoffice-langpack-fr - -* Fri Dec 23 2016 Remi Collet <remi@fedoraproject.org> - 0.5.14-2 -- add dependencies on libreoffice-langpack-fr and libreoffice-pyuno -- enable byte compile - -* Thu Dec 22 2016 Remi Collet <remi@fedoraproject.org> - 0.5.14-1 +* Fri Dec 23 2016 Remi Collet <remi@fedoraproject.org> - 0.4.10.7-1 - initial package |