/[packages]/cauldron/hspell/current/SPECS/hspell.spec
ViewVC logotype

Diff of /cauldron/hspell/current/SPECS/hspell.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 70238 by mikala, Fri Jan 14 17:59:47 2011 UTC revision 70239 by dmorgan, Sat Mar 12 23:06:23 2011 UTC
# Line 5  Line 5 
5  Summary:        Free Hebrew linguistic project  Summary:        Free Hebrew linguistic project
6  Name:           hspell  Name:           hspell
7  Version:        1.1  Version:        1.1
8  Release:        %mkrel 2  Release:        %mkrel 3
9  Group:          Text tools  Group:          Text tools
10  License:        LGPL  License:        LGPL
11  URL:            http://www.ivrix.org.il/projects/spell-checker/  URL:            http://www.ivrix.org.il/projects/spell-checker/
12  Source0:        %{name}-%{version}.tar.bz2  Source0:        %{name}-%{version}.tar.bz2
13    Patch0:         hspell-1.0.sharedlib.patch
14  BuildRequires:  automake1.8  BuildRequires:  automake1.8
15  Requires:       %{libname} = %{version}-%{release}        Requires:       %{libname} = %{version}-%{release}
16  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
17    
18  %description  %description
# Line 48  Obsoletes:     %{mklibname hspell 0 -d} Line 49  Obsoletes:     %{mklibname hspell 0 -d}
49  %description -n %{develname}  %description -n %{develname}
50  Development headers, and files for development from the hspell package.  Development headers, and files for development from the hspell package.
51    
52    %package -n hunspell-he
53    Summary: Hebrew hunspell dictionaries
54    Group: Applications/Text
55    Requires: hunspell
56    
57    %description -n hunspell-he
58    Hebrew hunspell dictionaries.
59    
60  %prep  %prep
61    
62  %setup -q  %setup -q
63    %patch0 -p1 -b .sharedlib.patch
64    
65  %build  %build
66  CFLAGS="%optflags -fPIC" CPPFLAGS="%optflags -fPIC" FFLAGS="optflags -fPIC" \  CFLAGS="%optflags -fPIC" CPPFLAGS="%optflags -fPIC" FFLAGS="optflags -fPIC" \
67  %configure2_5x --enable-fatverb --enable-fatverb  %configure2_5x --enable-fatverb --enable-fatverb
68  %make  %make
69    make hunspell
70    cat >> hunspell/new_he.aff << EOF
71    MAP 10
72    MAP ךכח
73    MAP םמ
74    MAP ןנ
75    MAP ףפ
76    MAP ץצ
77    MAP כק
78    MAP אע # for English
79    MAP גה # for Russian
80    MAP צס # for Arabic
81    MAP חכר # for French
82    EOF
83    
84  %install  %install
85  rm -rf %{buildroot}  rm -rf %{buildroot}
86    
87  %makeinstall_std  %makeinstall_std
88    
89    rm -f $RPM_BUILD_ROOT/%{_libdir}/libhspell.a
90    
91    mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
92    cp -p hunspell/new_he.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.dic
93    cp -p hunspell/new_he.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/he_IL.aff
94    
95    
96  %clean  %clean
# Line 69  rm -rf %{buildroot} Line 98  rm -rf %{buildroot}
98    
99  %files  %files
100  %defattr(-,root,root)  %defattr(-,root,root)
101  %_bindir/*  %{_bindir}/hspell
102  %_datadir/hspell/*.wgz*    %{_bindir}/hspell-i
103  %_mandir/man*/*  %{_bindir}/multispell
104    %{_mandir}/man?/hspell.*
105    %{_datadir}/hspell/
106    
107  %files -n %{libname}  %files -n %{libname}
108  %defattr(-, root, root)  %defattr(-, root, root)
109  %_libdir/libhspell.a  %{_libdir}/libhspell.so.0
110    
111  %files -n %{develname}  %files -n %{develname}
112  %defattr(-, root, root)  %defattr(-, root, root)
113  %_includedir/hspell.h  %_includedir/hspell.h
114    %{_libdir}/libhspell.so
115  %_includedir/linginfo.h  %_includedir/linginfo.h
116    
117    %files -n hunspell-he
118    %defattr(-,root,root,-)
119    %{_datadir}/myspell/*

Legend:
Removed from v.70238  
changed lines
  Added in v.70239

  ViewVC Help
Powered by ViewVC 1.1.28