Accepting request 505801 from M17N
1 OBS-URL: https://build.opensuse.org/request/show/505801 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libpinyin?expand=0&rev=25
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 22 10:14:11 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Switch to kyotocabinet from libdb so it could be removed
|
||||
- Enable tests
|
||||
- Remove needless buildrequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 2 02:11:05 UTC 2017 - jengelh@inai.de
|
||||
|
||||
|
||||
@@ -36,17 +36,13 @@ Patch1: libpinyin-fix_double_pinyin.patch
|
||||
Patch2: libpinyin-1.7.0-no-AX_CXX_COMPILE_STDCXX_11.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: gnome-common
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libkyotocabinet-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: xz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} >= 1140
|
||||
BuildRequires: libdb-4_8-devel
|
||||
%else
|
||||
BuildRequires: libdb-4_5-devel
|
||||
%endif
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
|
||||
%description
|
||||
libpinyin is an intelligent (and universal) sentence-based Pinyin IME
|
||||
@@ -102,26 +98,31 @@ cp -r %{SOURCE1} data/
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-dbm=KyotoCabinet \
|
||||
--disable-silent-rules
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
%make_install
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%check
|
||||
make %{?_smp_mflags} check
|
||||
|
||||
%post -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
||||
|
||||
%files -n %{name}%{sover}
|
||||
%defattr(-,root,root)
|
||||
%doc ChangeLog AUTHORS COPYING README
|
||||
%{_libdir}/%{name}.so.*
|
||||
%{_mandir}/man1/libpinyin.1.gz
|
||||
%{_mandir}/man1/libpinyin.1%{ext_man}
|
||||
|
||||
%files data
|
||||
%defattr(-,root,root)
|
||||
|
||||
Reference in New Issue
Block a user