libestr/libestr.spec

62 lines
1.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:55:55 -04:00
Name: libestr
Version: 0.1.9
Release: 12
Summary: String handling essentials library
License: LGPLv2+
URL: http://libestr.adiscon.com/
Source0: http://libestr.adiscon.com/files/download/libestr-%{version}.tar.gz
Patch0: 0004-some-more-potential-overflow-fixes.patch
Patch1: 0005-fix-problems-with-trailing-incomplete-hex-sequence.patch
Patch2: 0006-fix-str2num-did-not-convert-hex-values-correctly.patch
Patch3: 0009-Don-t-pass-NULL-to-memcpy.patch
Patch4: 0021-bugfix-es_str2num-mishandling-empty-strings.patch
BuildRequires: gcc
%description
libestr is a library for some string essentials. This package compiles the string handling essentials library
used by the Rsyslog daemon.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static --with-pic
%make_build
%install
%make_install
rm -f %{buildroot}/%{_libdir}/*.{a,la}
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%license COPYING
%doc README AUTHORS ChangeLog
%{_libdir}/lib*.so.*
%files devel
%{_includedir}/libestr.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libestr.pc
%changelog
* Thu Aug 29 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.1.9-12
- Package init