-
Notifications
You must be signed in to change notification settings - Fork 0
/
scws.spec
44 lines (35 loc) · 970 Bytes
/
scws.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
Name: scws
Version: 1.2.3
Release: 1PIGSTY%{?dist}
Summary: Simple Chinese Word Segmentation
License: BSD
URL: http://www.xunsearch.com/scws/
Source0: scws-%{version}.tar.bz2
# http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2
BuildRequires: gcc, make
Requires: glibc
%description
SCWS (Simple Chinese Word Segmentation) is a high performance Chinese word segmentation utility.
%prep
%setup -q
%build
LDFLAGS="-Wl,--disable-new-dtags" ./configure
make
%install
make install DESTDIR=%{buildroot}
%files
/usr/local/bin/scws
/usr/local/bin/scws-gen-dict
/usr/local/lib/libscws.*
/usr/local/include/scws/*
/usr/local/etc/rules.ini
/usr/local/etc/rules.utf8.ini
/usr/local/etc/rules_cht.utf8.ini
%exclude /usr/lib/.build-id/*
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%changelog
* Wed Sep 13 2023 Vonng <[email protected]> - 1.2.3
- Initial RPM release, used by Pigsty <https://pigsty.io>