Weak dependency should be on langpacks-.. (with "s")

<jsilhan> hi, there is the example:
<jsilhan> https://fedoraproject.org/wiki/PackagingDrafts/Langpack
<jsilhan> it shoudl be Supplements: (glibc = %{version}-%{release} and
          langpacks-%{1}
<jsilhan> and the package name is `glibc-cs`
This commit is contained in:
Mike FABIAN 2016-01-20 17:18:02 +01:00
parent 9b23c6f379
commit 789ef853aa

View File

@ -556,7 +556,7 @@ Summary: Locale data for %{1}\
Requires: %{name} = %{version}-%{release}\ Requires: %{name} = %{version}-%{release}\
Requires: %{name}-common = %{version}-%{release}\ Requires: %{name}-common = %{version}-%{release}\
Requires: tzdata >= 2003a\ Requires: tzdata >= 2003a\
Supplements: (glibc = %{version}-%{release} and langpack-%{1})\ Supplements: (glibc = %{version}-%{release} and langpacks-%{1})\
Group: System Environment/Base\ Group: System Environment/Base\
%description langpack-%{1}\ %description langpack-%{1}\
The glibc-langpack-%1 package includes the locale data for %{1}.\ The glibc-langpack-%1 package includes the locale data for %{1}.\
@ -1294,8 +1294,7 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/libc.info*
olddir=`pwd` olddir=`pwd`
pushd ${RPM_BUILD_ROOT}%{_prefix}/lib/locale pushd ${RPM_BUILD_ROOT}%{_prefix}/lib/locale
rm -f locale-archive rm -f locale-archive
# Now put all English locales into langpack-en.filelist and # Create the file lists for the language specific sub-packages:
# all other locales into langpack-other.filelist:
for i in *_* for i in *_*
do do
lang=${i%%_*} lang=${i%%_*}