libeconf/libeconf.spec

91 lines
2.2 KiB
RPMSpec
Raw Normal View History

2020-07-10 18:07:22 +00:00
# Force out of source build
%undefine __cmake_in_source_build
%global somajor 0
Name: libeconf
2020-07-10 18:07:22 +00:00
Version: 0.3.8
2020-02-06 05:12:34 +00:00
Release: 1%{?dist}
Summary: Enhanced config file parser library
License: MIT
URL: https://github.com/openSUSE/libeconf
2020-07-10 18:07:22 +00:00
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
# From: https://github.com/openSUSE/libeconf/pull/127
Patch0001: 0001-CMake-Install-version-file.patch
2020-07-10 18:07:22 +00:00
BuildRequires: cmake >= 3.12
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}.
%prep
2020-07-10 18:07:22 +00:00
%autosetup -p1
# Set the version correctly
sed -e "s/project(libeconf VERSION .*/project(libeconf VERSION %{version}/" -i CMakeLists.txt
%build
2020-07-10 18:07:22 +00:00
%cmake
%cmake_build
%install
2020-07-10 18:07:22 +00:00
%cmake_install
%check
2020-07-10 18:07:22 +00:00
%make_build -C %{_vpath_builddir} check
%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}/
%{_libdir}/pkgconfig/%{name}.pc
%changelog
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)
* 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)
* Fri Sep 6 2019 Neal Gompa <ngompa13@gmail.com> - 0.3.0-1
- Initial packaging for Fedora (RH#1749869)