package init
This commit is contained in:
parent
33394b7f1a
commit
2be9e423d7
BIN
OOo-hyph-bg-4.3.zip
Normal file
BIN
OOo-hyph-bg-4.3.zip
Normal file
Binary file not shown.
42
hyphen-bg.spec
Normal file
42
hyphen-bg.spec
Normal file
@ -0,0 +1,42 @@
|
||||
Name: hyphen-bg
|
||||
Version: 4.3
|
||||
Release: 15
|
||||
Summary: rules for Bulgarian hyphenation
|
||||
License: GPLv2+ or LGPLv2+ or MPLv1.1
|
||||
URL: http://bgoffice.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/bgoffice/OOo-hyph-bg-%{version}.zip
|
||||
Requires: hyphen
|
||||
BuildArch: noarch
|
||||
Supplements: (hyphen and langpacks-bg)
|
||||
|
||||
%description
|
||||
rules for Bulgarian hyphenation.
|
||||
|
||||
%prep
|
||||
%autosetup -n OOo-hyph-bg-%{version} -p1 -S git
|
||||
|
||||
%build
|
||||
for i in ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt README.bulgarian; do
|
||||
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
|
||||
iconv -f ISO-8859-2 -t UTF-8 $i > $i.new
|
||||
touch -r $i $i.new
|
||||
mv -f $i.new $i
|
||||
fi
|
||||
tr -d '\r' < $i > $i.new
|
||||
touch -r $i $i.new
|
||||
mv -f $i.new $i
|
||||
done
|
||||
echo "UTF-8" > hyph_bg_BG.dic.new
|
||||
tail -n +2 hyph_bg_BG.dic | iconv -f WINDOWS-1251 -t UTF-8 | tr -d '\r' >> hyph_bg_BG.dic.new
|
||||
mv hyph_bg_BG.dic.new hyph_bg_BG.dic
|
||||
|
||||
%install
|
||||
install -Dp *.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_bg_BG.dic
|
||||
|
||||
%files
|
||||
%doc ChangeLog Copyright GPL-2.0.txt LGPL-2.1.txt MPL-1.1.txt README.bulgarian
|
||||
%{_datadir}/hyphen/*
|
||||
|
||||
%changelog
|
||||
* Thu Apr 30 2020 Jeffery.Gao <gaojianxing@huawei.com> - 4.3-15
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user