65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
Name: mythes-it
|
|
Version: 5.1.1
|
|
Release: 1mamba
|
|
Summary: Italian thesaurus
|
|
Group: System/Internationalization
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: https://linguistico.sourceforge.net/pages/thesaurus_italiano.html
|
|
Source: http://downloads.sourceforge.net/project/linguistico/Thesaurus%20OOo%202.x.x/02_09_l_2008_11_29/thesaurus2_it_02_09_l_2008_11_29.zip
|
|
License: AGPL
|
|
Requires: libmythes
|
|
|
|
%description
|
|
Italian thesaurus.
|
|
|
|
%prep
|
|
%setup -q -c %{name}-%{version}
|
|
|
|
|
|
%build
|
|
|
|
for i in th_it_IT_README th_it_IT_ChangeLog th_it_IT_AUTHORS; do
|
|
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
|
|
iconv -f ISO-8859-1 -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
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/mythes
|
|
cp -p th_it_IT.dat %{buildroot}%{_datadir}/mythes/th_it_IT_v2.dat
|
|
cp -p th_it_IT.idx %{buildroot}%{_datadir}/mythes/th_it_IT_v2.idx
|
|
|
|
(
|
|
cd %{buildroot}%{_datadir}/mythes/
|
|
ln -s th_it_IT_v2.dat th_it_CH_v2.dat
|
|
ln -s th_it_IT_v2.idx th_it_CH_v2.idx
|
|
)
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_datadir}/mythes/*
|
|
%doc *AUTHORS *COPYING *ChangeLog *copyright_licenza.txt
|
|
%doc *INSTALL *lettera_in_inglese.txt *README
|
|
|
|
%changelog
|
|
* Mon Jun 05 2023 Automatic Build System <autodist@mambasoft.it> 5.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2.0.9l-2mamba
|
|
- rebuilt
|
|
|
|
* Sat Jan 22 2011 gil <puntogil@libero.it> 2.0.9l-1mamba
|
|
- package created by autospec
|