Fix pkgconfig file on 64-bit systems (bz 2014748).

This commit is contained in:
Jerry James 2021-10-17 09:37:54 -06:00
parent d1f8599817
commit f495935ca3

View File

@ -1,6 +1,6 @@
Name: check
Version: 0.15.2
Release: 4%{?dist}
Release: 5%{?dist}
Summary: A unit test framework for C
Source0: https://github.com/libcheck/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
License: LGPLv2+
@ -68,6 +68,9 @@ find . -name .cvsignore -delete
# Regenerate configure due to patch 0
autoreconf -ivf
# Fix libdir for the cmake build
sed -i 's,set(libdir .*),set(libdir "%{_libdir}"),' CMakeLists.txt
%build
# The autotools build does not create the cmake files.
# The cmake build does not create the info or aclocal files.
@ -100,6 +103,9 @@ cd -
%cmake_install
# The library does not really depend on -pthread
sed -i 's/ -pthread//' %{buildroot}%{_libdir}/pkgconfig/check.pc
%check
cd autotools_build
export LD_LIBRARY_PATH=$PWD/src/.libs
@ -142,11 +148,14 @@ cd -
%{_mandir}/man1/checkmk.1*
%changelog
* Sat Oct 16 2021 Jerry James <loganjerry@gmail.com> - 0.15.2-5
- Fix pkgconfig file on 64-bit systems (bz 2014748)
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon Mar 01 2021 Tomas Popela <tpopela@redhat.com> - 0.15.2-3
- Don't build with subinit support in RHEL
- Don't build with subunit support in RHEL
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild