Skip to content

Commit

Permalink
libconfig: fix make check
Browse files Browse the repository at this point in the history
Change-Id: I9073bac74d918d0a55d3440ade93b6874bfc8f23
Signed-off-by: Shreenidhi Shedi <[email protected]>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/15328
Tested-by: gerrit-photon <[email protected]>
  • Loading branch information
sshedi committed Mar 3, 2022
1 parent d84f3d8 commit b210f3e
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions SPECS/libconfig/libconfig.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,37 @@ Name: libconfig
Version: 1.7.2
Release: 1%{?dist}
License: LGPLv2
URL: http://www.hyperrealm.com/libconfig/
Source: %{name}-%{version}.tar.gz
%define sha1 libconfig=a0b282e78409f9f1a165b0c0011ae2ea78e7a390
URL: http://www.hyperrealm.com/libconfig
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon

Source0: %{name}-%{version}.tar.gz
%define sha1 %{name}=a0b282e78409f9f1a165b0c0011ae2ea78e7a390

%description
Libconfig is a simple library for processing structured configuration files,
like this one: test.cfg. This file format is more compact and more readable than XML.
And unlike XML, it is type-aware, so it is not necessary to do string parsing in application code.

%prep
%setup -q
%autosetup -p1

%build
autoreconf -fi
%configure --disable-static
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_infodir}/dir
make DESTDIR=%{buildroot} install %{?_smp_mflags}

rm -rf %{buildroot}%{_libdir}/*.la \
%{buildroot}%{_infodir}/dir

%check
./tests/libconfig_tests
%if 0%{?with_check}
make test %{?_smp_mflags}
%endif

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
Expand All @@ -45,11 +49,11 @@ rm -rf %{buildroot}%{_infodir}/dir
%{_infodir}/libconfig.info*

%changelog
* Wed Aug 12 2020 Gerrit Photon <[email protected]> 1.7.2-1
- Automatic Version Bump
* Mon Jul 20 2020 Shreenidhi Shedi <[email protected]> 1.7-1
- Upgrade to version 1.7
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 1.5-2
- GA - Bump release of all rpms
* Tue Nov 24 2015 Xiaolin Li <[email protected]> 0.7.2-1
- Initial build. First version
* Wed Aug 12 2020 Gerrit Photon <[email protected]> 1.7.2-1
- Automatic Version Bump
* Mon Jul 20 2020 Shreenidhi Shedi <[email protected]> 1.7-1
- Upgrade to version 1.7
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 1.5-2
- GA - Bump release of all rpms
* Tue Nov 24 2015 Xiaolin Li <[email protected]> 0.7.2-1
- Initial build. First version

0 comments on commit b210f3e

Please sign in to comment.