Add back libtextstyle library file for rawhide
This commit is contained in:
parent
2a0da651a7
commit
f707578b6b
47
gettext.spec
47
gettext.spec
@ -1,10 +1,11 @@
|
|||||||
%bcond_with jar
|
%bcond_with jar
|
||||||
%bcond_with java
|
%bcond_with java
|
||||||
|
%bcond libtextstyle %[0%{?fedora} > 40]
|
||||||
|
|
||||||
Summary: GNU tools and libraries for localized translated messages
|
Summary: GNU tools and libraries for localized translated messages
|
||||||
Name: gettext
|
Name: gettext
|
||||||
Version: 0.22.4
|
Version: 0.22.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
|
|
||||||
# The following are licensed under LGPLv2+:
|
# The following are licensed under LGPLv2+:
|
||||||
# - libintl and its headers
|
# - libintl and its headers
|
||||||
@ -25,8 +26,8 @@ Source: https://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
|
|||||||
Source2: msghack.py
|
Source2: msghack.py
|
||||||
Source3: msghack.1
|
Source3: msghack.1
|
||||||
|
|
||||||
Patch1: gettext-0.22-disable-libtextstyle.patch
|
Patch1: gettext-0.21.1-covscan.patch
|
||||||
Patch2: gettext-0.21.1-covscan.patch
|
Patch2: gettext-0.22-disable-libtextstyle.patch
|
||||||
|
|
||||||
# for bootstrapping
|
# for bootstrapping
|
||||||
# BuildRequires: autoconf >= 2.62
|
# BuildRequires: autoconf >= 2.62
|
||||||
@ -144,6 +145,25 @@ Obsoletes: libtextstyle < %{version}-%{release}
|
|||||||
%description libs
|
%description libs
|
||||||
This package contains libraries used internationalization support.
|
This package contains libraries used internationalization support.
|
||||||
|
|
||||||
|
%if %{with libtextstyle}
|
||||||
|
%package -n libtextstyle
|
||||||
|
Summary: Text styling library
|
||||||
|
License: GPL-3.0-or-later
|
||||||
|
|
||||||
|
%description -n libtextstyle
|
||||||
|
Library for producing styled text to be displayed in a terminal
|
||||||
|
emulator.
|
||||||
|
|
||||||
|
%package -n libtextstyle-devel
|
||||||
|
Summary: Development files for libtextstyle
|
||||||
|
License: GPL-3.0-or-later and GFDL-1.2-or-later
|
||||||
|
Requires: libtextstyle%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n libtextstyle-devel
|
||||||
|
This package contains all development related files necessary for
|
||||||
|
developing or compiling applications/libraries that needs text
|
||||||
|
styling.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n emacs-%{name}
|
%package -n emacs-%{name}
|
||||||
Summary: Support for editing po files within GNU Emacs
|
Summary: Support for editing po files within GNU Emacs
|
||||||
@ -177,9 +197,10 @@ Substitutes the values of environment variables.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch 1 -p1 -b .orig~
|
%patch 1 -p1 -b .orig~
|
||||||
|
%if %{without libtextstyle}
|
||||||
%patch 2 -p1 -b .orig~
|
%patch 2 -p1 -b .orig~
|
||||||
# patch 1
|
%endif
|
||||||
automake
|
autoreconf
|
||||||
|
|
||||||
# Defeat libtextstyle attempt to bundle libxml2. The comments
|
# Defeat libtextstyle attempt to bundle libxml2. The comments
|
||||||
# indicate this is done because the libtextstyle authors do not want
|
# indicate this is done because the libtextstyle authors do not want
|
||||||
@ -204,6 +225,7 @@ export CFLAGS="$RPM_OPT_FLAGS -D__SUPPORT_SNAN__"
|
|||||||
export CPPFLAGS="-I%{_includedir}/libxml2"
|
export CPPFLAGS="-I%{_includedir}/libxml2"
|
||||||
# Side effect of unbundling libxml2 from libtextstyle.
|
# Side effect of unbundling libxml2 from libtextstyle.
|
||||||
export LIBS="-lxml2"
|
export LIBS="-lxml2"
|
||||||
|
export CFLAGS="$CFLAGS -Wformat"
|
||||||
%configure --enable-nls --disable-static \
|
%configure --enable-nls --disable-static \
|
||||||
--enable-shared --disable-csharp --disable-rpath \
|
--enable-shared --disable-csharp --disable-rpath \
|
||||||
%if %{with java}
|
%if %{with java}
|
||||||
@ -401,6 +423,18 @@ make check LIBUNISTRING=-lunistring
|
|||||||
%{_datadir}/%{name}/libintl.jar
|
%{_datadir}/%{name}/libintl.jar
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with libtextstyle}
|
||||||
|
%files -n libtextstyle
|
||||||
|
%{_libdir}/libtextstyle.so.0*
|
||||||
|
|
||||||
|
%files -n libtextstyle-devel
|
||||||
|
%{_docdir}/libtextstyle/
|
||||||
|
%{_includedir}/textstyle/
|
||||||
|
%{_includedir}/textstyle.h
|
||||||
|
%{_infodir}/libtextstyle*
|
||||||
|
%{_libdir}/libtextstyle.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n emacs-%{name}
|
%files -n emacs-%{name}
|
||||||
%dir %{_emacs_sitelispdir}/%{name}
|
%dir %{_emacs_sitelispdir}/%{name}
|
||||||
%{_emacs_sitelispdir}/%{name}/*.elc
|
%{_emacs_sitelispdir}/%{name}/*.elc
|
||||||
@ -413,6 +447,9 @@ make check LIBUNISTRING=-lunistring
|
|||||||
%{_mandir}/man1/msghack.1*
|
%{_mandir}/man1/msghack.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Feb 21 2024 Manish Tiwari <matiwari@redhat.com> - 0.22.4-2
|
||||||
|
- Add back libtextstyle library for rawhide (#2264128)
|
||||||
|
|
||||||
* Fri Feb 9 2024 Manish Tiwari <matiwari@redhat.com> - 0.22.4-1
|
* Fri Feb 9 2024 Manish Tiwari <matiwari@redhat.com> - 0.22.4-1
|
||||||
- update to 0.22.4 release
|
- update to 0.22.4 release
|
||||||
- https://savannah.gnu.org/news/?id=10544
|
- https://savannah.gnu.org/news/?id=10544
|
||||||
|
Loading…
Reference in New Issue
Block a user