110 lines
3.2 KiB
RPMSpec
110 lines
3.2 KiB
RPMSpec
%define pkgver %(echo %version | tr _ -)
|
|
Name: libedit
|
|
Version: 20230828_3.1
|
|
Release: 1mamba
|
|
Summary: The NetBSD Editline library.
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://www.thrysoee.dk/editline/
|
|
Source: https://www.thrysoee.dk/editline/libedit-%{pkgver}.tar.gz
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libncurses-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: gawk
|
|
|
|
%description
|
|
%{name} is an autotool- and libtoolized port of the NetBSD Editline library (libedit).
|
|
%{name} provides generic line editing,history, and tokenization functions,similar to those found in GNU Readline.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Libraries and headers for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: %{name}-static
|
|
Obsoletes: %{name}-static < 20221009_3.1
|
|
|
|
%description devel
|
|
%{name} is an autotool- and libtoolized port of the NetBSD Editline library (libedit) %{name} provides generic line editing,history, and tokenization functions,similar to those found in GNU Readline.
|
|
This package contains libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{pkgver}
|
|
iconv --from-code ISO8859-1 --to-code UTF-8 ./ChangeLog \
|
|
--output ChangeLog.utf-8 && mv ChangeLog.utf-8 ./ChangeLog
|
|
|
|
%build
|
|
%configure \
|
|
--enable-widec
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
# Fix conflict with libreadline-devel
|
|
mv %{buildroot}%{_mandir}/man3/{history.3,el_history.3}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libedit.so.*
|
|
%doc COPYING THANKS
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%dir %{_includedir}/editline
|
|
%{_includedir}/editline/readline.h
|
|
%{_libdir}/libedit.a
|
|
%{_libdir}/libedit.so
|
|
%{_mandir}/man3/editline.3*
|
|
%{_mandir}/man3/el_*.3*
|
|
%{_mandir}/man3/history*.3*
|
|
%{_mandir}/man3/tok_*3*
|
|
%{_mandir}/man5/editrc.5*
|
|
%{_mandir}/man7/editline.7*
|
|
%{_libdir}/pkgconfig/libedit.pc
|
|
%doc examples/fileman.c
|
|
%doc ChangeLog
|
|
|
|
%changelog
|
|
* Tue Aug 29 2023 Automatic Build System <autodist@mambasoft.it> 20230828_3.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Nov 03 2022 Automatic Build System <autodist@mambasoft.it> 20221030_3.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 18 2022 Automatic Build System <autodist@mambasoft.it> 20221009_3.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sun Jan 02 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 20210910_3.1-2mamba
|
|
- rename man3/history.3 to fix conflict with libreadline-devel
|
|
|
|
* Sun Dec 26 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20210910_3.1-1mamba
|
|
- update to 20210910_3.1
|
|
|
|
* Fri Aug 16 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1_20130712-1mamba
|
|
- update to 3.1_20130712
|
|
- configure with --enable-widec
|
|
|
|
* Mon Mar 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0_20121213-1mamba
|
|
- update to 3.0_20121213
|
|
|
|
* Thu Jul 02 2009 gil <puntogil@libero.it> 3.0-2mamba
|
|
- rebuilt
|
|
|
|
* Fri Feb 13 2009 gil <puntogil@libero.it> 3.0-1mamba
|
|
- package created by autospec
|