[packages/libglibutil] - added dependencies, pass CC and LDFLAGS, release 1

qboosh qboosh at pld-linux.org
Thu Jan 26 06:32:24 CET 2023


commit 0bfd89043ccf34e922840b053da493ce6f9e0cb1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jan 26 06:32:47 2023 +0100

    - added dependencies, pass CC and LDFLAGS, release 1

 libglibutil.spec | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/libglibutil.spec b/libglibutil.spec
index 962da2c..7878460 100644
--- a/libglibutil.spec
+++ b/libglibutil.spec
@@ -2,7 +2,7 @@ Summary:	Library of glib utilities
 Summary(pl.UTF-8):	Biblioteka narzędzi glib
 Name:		libglibutil
 Version:	1.0.67
-Release:	0.1
+Release:	1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://github.com/sailfishos/libglibutil/tags
@@ -10,6 +10,8 @@ Source0:	https://github.com/sailfishos/libglibutil/archive/%{version}/%{name}-%{
 # Source0-md5:	4cc4b99b9561edf309d89f844806c3d1
 Patch0:		install.patch
 URL:		https://github.com/sailfishos/libglibutil/
+BuildRequires:	glib2-devel >= 2.0
+BuildRequires:	pkgconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -23,6 +25,7 @@ Summary:	Header files for glibutil library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki glibutil
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	glib2-devel >= 2.0
 
 %description devel
 Header files for glibutil library.
@@ -36,7 +39,9 @@ Pliki nagłówkowe biblioteki glibutil.
 
 %build
 %{__make} release pkgconfig \
-	CFLAGS="%{rpmcflags}" \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}" \
 	LIBDIR=%{_libdir} \
 	KEEP_SYMBOLS=1
 
@@ -55,7 +60,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc README
+%doc LICENSE README
 %attr(755,root,root) %{_libdir}/libglibutil.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libglibutil.so.1
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libglibutil.git/commitdiff/0bfd89043ccf34e922840b053da493ce6f9e0cb1



More information about the pld-cvs-commit mailing list