Remove and obsolete the flex-doc subpackage (#1915609)

The flex-doc subpackage hasn't contained any documentation for quite a
while.  It is supposed to contain the manual in PDF format, but
`make && make install' does not produce a PDF.  Since info and man pages
are provided in the main package itself, this leaves flex-doc redundant.

This commit removes and obsoletes the flex-doc subpackage.

No Fedora packages are currently dependent on or build-dependent on
flex-doc:

$ dnf repoquery --whatdepends flex-doc

$ dnf repoquery --disablerepo="*" --enablerepo="*-source" --arch=src \
  --whatdepends flex-doc

Therefore, only an "Obsoletes: flex-doc" line is added, with no
accompanying "Provides: flex-doc" line.
This commit is contained in:
Arjun Shankar 2021-05-06 00:49:44 +02:00
parent 8a8070ad74
commit e7d1e0be25

View File

@ -3,7 +3,7 @@
Summary: A tool for generating scanners (text pattern recognizers) Summary: A tool for generating scanners (text pattern recognizers)
Name: flex Name: flex
Version: 2.6.4 Version: 2.6.4
Release: 7%{?dist} Release: 8%{?dist}
# parse.c and parse.h are under GPLv3+ with exception which allows # parse.c and parse.h are under GPLv3+ with exception which allows
# relicensing. Since flex is shipped under BDS-style license, # relicensing. Since flex is shipped under BDS-style license,
# let's assume that the relicensing was done. # let's assume that the relicensing was done.
@ -18,6 +18,8 @@ Requires: m4
BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool
BuildRequires: make BuildRequires: make
Obsoletes: flex-doc < 2.6.4-8
%description %description
The flex program generates scanners. Scanners are programs which can The flex program generates scanners. Scanners are programs which can
recognize lexical patterns in text. Flex takes pairs of regular recognize lexical patterns in text. Flex takes pairs of regular
@ -61,12 +63,12 @@ libraries.
Summary: Static libraries for the flex scanner generator Summary: Static libraries for the flex scanner generator
# We renamed flex-static to flex-devel in version 2.5.35-15: # We renamed flex-static to flex-devel in version 2.5.35-15:
Obsoletes: flex-static < 2.5.35-15 Obsoletes: flex-static < 2.5.35-15
Provides: flex-static Provides: flex-static = %{version}-%{release}
# We renamed flex-devel to libfl-static in version 2.6.4-6. This clarifies # We renamed flex-devel to libfl-static in version 2.6.4-6. This clarifies
# the nature of the package and brings us in line with naming used by SUSE # the nature of the package and brings us in line with naming used by SUSE
# and Debian: # and Debian:
Obsoletes: flex-devel < 2.6.4-6 Obsoletes: flex-devel < 2.6.4-6
Provides: flex-devel Provides: flex-devel = %{version}-%{release}
%description -n libfl-static %description -n libfl-static
@ -76,14 +78,6 @@ This package contains the static library with default implementations of
`main' and `yywrap' functions that binaries using flex can choose to `main' and `yywrap' functions that binaries using flex can choose to
statically link against instead of implementing their own. statically link against instead of implementing their own.
%package doc
Summary: Documentation for the flex scanner generator
%description doc
This package contains documentation for the flex scanner generator in
plain text and PDF formats.
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -97,7 +91,7 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO} rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO,AUTHORS,COPYING,ONEWS}
# Exclude libtool archives (.la) as per Fedora packaging guidelines # Exclude libtool archives (.la) as per Fedora packaging guidelines
find %{buildroot} -name '*.la' -delete find %{buildroot} -name '*.la' -delete
@ -138,10 +132,12 @@ echo ============END TESTING===========
%license COPYING %license COPYING
%{_libdir}/*.a %{_libdir}/*.a
%files doc
%{_pkgdocdir}
%changelog %changelog
* Thu May 06 2021 Arjun Shankar <arjun@redhat.com> - 2.6.4-8
- Remove and obsolete the flex-doc subpackage; documention is provided in the
main package itself
- Specify versions in "Provides:" lines for flex-static and flex-devel
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.4-7 * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.4-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild