File myspell-german-old.spec of Package myspell-german-old

#
# spec file for package myspell-german-old
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           myspell-german-old
License:        GPL v2 or later
Group:          Productivity/Text/Spell
Provides:       myspell-dictionary myspell-german-dictionary
Conflicts:      myspell-german 
AutoReqProv:    on
Version:        20030428
Release:        243
Summary:        Old German Dictionary for MySpell
Url:            http://j3e.de/myspell/
Source0:        de_OLDSPELL.tar.bz2
Source1:        Nwordlist.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch


%description
This dictionary supports spell checking according to the old German spelling
rules.

MySpell dictionaries are compatible with MySpell and Hunspell spell-checker.
They are used by various desktop applications, for example, LibreOffice,
Mozilla Thunderbird, and Mozilla Firefox.



%prep
%setup -q -c -a 1


%build
# add the Novell jargon into dictionary bnc#306333
# the file Nwordlist needs to contain extra newline on the beginning!
cat Nwordlist >> de_OLDSPELL.dic


%install
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/myspell/
install -m 644 de_OLDSPELL.dic $RPM_BUILD_ROOT%{_datadir}/myspell/de_DE.dic
install -m 644 de_OLDSPELL.aff $RPM_BUILD_ROOT%{_datadir}/myspell/de_DE.aff


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%dir %{_datadir}/myspell/
%{_datadir}/myspell/de_DE.dic
%{_datadir}/myspell/de_DE.aff



%changelog
openSUSE Build Service is sponsored by