Files
libnumbertext/libnumbertext.spec
Danilo Spinella 623e0ddc45 Accepting request 1056792 from home:dirkmueller:Factory
- update to 1.0.11:
  * Soros.cxx/java/js/py: fix boundary inheritance of
  *   optional function (conditional text), reported by Juanma Sanchez
  *   and Antonio Bueno
  * test/*, configure.ac, Makefile.am: add C++ unit testing
  * Soros.cxx: fix an assert seen with in libreoffice crashtesting on
  *   an empty string, by Caolán McNamara
  * New modules:
  * fa.sor: new Persian (Farsi) module by Amir Hossein Maher
  * mul.sor: new module with note symbols for multiple languages
  * Module fixes and extensions:
  * ca.sor: revert removing conditional text
  * cs.sor: fix ordinals, cardinals, currencies by Stanislav Horáček,
  *   with help of Zdeněk Crhonek
  * da.sor: revert removing conditional text
  * en.sor: add extra currencies (BZF, DKK, ILS, LKR, ZMW, ZWD) for
  *   LibreOffice locales of Number Format dialog windows
  * es.sor: add extra currencies (PAB, SVC, VED/VES) for LibreOffice,
  *   revert removing conditional text
  * ga.sor: add currency support
  * hu_Hung.sor: fix regression of transliteration of parenthesized words
  *   in LibreOffice, reported by Zoltán Óvári
  * ro.sor: strip first space and remove double space in currency
  * ru.sor: fix grammar of cents by Alex Ivanov
  * sl.sor: fix cardinal-masculine and cardinal-neuter,
  *   reported by Martin Srebotnjak
  * uk.sor: fix grammar of cents by Alex Ivanov
  * LibreOffice Calc add-on:
  * CalcAddIn.xcu: new Russian translation by Evgeniy Kukhtinov

OBS-URL: https://build.opensuse.org/request/show/1056792
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libnumbertext?expand=0&rev=21
2023-01-16 16:37:36 +00:00

111 lines
3.0 KiB
RPMSpec

#
# spec file for package libnumbertext
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{!?make_build:%global make_build make %{?_smp_mflags}}
%define libname libnumbertext-1_0-0
Name: libnumbertext
Version: 1.0.11
Release: 0
Summary: Language-neutral NUMBERTEXT and MONEYTEXT functions
License: MPL-2.0
URL: https://github.com/Numbertext/libnumbertext
Source: https://github.com/Numbertext/libnumbertext/archive/%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
%if 0%{?suse_version} < 1500
BuildRequires: gcc7-c++
%endif
%description
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc
%package -n %{libname}
Summary: Language-neutral NUMBERTEXT and MONEYTEXT functions
Requires: %{name}-data >= %{version}
%description -n %{libname}
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc
%package devel
Summary: Files for Developing with libnumbertext
Requires: %{libname} = %{version}
%description devel
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc
This package contains the libnumbertext development files.
%package tools
Summary: Tools to work with NUMBERTEXT and MONEYTEXT functions
Requires: %{name}-data >= %{version}
%description tools
This package contains tools to work with NUMBERTEXT and MONEYTEXT functions
%package data
Summary: Language data for numbertext
%description data
This package contains data providing information for localized nubertext
conversions.
%prep
%setup -q
%build
autoreconf -fvi
%if 0%{?suse_version} < 1500
export CXX=g++-7
%endif
%configure \
--disable-static \
--disable-silent-rules \
%{nil}
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
# missing config.h header
install -m 0644 src/config.h %{buildroot}%{_includedir}/libnumbertext/config.h
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%license COPYING
%{_libdir}/*.so.*
%files devel
%dir %{_includedir}/libnumbertext
%{_includedir}/libnumbertext/*
%{_libdir}/libnumbertext-1.0.so
%{_libdir}/pkgconfig/libnumbertext.pc
%files tools
%{_bindir}/spellout
%files data
%dir %{_datadir}/libnumbertext
%{_datadir}/libnumbertext/*.sor
%changelog