summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-13 11:12:53 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-13 11:12:53 +0000
commitafe7fd674c20fe0b8b106b43ac4a15a3c80c2652 (patch)
tree0f20e54f42965530f3df595f61c7da252afa28a5
parentbfcb3eb46d724db559ff90c6ae1a7cf82bde5097 (diff)
automatic import of mythesopeneuler23.03
-rw-r--r--.gitignore1
-rw-r--r--mythes.spec59
-rw-r--r--sources1
3 files changed, 61 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..32970bd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mythes-1.2.4.tar.gz
diff --git a/mythes.spec b/mythes.spec
new file mode 100644
index 0000000..3ab5dbb
--- /dev/null
+++ b/mythes.spec
@@ -0,0 +1,59 @@
+Name: mythes
+Version: 1.2.4
+Release: 11
+Summary: A thesaurus library
+License: BSD and MIT
+URL: http://hunspell.sourceforge.net/
+Source: http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
+
+BuildRequires: hunspell-devel, gcc-c++
+
+%description
+MyThes is a simple thesaurus that uses a structured text data file and an
+index file with binary search to look up words and phrases and return
+information on part of speech, meanings, and synonyms.
+
+%package devel
+Requires: mythes = %{version}-%{release}, pkgconfig
+Summary: Files for developing with mythes
+
+%description devel
+Includes and definitions for developing with mythes
+
+%prep
+%setup -q
+
+%build
+%configure --disable-rpath --disable-static
+%make_build
+
+%check
+./example th_en_US_new.idx th_en_US_new.dat checkme.lst
+./example morph.idx morph.dat morph.lst morph.aff morph.dic
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc README COPYING AUTHORS
+%{_libdir}/*.so.*
+%{_datadir}/mythes
+
+%files devel
+%doc data_layout.txt
+%{_includedir}/mythes.hxx
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/mythes.pc
+%{_bindir}/th_gen_idx.pl
+
+%changelog
+* Sat Jul 18 2020 lingsheng <lingsheng@huawei.com> - 1.2.4-11
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..d52c227
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a8c2c5b8f09e7ede322d5c602ff6a4b6 mythes-1.2.4.tar.gz