summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--libnumbertext.spec58
-rw-r--r--sources1
3 files changed, 60 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..783fd57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libnumbertext-1.0.11.tar.xz
diff --git a/libnumbertext.spec b/libnumbertext.spec
new file mode 100644
index 0000000..a36d908
--- /dev/null
+++ b/libnumbertext.spec
@@ -0,0 +1,58 @@
+Name: libnumbertext
+Version: 1.0.11
+Release: 1
+Summary: Number to number name and money text conversion library
+
+#The entire source code is dual license LGPLv3+ or BSD, except for
+#the data files hr.sor, sr.sor and sh.sor which are tri license
+#CC-BY-SA or LGPLv3+ or BSD
+License: (LGPLv3+ or BSD) and (LGPLv3+ or BSD or CC-BY-SA)
+URL: https://github.com/Numbertext/libnumbertext
+Source: https://github.com/Numbertext/libnumbertext/releases/download/%{version}/libnumbertext-%{version}.tar.xz
+
+BuildRequires: autoconf, automake, libtool, gcc-c++
+BuildRequires: make
+
+%description
+Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc
+
+%package devel
+Requires: libnumbertext = %{version}-%{release}
+Summary: Files for developing with libnumbertext
+
+%description devel
+Includes and definitions for developing with libnumbertext
+
+%prep
+%autosetup -p1
+
+%build
+autoreconf -v --install --force
+%configure --disable-silent-rules --disable-static --disable-werror --with-pic
+%make_build
+
+%check
+make check
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%make_install
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+
+%ldconfig_scriptlets
+
+%files
+%doc AUTHORS ChangeLog NEWS THANKS
+%license COPYING
+%{_bindir}/spellout
+%{_libdir}/*.so.*
+%{_datadir}/libnumbertext
+
+%files devel
+%{_includedir}/libnumbertext
+%{_libdir}/pkgconfig/libnumbertext.pc
+%{_libdir}/*.so
+
+%changelog
+* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 1.0.11-1
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..7550f9e
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+03a7034283f7eab14120acf9a727f0fa libnumbertext-1.0.11.tar.xz