dotconf/dotconf.spec
lb1107039128 04a932be67 remove extra carriage returns
Signed-off-by: lb1107039128 <liubo1@xfusion.com>
2024-01-17 15:25:52 +08:00

79 lines
1.7 KiB
RPMSpec

Name: dotconf
Version: 1.3
Release: 25
Summary: A configuration file parser
License: LGPLv2
URL: https://github.com/williamh/dotconf
Source: https://github.com/williamh/dotconf/archive/v%{version}.tar.gz
BuildRequires: findutils glibc-common make autoconf automake libtool
Patch0001: 0001-fix-possible-buffer-overflow-in-get_path.patch
Patch0002: 0001-remove-extra-carriage-returns.patch
%description
The dotconf package contains a library used to handle configuration
files.
%package devel
Summary: Development files for dotconf
Requires: %{name} = %{version}-%{release}
Requires: pkgconf-pkg-config
%description devel
The dotconf-devel package contains libraries and header files for
developing applications that use dotconf.
%package help
Summary: Documents for dotconf
%description help
The dotconf-help package contains related documents.
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -fiv
%configure --disable-static
%make_build
%install
%make_install
%delete_la
mv %{buildroot}/%{_docdir}/%{name} __doc_dir
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
%doc AUTHORS COPYING
%{_libdir}/libdotconf*.so.*
%files devel
%{_libdir}/libdotconf*.so
%{_includedir}/dotconf.h
%{_libdir}/pkgconfig/dotconf.pc
%files help
%doc README
%doc __doc_dir/*
%changelog
* Wed Jan 17 2024 liubo <liubo1@xfusion.com> - 1.3-25
- remove extra carriage returns
* Tue Dec 19 2023 liubo <liubo1@xfusion.com> - 1.3-24
- fix possible buffer overflow in get_path
* Thu Sep 17 2020 liuweibo <liuweibo10@huawei.com> - 1.3-23
- Fix Source0
* Fri Feb 14 2020 Tianfei <tianfei16@huawei.com> - 1.3-22
- Package init