File project.diff of Package libcorrect
--- libcorrect.changes.orig
+++ libcorrect.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Thu Oct 28 18:26:13 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Generate and package pkg-config file
+
+-------------------------------------------------------------------
Fri Mar 15 00:40:31 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use same write style throughout the description.
--- libcorrect.spec.orig
+++ libcorrect.spec
@@ -1,8 +1,8 @@
#
# spec file for package libcorrect
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2018, Martin Hauke <mardnh@gmx.de>
+# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2018-2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -80,6 +80,21 @@ applications that want to make use of li
%install
%cmake_install
+# creates support file for pkg-config
+mkdir -p %{buildroot}/%{_libdir}/pkgconfig
+tee %{buildroot}/%{_libdir}/pkgconfig/libcorrect.pc << "EOF"
+prefix=%{_prefix}
+exec_prefix=${prefix}
+libdir=${exec_prefix}/%{_lib}
+includedir=${prefix}/include
+
+Name: libcorrect
+Description: C library for Convolutional codes and Reed-Solomon
+Version: %{version}
+Libs: -lcorrect
+Cflags: -I${includedir}
+EOF
+
%post -n libcorrect%{sover} -p /sbin/ldconfig
%postun -n libcorrect%{sover} -p /sbin/ldconfig
@@ -91,5 +106,6 @@ applications that want to make use of li
%files devel
%{_includedir}/correct*.h
%{_libdir}/libcorrect.so
+%{_libdir}/pkgconfig/libcorrect.pc
%changelog