SHA256
1
0
forked from pool/anthy

Accepting request 632473 from home:qzhao:branches:M17N

- Update anthy.spec: Divide openSUSE build with emacs function and 
  SLE doesn't need it.

OBS-URL: https://build.opensuse.org/request/show/632473
OBS-URL: https://build.opensuse.org/package/show/M17N/anthy?expand=0&rev=31
This commit is contained in:
2018-08-31 12:04:04 +00:00
committed by Git OBS Bridge
parent fdcc372547
commit a10d494a75
2 changed files with 21 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Aug 31 10:19:58 UTC 2018 - qzhao@suse.com
- Update anthy.spec: Divide openSUSE build with emacs function and
SLE doesn't need it.
-------------------------------------------------------------------
Thu Feb 8 17:26:49 UTC 2018 - msuchanek@suse.com

View File

@@ -16,11 +16,19 @@
#
%if 0%{?is_opensuse}
%define with_emacs 1
%else
%define with_emacs 0
%endif
Name: anthy
BuildRequires: emacs-x11
BuildRequires: fdupes
BuildRequires: libtool
%if %{with_emacs}
BuildRequires: emacs-x11
BuildRequires: xemacs
%endif
Version: 9100h
Release: 0
Url: https://osdn.jp/projects/anthy/
@@ -91,6 +99,7 @@ cd test
%install
%makeinstall
%if %{with_emacs}
install -m 644 $RPM_SOURCE_DIR/suse-start-anthy.el $RPM_BUILD_ROOT/usr/share/emacs/site-lisp/
# compile the XEmacs versions of the emacs-lisp files and install them:
pushd src-util
@@ -100,6 +109,7 @@ pushd src-util
mkdir -p $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
install -m 644 *.el *.elc $RPM_BUILD_ROOT/usr/share/xemacs/site-packages/lisp/anthy
popd
%endif
%fdupes $RPM_BUILD_ROOT/usr/share
%{__rm} -f %{buildroot}%{_libdir}/*.la
# remove unneeded Makefiles for documents
@@ -111,15 +121,17 @@ rm -f doc/Makefile.*
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog DIARY INSTALL NEWS README
%doc doc
%doc AUTHORS ChangeLog DIARY INSTALL NEWS README doc
%license COPYING
%config %{_sysconfdir}/anthy-conf
%dir /usr/share/anthy/
/usr/share/anthy/*
%{_bindir}/*
%{_libdir}/*.so.*
%if %{with_emacs}
/usr/share/emacs/site-lisp/*
/usr/share/xemacs/*
%endif
%files devel
%defattr(-, root, root)