updated URL; close #1 [release 6.0.2-4mamba;Sun Nov 10 2024]

This commit is contained in:
Silvan Calarco 2024-11-11 08:38:13 +01:00
parent 91dd965000
commit e55d380488
2 changed files with 6 additions and 30 deletions

View File

@ -1,25 +0,0 @@
From 2f32a9debc1f148b5dfcfc463480f1432bb71725 Mon Sep 17 00:00:00 2001
From: Lars Op den Kamp <lars@opdenkamp.eu>
Date: Sat, 11 Jul 2015 00:53:17 +0200
Subject: [PATCH] fixed: don't generate an invalid env.h when not built with
the .git dir present. closes #112
---
support/git-rev.sh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/support/git-rev.sh b/support/git-rev.sh
index 5dce3d0..4aadae6 100755
--- a/support/git-rev.sh
+++ b/support/git-rev.sh
@@ -1,5 +1,8 @@
#!/bin/sh
## cmake doesn't read the variable when it doesn't end with a newline, and I haven't figured out how to have it add a newline directly...
-echo -n "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`\n"
-
+if [ -d .git ]; then
+ echo "`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h"`"
+else
+ echo "<unknown>"
+fi

View File

@ -1,16 +1,14 @@
Name: libcec Name: libcec
Epoch: 1 Epoch: 1
Version: 6.0.2 Version: 6.0.2
Release: 3mamba Release: 4mamba
Summary: USB CEC Adaptor communication Library Summary: USB CEC Adaptor communication Library
Group: System/Kernel and Hardware Group: System/Kernel and Hardware
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libcec.pulse-eight.com/ URL: https://libcec.pulse-eight.com/
Source: https://github.com/Pulse-Eight/libcec/archive/libcec-%{version}.tar.gz Source: https://github.com/Pulse-Eight/libcec/archive/libcec-%{version}.tar.gz
#Source: https://github.com/Pulse-Eight/libcec.git/libcec-%{version}/libcec-%{version}.tar.bz2
Patch0: libcec-3.0.1-buildfix-upstream.patch
Patch1: libcec-6.0.2-pythonlib.patch Patch1: libcec-6.0.2-pythonlib.patch
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -21,6 +19,7 @@ BuildRequires: libcec-p8-platform-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libncurses-devel BuildRequires: libncurses-devel
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
BuildRequires: libpython311-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: libudev-devel BuildRequires: libudev-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
@ -65,7 +64,6 @@ This package contains libraries and header files for developing applications tha
%setup -q -n libcec-libcec-%{version} %setup -q -n libcec-libcec-%{version}
#-D -T #-D -T
#:<< _EOF #:<< _EOF
#%patch0 -p1
%patch1 -p1 %patch1 -p1
%build %build
@ -120,6 +118,9 @@ This package contains libraries and header files for developing applications tha
%{python3_sitearch}/cec/cec.py %{python3_sitearch}/cec/cec.py
%changelog %changelog
* Sun Nov 10 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.2-4mamba
- updated URL; close #1
* Thu May 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.2-3mamba * Thu May 20 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.0.2-3mamba
- fixed maintainer - fixed maintainer