Add Supplements: tag for langpacks naming guidelines

- Clean the specfile to follow current packaging guidelines
This commit is contained in:
Parag Nemade 2016-02-19 23:31:15 +05:30
parent 1200127402
commit 1b3dac1440

View File

@ -2,11 +2,9 @@ Name: hunspell-no
Summary: Norwegian hunspell dictionaries Summary: Norwegian hunspell dictionaries
Epoch: 1 Epoch: 1
Version: 2.0.10 Version: 2.0.10
Release: 2%{?dist} Release: 3%{?dist}
Source: https://alioth.debian.org/frs/download.php/file/2357/no_NO-pack2-2.0.10.zip Source: https://alioth.debian.org/frs/download.php/file/2357/no_NO-pack2-2.0.10.zip
Group: Applications/Text
URL: http://spell-norwegian.alioth.debian.org URL: http://spell-norwegian.alioth.debian.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPL+ License: GPL+
BuildArch: noarch BuildArch: noarch
@ -17,48 +15,48 @@ Norwegian hunspell dictionaries.
%package -n hunspell-nb %package -n hunspell-nb
Summary: Bokmaal hunspell dictionaries Summary: Bokmaal hunspell dictionaries
Group: Applications/Text
Requires: hunspell Requires: hunspell
Supplements: (hunspell and langpacks-nb)
%description -n hunspell-nb %description -n hunspell-nb
Bokmaal hunspell dictionaries. Bokmaal hunspell dictionaries.
%package -n hunspell-nn %package -n hunspell-nn
Summary: Nynorsk hunspell dictionaries Summary: Nynorsk hunspell dictionaries
Group: Applications/Text
Requires: hunspell Requires: hunspell
Supplements: (hunspell and langpacks-nn)
%description -n hunspell-nn %description -n hunspell-nn
Nynorsk hunspell dictionaries. Nynorsk hunspell dictionaries.
%package -n hyphen-nb %package -n hyphen-nb
Summary: Bokmaal hyphenation rules Summary: Bokmaal hyphenation rules
Group: Applications/Text
Requires: hyphen Requires: hyphen
Supplements: (hyphen and langpacks-nb)
%description -n hyphen-nb %description -n hyphen-nb
Bokmaal hyphenation rules. Bokmaal hyphenation rules.
%package -n hyphen-nn %package -n hyphen-nn
Summary: Nynorsk hyphenation rules Summary: Nynorsk hyphenation rules
Group: Applications/Text
Requires: hyphen Requires: hyphen
Supplements: (hyphen and langpacks-nn)
%description -n hyphen-nn %description -n hyphen-nn
Nynorsk hyphenation rules Nynorsk hyphenation rules
%package -n mythes-nb %package -n mythes-nb
Summary: Bokmaal thesaurus Summary: Bokmaal thesaurus
Group: Applications/Text
Requires: mythes Requires: mythes
Supplements: (mythes and langpacks-nb)
%description -n mythes-nb %description -n mythes-nb
Bokmaal thesaurus. Bokmaal thesaurus.
%package -n mythes-nn %package -n mythes-nn
Summary: Nynorsk thesaurus Summary: Nynorsk thesaurus
Group: Applications/Text
Requires: mythes Requires: mythes
Supplements: (mythes and langpacks-nn)
%description -n mythes-nn %description -n mythes-nn
Nynorsk thesaurus. Nynorsk thesaurus.
@ -87,7 +85,6 @@ for i in README_nb_NO.txt README_nn_NO.txt README_hyph_nb_NO.txt \
done done
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p nn_NO.aff nn_NO.dic nb_NO.aff nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
@ -95,40 +92,36 @@ cp -p hyph_nn_NO.dic hyph_nb_NO.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes cp -p th_nb_NO_v2.dat th_nb_NO_v2.idx th_nn_NO_v2.dat th_nn_NO_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes
%clean
rm -rf $RPM_BUILD_ROOT
%files -n hunspell-nb %files -n hunspell-nb
%defattr(-,root,root,-)
%doc README_nb_NO.txt %doc README_nb_NO.txt
%{_datadir}/myspell/nb_NO.* %{_datadir}/myspell/nb_NO.*
%files -n hunspell-nn %files -n hunspell-nn
%defattr(-,root,root,-)
%doc README_nn_NO.txt %doc README_nn_NO.txt
%{_datadir}/myspell/nn_NO.* %{_datadir}/myspell/nn_NO.*
%files -n hyphen-nb %files -n hyphen-nb
%defattr(-,root,root,-)
%doc README_hyph_nb_NO.txt %doc README_hyph_nb_NO.txt
%{_datadir}/hyphen/hyph_nb_NO.* %{_datadir}/hyphen/hyph_nb_NO.*
%files -n hyphen-nn %files -n hyphen-nn
%defattr(-,root,root,-)
%doc README_hyph_nn_NO.txt %doc README_hyph_nn_NO.txt
%{_datadir}/hyphen/hyph_nn_NO.* %{_datadir}/hyphen/hyph_nn_NO.*
%files -n mythes-nb %files -n mythes-nb
%defattr(-,root,root,-)
%doc README_th_nb_NO_v2.txt %doc README_th_nb_NO_v2.txt
%{_datadir}/mythes/th_nb_NO_v2.* %{_datadir}/mythes/th_nb_NO_v2.*
%files -n mythes-nn %files -n mythes-nn
%defattr(-,root,root,-)
%doc README_th_nb_NO_v2.txt %doc README_th_nb_NO_v2.txt
%{_datadir}/mythes/th_nn_NO_v2.* %{_datadir}/mythes/th_nn_NO_v2.*
%changelog %changelog
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 1:2.0.10-3
- Add Supplements: tag for langpacks naming guidelines
- Clean the specfile to follow current packaging guidelines
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-2 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:2.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild