%define dictdir %{_datadir}/%{name} Summary: MySpell Norwegian dictionaries Name: myspell-no Version: 2.0 Release: 1pcap Epoch: 2 BuildArch: noarch URL: http://www.openoffice.org/ Packager: Toralf Lund License: GPL Group: Applications/Productivity Source0: ispell-3.2.06.tar.gz Source1: http://www.uio.no/~runekl/ispell-norsk-2.0.tar.gz Source2: iaff2myaff.perl Source3: ispell-norsk.myspell.txt Patch0: ispell-3.2.06.no.patch Patch1: ispell-norsk.myspell.patch BuildRoot: /var/tmp/%{name}-root %description %(cat %{SOURCE3}) Note: This package will not actually install the dictionaries; it just contains a zip file suitable for submission to the OOo dictionary download area or as source for openoffice package build (and the SRPM/spec file represent a convenient way to built this zip file.) %prep %setup -c %{name}-%{version} -a 1 cp %{SOURCE2} norsk cp %{SOURCE3} norsk/README.myspell %__rm -rf ispell-*/languages/norsk %__mv norsk ispell-*/languages %patch0 %patch1 -b .my %build %install rm -rf $RPM_BUILD_ROOT cd ispell-* cp local.h.samp local.h make make unsq cd languages/norsk make myspell-dist coreDumps=`ls core core.[0-9]* 2> /dev/null || true` if [ -n "$coreDumps" ] then echo "*** One or more commands crashed during 'make myspell'; core dumps:" for core in $coreDumps do file $core done echo "Please try again (Note: The problem may be caused by insufficient memory.)" exit 1 fi %__install -d -m 775 $RPM_BUILD_ROOT%{dictdir} %__install -d -m 444 no_NO.zip $RPM_BUILD_ROOT%{dictdir} %clean rm -rf $RPM_BUILD_ROOT %files %attr(-,root,root) %{dictdir}