/[packages]/cauldron/hunspell-fr/current/SPECS/hunspell-fr.spec
ViewVC logotype

Contents of /cauldron/hunspell-fr/current/SPECS/hunspell-fr.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1066921 - (show annotations) (download)
Sun Nov 13 09:34:39 2016 UTC (7 years, 10 months ago) by zezinho
File size: 2383 byte(s)
new version 5.7
1 %define languageenglazy French
2 %define languagecode fr
3 %define lc_ctype fr_FR
4
5 Name: hunspell-fr
6 Version: 5.7
7 Release: %mkrel 1
8 Summary: %{languageenglazy} hunspell dictionaries
9 License: GPLv2 or LGPLv2 or MPLv1.1
10 Group: System/Internationalization
11 URL: http://www.dicollecte.org/home.php?prj=fr
12 Source0: http://www.dicollecte.org/download/fr/hunspell-french-dictionaries-v%version.zip
13
14 BuildArch: noarch
15
16 Recommends: hunspell
17
18 Requires: locales-fr
19 #Mageia values: 1 - aspell, 2 - hunspell, 3 - language specific
20 Provides: enchant-dictionary = 2
21 Provides: hunspell-dictionary
22 Provides: hunspell-%{lc_ctype} = %{version}-%{release}
23 Provides: hunspell-fr_BE = %{version}-%{release}
24 Provides: hunspell-fr_CA = %{version}-%{release}
25 Provides: hunspell-fr_CH = %{version}-%{release}
26 Provides: hunspell-fr_LU = %{version}-%{release}
27 Provides: hunspell-fr_MC = %{version}-%{release}
28 #Generic providing - see Mageia values
29 Provides: dictionary-%{languagecode} = 2
30 Provides: dictionary-%{lc_ctype} = 2
31 Provides: dictionary-fr_BE = 2
32 Provides: dictionary-fr_CA = 2
33 Provides: dictionary-fr_CH = 2
34 Provides: dictionary-fr_LU = 2
35 Provides: dictionary-fr_MC = 2
36
37 #MySpell is deprecated
38 Obsoletes: myspell-%{languagecode} < 1.0.3
39 Provides: myspell-%{languagecode}
40 Obsoletes: myspell-%{lc_ctype} < 1.0.3
41 Provides: myspell-%{lc_ctype}
42 Obsoletes: myspell-fr_BE < 1.0.3
43 Provides: myspell-fr_BE
44
45 AutoReqProv: no
46
47 %description
48 %{languageenglazy} hunspell dictionaries.
49
50
51 %prep
52 %setup -q -c %{name}-%{version}
53
54 %build
55 chmod 0644 README_*.txt
56
57 %install
58 install -D -m 0644 -p %{languagecode}-toutesvariantes.dic %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.dic
59 install -D -m 0644 -p %{languagecode}-toutesvariantes.aff %{buildroot}%{_datadir}/hunspell/%{lc_ctype}.aff
60
61 #backward compatibility
62 mkdir -p %{buildroot}%{_datadir}/myspell
63 pushd %{buildroot}%{_datadir}/myspell
64 for lang in ../hunspell/*.dic
65 do
66 lang=`echo $lang|sed -r 's@.*/@@g'|sed -r 's@\..*@@g'`
67 ln -s ../hunspell/$lang.dic $lang.dic
68 ln -s ../hunspell/$lang.aff $lang.aff
69 done
70 popd #%%{buildroot}%%{_datadir}/myspell
71
72 %files
73 %doc README_*.txt
74 %{_datadir}/hunspell/*
75 %{_datadir}/myspell/*

  ViewVC Help
Powered by ViewVC 1.1.30