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:34:16 +05:30
parent f0d447e52e
commit 39be91ba06

View File

@ -1,15 +1,14 @@
Name: hunspell-sr
Summary: Serbian hunspell dictionaries
%define upstreamid 20130330
%global upstreamid 20130330
Version: 0.%{upstreamid}
Release: 5%{?dist}
Release: 6%{?dist}
Source: http://extensions.services.openoffice.org/e-files/ext/1572/10/dict-sr.oxt
Group: Applications/Text
URL: http://extensions.services.openoffice.org/project/dict-sr
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPLv3
BuildArch: noarch
Requires: hunspell
Supplements: (hunspell and langpacks-sr)
Provides: hunspell-bs = %{version}-%{release}
%description
@ -18,8 +17,8 @@ Serbian hunspell dictionaries.
%package -n hyphen-sr
Requires: hyphen
Summary: Serbian hyphenation rules
Group: Applications/Text
Provides: hyphen-bs = %{version}-%{release}
Supplements: (hyphen and langpacks-sr)
%description -n hyphen-sr
Serbian hyphenation rules.
@ -30,7 +29,6 @@ Serbian hyphenation rules.
%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.dic
cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.aff
@ -64,20 +62,20 @@ for lang in $sh_YU_aliases; do
done
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc registration/license*.txt
%{_datadir}/myspell/*
%files -n hyphen-sr
%defattr(-,root,root,-)
%doc registration/license*.txt
%{_datadir}/hyphen/*
%changelog
* Fri Feb 19 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.20130330-6
- 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> - 0.20130330-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
@ -96,7 +94,7 @@ rm -rf $RPM_BUILD_ROOT
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20100920-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Nov 05 2012 Caolán McNamara <caolanm@redhat.com> - 0.20100920-5
* Mon Nov 05 2012 Caolán McNamara <caolanm@redhat.com> - 0.20100920-5
- clarify license
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20100920-4
@ -108,7 +106,7 @@ rm -rf $RPM_BUILD_ROOT
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20100920-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Sep 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100920-1
* Tue Sep 21 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100920-1
- latest version
* Thu Aug 19 2010 Caolán McNamara <caolanm@redhat.com> - 0.20100818-1
@ -123,7 +121,7 @@ rm -rf $RPM_BUILD_ROOT
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20090511-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Tue May 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090511-1
* Mon May 11 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090511-1
- latest version
* Tue May 05 2009 Caolán McNamara <caolanm@redhat.com> - 0.20090213-1