2020-07-10 18:07:22 +00:00
# Force out of source build
%undefine __cmake_in_source_build
2019-09-06 20:19:38 +00:00
%global somajor 0
Name : libeconf
2023-08-28 12:30:31 +00:00
Version : 0.5.2
2024-01-25 01:59:03 +00:00
Release : 3%{?dist}
2019-09-06 20:19:38 +00:00
Summary : Enhanced config file parser library
License : MIT
URL : https://github.com/openSUSE/libeconf
2021-07-08 09:27:25 +00:00
Source0 : %{url} /archive/%{version} /%{name} -%{version} .tar.gz
2020-07-10 18:07:22 +00:00
2023-08-28 12:30:31 +00:00
### Patches ###
# This should be a temporary workaround. I don't have enough time to check what's happening, but since we aren't shipping the html documentation it's fine to stop installing it
Patch0101 : 0001-cmake-no-install-html.patch
2021-07-08 10:46:46 +00:00
2020-07-10 18:07:22 +00:00
BuildRequires : cmake >= 3.12
2019-09-06 20:19:38 +00:00
BuildRequires : gcc
BuildRequires : make
%description
libeconf is a highly flexible and configurable library to parse and manage
key=value configuration files. It reads configuration file snippets from
different directories and builds the final configuration file from it.
%package devel
Summary : Development files for %{name}
Requires : %{name} %{?_isa} = %{version} -%{release}
%description devel
The %{name} -devel package contains libraries and header files for
developing applications that use %{name} .
2021-07-08 10:46:46 +00:00
%package utils
Summary : Utilities for manipulating config files
Requires : %{name} %{?_isa} = %{version} -%{release}
%description utils
The %{name} -utils package contains utilities for manipulating
configuration files from applications that use %{name} .
2019-09-06 20:19:38 +00:00
%prep
2020-07-10 18:07:22 +00:00
%autosetup -p1
2019-09-06 20:19:38 +00:00
%build
2020-07-10 18:07:22 +00:00
%cmake
%cmake_build
2019-09-06 20:19:38 +00:00
%install
2020-07-10 18:07:22 +00:00
%cmake_install
2019-09-06 20:19:38 +00:00
%check
2020-08-09 02:26:13 +00:00
%cmake_build --target check
2019-09-06 20:19:38 +00:00
%files
%license LICENSE
%doc NEWS README.md TODO.md
%{_libdir} /%{name} .so.%{somajor} {,.*}
%files devel
%doc example/
%{_includedir} /*
%{_libdir} /%{name} .so
2020-07-10 18:07:22 +00:00
%{_libdir} /cmake/%{name} /
2019-09-06 20:19:38 +00:00
%{_libdir} /pkgconfig/%{name} .pc
2021-07-08 10:46:46 +00:00
%{_mandir} /man3/%{name} .3*
2019-09-06 20:19:38 +00:00
2021-07-08 10:46:46 +00:00
%files utils
%{_bindir} /econftool
%{_mandir} /man8/econftool.8*
2019-09-06 20:19:38 +00:00
%changelog
2024-01-25 01:59:03 +00:00
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2024-01-21 03:58:24 +00:00
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2023-08-28 12:30:31 +00:00
* Mon Aug 28 2023 Iker Pedrosa <ipedrosa@redhat.com> - 0.5.2-1
- Update to 0.5.2 (RH#1980774)
- Fix CVE-2023-22652 (RH#2212464)
- Fix CVE-2023-30079 (RH#2235236)
2023-07-20 10:44:40 +00:00
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-01-19 16:13:13 +00:00
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2022-07-21 17:41:20 +00:00
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2022-01-20 16:06:43 +00:00
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2021-07-22 11:16:44 +00:00
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-07-08 09:27:25 +00:00
* Thu Jul 08 2021 Neal Gompa <ngompa13@gmail.com> - 0.4.0-1
- Update to 0.4.0 (RH#1980289)
2021-07-08 10:46:46 +00:00
- Add fixes to install econftool and man pages
2021-07-08 09:27:25 +00:00
2021-01-26 16:58:19 +00:00
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-08-09 02:26:13 +00:00
* Sat Aug 08 2020 Neal Gompa <ngompa13@gmail.com> - 0.3.8-4
- Use backend-agnostic CMake macro for building and running tests
2020-07-28 04:33:16 +00:00
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-12 13:54:27 +00:00
* Sun Jul 12 2020 Neal Gompa <ngompa13@gmail.com> - 0.3.8-2
- Switch to updated and fixed tarball
2020-07-10 18:07:22 +00:00
* Fri Jul 10 2020 Neal Gompa <ngompa13@gmail.com> - 0.3.8-1
- Update to 0.3.8 (RH#1844005)
2020-02-06 05:12:34 +00:00
* Thu Feb 06 2020 Neal Gompa <ngompa13@gmail.com> - 0.3.5-1
- Update to 0.3.5 (RH#1797753)
2020-01-29 09:00:14 +00:00
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-21 21:28:37 +00:00
* Tue Jan 21 2020 Neal Gompa <ngompa13@gmail.com> - 0.3.4-1
- Update to 0.3.4 (RH#1793599)
2019-10-31 02:27:00 +00:00
* Wed Oct 30 2019 Neal Gompa <ngompa13@gmail.com> - 0.3.3-1
- Update to 0.3.3 (RH#1756080)
2019-09-24 22:18:47 +00:00
* Tue Sep 24 2019 Neal Gompa <ngompa13@gmail.com> - 0.3.1-1
- Update to 0.3.1 (RH#1755161)
2019-09-06 20:19:38 +00:00
* Fri Sep 6 2019 Neal Gompa <ngompa13@gmail.com> - 0.3.0-1
- Initial packaging for Fedora (RH#1749869)