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:23:15 +05:30
parent d4634f4c5e
commit 32f2442690

View File

@ -1,15 +1,14 @@
Name: hunspell-ca Name: hunspell-ca
Summary: Catalan hunspell dictionaries Summary: Catalan hunspell dictionaries
Version: 2.3 Version: 2.3
Release: 7%{?dist} Release: 8%{?dist}
Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt Source: http://www.softcatala.org/diccionaris/actualitzacions/OOo/catalan.oxt
Group: Applications/Text
URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic URL: http://www.softcatala.org/wiki/Projectes/Corrector_ortogràfic
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+ License: GPLv2+
BuildArch: noarch BuildArch: noarch
Requires: hunspell Requires: hunspell
Supplements: (hunspell and langpacks-ca)
%description %description
Catalan hunspell dictionaries. Catalan hunspell dictionaries.
@ -24,7 +23,6 @@ tr -d '\r' < dictionaries/catalan.dic > ca_ES.dic
touch -r dictionaries/catalan.dic ca_ES.dic touch -r dictionaries/catalan.dic ca_ES.dic
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell cp -p ca_ES.dic ca_ES.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/ pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
@ -35,15 +33,16 @@ for lang in $ca_ES_aliases; do
done done
popd popd
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root)
%doc LICENSES-en.txt LLICENCIES-ca.txt %doc LICENSES-en.txt LLICENCIES-ca.txt
%{_datadir}/myspell/* %{_datadir}/myspell/*
%changelog %changelog
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 2.3-8
- Add Supplements: tag for langpacks naming guidelines
- Clean the specfile to follow current packaging guidelines
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-7 * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild