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:25:13 +05:30
parent 9fafe2f6f9
commit 594c6fa5d4

View File

@ -1,17 +1,16 @@
Name: hunspell-fj Name: hunspell-fj
Summary: Fijian hunspell dictionaries Summary: Fijian hunspell dictionaries
Version: 1.2 Version: 1.2
Release: 10%{?dist} Release: 11%{?dist}
Group: Applications/Text
#Source: http://www.foss.usp.ac.fj/OOo_fj/OOo_fj_FJ.zip #Source: http://www.foss.usp.ac.fj/OOo_fj/OOo_fj_FJ.zip
Source: http://releases.mozilla.org/pub/mozilla.org/addons/12115/fijian_spelling_dictionary-%{version}-fx+tb+sm.xpi Source: http://releases.mozilla.org/pub/mozilla.org/addons/12115/fijian_spelling_dictionary-%{version}-fx+tb+sm.xpi
URL: http://www.iosn.net/pacific-islands/usp-microgrants/fijian-spellchecker URL: http://www.iosn.net/pacific-islands/usp-microgrants/fijian-spellchecker
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPLv2+ or GPLv2+ or MPLv1.1 License: LGPLv2+ or GPLv2+ or MPLv1.1
BuildArch: noarch BuildArch: noarch
BuildRequires: hunspell-devel BuildRequires: hunspell-devel
Requires: hunspell Requires: hunspell
Supplements: (hunspell and langpacks-fj)
%description %description
Fijian hunspell dictionaries. Fijian hunspell dictionaries.
@ -29,20 +28,20 @@ done
chmod -x fj_FJ.* chmod -x fj_FJ.*
%install %install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p dictionaries/fj_FJ.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.aff cp -p dictionaries/fj_FJ.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.aff
cp -p dictionaries/fj_FJ.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.dic cp -p dictionaries/fj_FJ.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/fj.dic
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-)
%doc dictionaries/README_fj_FJ.txt %doc dictionaries/README_fj_FJ.txt
%{_datadir}/myspell/* %{_datadir}/myspell/*
%changelog %changelog
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 1.2-11
- 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-10 * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild