Add gcc BR.
Also: - Build verbosely. - Drop obsolete --enable-widec configure option. - Fix "unused direct shared library dependency" warning from rpmlint again. - Fix man page error due to BSD nroff macro that is not available on Linux. - Drop explicit R on pkgconfig from the -devel package, autogenerated.
This commit is contained in:
parent
e01329c278
commit
25c91e6c81
24
libedit.spec
24
libedit.spec
@ -4,11 +4,12 @@
|
|||||||
Summary: The NetBSD Editline library
|
Summary: The NetBSD Editline library
|
||||||
Name: libedit
|
Name: libedit
|
||||||
Version: 3.1
|
Version: 3.1
|
||||||
Release: 22.%{snap}cvs%{?dist}
|
Release: 23.%{snap}cvs%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
URL: http://www.thrysoee.dk/editline/
|
URL: http://www.thrysoee.dk/editline/
|
||||||
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
Source0: http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
|
||||||
|
BuildRequires: gcc
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -21,8 +22,7 @@ Summary: Development files for %{name}
|
|||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: ncurses-devel%{?_isa}
|
||||||
Requires: ncurses-devel
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains development files for %{name}.
|
This package contains development files for %{name}.
|
||||||
@ -35,11 +35,17 @@ iconv -f ISO8859-1 -t UTF-8 -o ChangeLog.utf-8 ChangeLog
|
|||||||
touch -r ChangeLog ChangeLog.utf-8
|
touch -r ChangeLog ChangeLog.utf-8
|
||||||
mv -f ChangeLog.utf-8 ChangeLog
|
mv -f ChangeLog.utf-8 ChangeLog
|
||||||
|
|
||||||
|
# Replace an nroff macro that is not available, and not needed, on Linux
|
||||||
|
sed -i 's,\\\*\[Gt\],>,' doc/editline.3.roff
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static --enable-widec
|
%configure --disable-static --disable-silent-rules
|
||||||
|
|
||||||
# Fix unused direct shared library dependencies.
|
# Fix unused direct shared library dependencies.
|
||||||
sed -i "s/lcurses/ltinfo/" src/Makefile
|
sed -i "s/lncurses/ltinfo/" src/Makefile
|
||||||
|
|
||||||
|
# Downstream projects do not need to link with ncurses, just libedit.
|
||||||
|
sed -i "s/ -lncurses//" libedit.pc
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -69,6 +75,14 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/history.3*
|
|||||||
%{_includedir}/editline/readline.h
|
%{_includedir}/editline/readline.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 3 2018 Jerry James <loganjerry@gmail.com> - 3.1-23.20170329cvs
|
||||||
|
- Add gcc BR
|
||||||
|
- Build verbosely
|
||||||
|
- Drop obsolete --enable-widec configure option
|
||||||
|
- Fix "unused direct shared library dependency" warning from rpmlint again
|
||||||
|
- Fix man page error due to BSD nroff macro that is not available on Linux
|
||||||
|
- Drop explicit R on pkgconfig from the -devel package, autogenerated
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-22.20170329cvs
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.1-22.20170329cvs
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user