LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File noxspellserver.spec of Package noxspellserver (Project home:lrupp)

#
# spec file for package noxspellserver
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           noxspellserver
Version:        1.1
Release:        0
License:       GPL-3.0+
Summary:        Python Aspell server
Url:            http://orangoo.com/labs/GoogieSpell/Download/Nox%20Spell%20Server/
Group:          Productivity/Text/Spell
Source:         NoxSpellServer.tar.bz2
Source1:        noxspellserver.sysconfig
Source2:        noxspellserver.init
Patch1:         noxspellserver-cherrypy.patch
Patch2:         noxspellserver-deprecated.patch
PreReq:         %insserv_prereq
PreReq:         %fillup_prereq
Requires:       python
Requires:       aspell
Requires:       python-cherrypy2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Nox Spell Server is a little Python Aspell server that is fully compatible with
GoogieSpell. If you are concerned over privacy or reliability of Google's spell
service, then look no more, because you found your solution. Aspell also
supports far more languages than Google spell service. 

%prep
%setup -q -n NoxSpellServer
%patch1 -p1
%patch2 -p1
sed -i "s|||g" GPL.txt

%build
#

%install
mkdir -p %{buildroot}%{_bindir}
sed -e "s|/usr/bin/python2.4|%{_bindir}/python|g" nox_server.py > %{buildroot}%{_bindir}/nox_server.py 
install -Dm644 %{SOURCE1} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name}
install -Dm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/init.d/%{name}
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}

%preun 
%stop_on_removal %{name}

%post
%{fillup_and_insserv %{name}}

%postun
%restart_on_update %{name}
%insserv_cleanup

%files
%defattr(0644,root,root,0755)
%doc GPL.txt
%attr(0755,root,root) %{_bindir}/nox_server.py
%attr(0755,root,root) %{_sysconfdir}/init.d/%{name}
%attr(0755,root,root) %{_sbindir}/rc%{name}
/var/adm/fillup-templates/sysconfig.%{name}

%changelog