Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
2e814da2d8
!20 [sync] PR-19: modify compile error of buildlog
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2022-08-08 06:48:58 +00:00
peijiankang
0c991dc4d5 modify compile error of buildlog
(cherry picked from commit 4d1276d3b63712cea3d74f53fddd7a2c38229cec)
2022-08-08 14:40:38 +08:00
openeuler-ci-bot
4a52ef7b81
!14 [sync] PR-13: update to upstream version 0.5.6
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2022-07-11 08:05:15 +00:00
tanyulong2021
654a176814 update to upstream version 0.5.6
(cherry picked from commit ffe31a31798b6f0c17da21c15eeb2726fbbd7f86)
2022-07-11 15:56:08 +08:00
openeuler-ci-bot
5553ba5915
!11 modify license warning
From: @tanyulong2021 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2022-05-13 06:42:05 +00:00
tanyulong2021
ae0b12319f modify license warning 2022-05-13 14:27:11 +08:00
openeuler-ci-bot
b8cb4b7f61
!10 add yaml file
From: @tanyulong2021 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2022-04-21 03:08:53 +00:00
tanyulong2021
8e50b473c7 add yaml file 2022-04-21 10:09:06 +08:00
openeuler-ci-bot
238ccc27b7
!7 update to upstream version 0.5.5
Merge pull request !7 from pei-jiankang/master
2022-01-12 11:43:58 +00:00
pei-jiankang
e77adec523 update to upstream version 0.5.5 2022-01-12 17:35:44 +08:00
5 changed files with 34 additions and 81 deletions

Binary file not shown.

BIN
bamf-0.5.6.tar.xz Normal file

Binary file not shown.

View File

@ -1,7 +1,7 @@
Summary: Application matching framework
Name: bamf
Version: 0.5.4
Release: 4%{?dist}
Version: 0.5.6
Release: 2
# Library bits are LGPLv2 or LGPLv3 (but not open-ended LGPLv2+);
# non-lib bits are GPLv3.
# pbrobinson points out that three files in the lib are actually
@ -9,16 +9,15 @@ Release: 4%{?dist}
# may not be upstream's intention. For now, marking library as
# GPL.
# License: LGPLv2 or LGPLv3
License: GPLv2 or GPLv3
License: LGPLv2 and LGPLv3 and GPLv2 and GPLv3 and LGPLv2+
URL: https://launchpad.net/bamf
Source0: http://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.gz
# Convert tests/gtester2xunit.py to Python 3 and lxml
Patch1: gtester2xunit-py3.patch
Source0: http://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.xz
BuildRequires: vala
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: gobject-introspection-devel
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3-lxml
BuildRequires: pkgconfig(gio-2.0)
@ -28,6 +27,8 @@ BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libwnck-3.0)
BuildRequires: pkgconfig(x11)
BuildRequires: systemd
BuildRequires: dbus-daemon
BuildRequires: xorg-x11-server-Xvfb
%description
BAMF removes the headache of applications matching into a simple DBus
@ -38,8 +39,6 @@ at amazing levels of accuracy (covering nearly every corner case).
Summary: Development files for %{name}
License: GPLv2 or GPLv3
Requires: %{name}%{?_isa} = %{version}-%{release}
# For %%{_libdir}/girepository-1.0 and %%{_datadir}/gir-1.0
#Requires: gobject-introspection-devel
Requires: pkgconfig
%description devel
@ -61,31 +60,30 @@ package contains the bamf daemon and supporting data.
%prep
%autosetup -p1
# autotools add -Werror after our flags, and there are glib deprecation warnings
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164
sed -i 's/ -Werror//' configure*
NOCONFIGURE=1 ./autogen.sh
%build
CFLAGS="$RPM_OPT_FLAGS"
PYTHON="%{__python3}"
export CFLAGS PYTHON
%configure --disable-static --disable-webapps --enable-gtk-doc
make %{?_smp_mflags}
%make_build
%install
make DESTDIR=%{buildroot} install
%make_install
find %{buildroot} -regex ".*\.la$" | xargs rm -f --
#%check
#dbus-run-session xvfb-run make check
%ldconfig_scriptlets
%post daemon
%systemd_user_post %{name}daemon.service
%preun
%preun daemon
%systemd_user_preun %{name}daemon.service
@ -100,6 +98,7 @@ find %{buildroot} -regex ".*\.la$" | xargs rm -f --
%{_libdir}/libbamf3.so
%{_libdir}/pkgconfig/libbamf3.pc
%{_datadir}/gtk-doc
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/Bamf*.gir
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
@ -113,5 +112,17 @@ find %{buildroot} -regex ".*\.la$" | xargs rm -f --
%exclude %{_datadir}/upstart/sessions/bamfdaemon.conf
%changelog
* Mon Aug 08 2022 peijiankang<peijiankang@kylinos.cn> - 0.5.6-2
- modify compile error of buildlog
* Thu Jul 07 2022 tanyulong<tanyulong@kylinos.cn> - 0.5.6-1
- update to upstream version 0.5.6
* Tue Apr 26 2022 tanyulong<tanyulong@kylinos.cn> - 0.5.5-2
- modify license warning
* Wed Jan 12 2022 pei-jiankang<peijiankang@kylinos.cn> - 0.5.5-1
- update to upstream version 0.5.5
* Thu Jul 23 2020 wangmian<wangmian@kylinos.cn> - 0.5.4-4
- Init bamf project

4
bamf.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: malwaredllc/bamf
tag_prefix: "^v"
separator: "."

View File

@ -1,62 +0,0 @@
diff --git a/configure b/configure
index af65be1..d915eea 100755
--- a/configure
+++ b/configure
@@ -14653,10 +14653,10 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtester2xunit dependencies" >&5
$as_echo_n "checking for gtester2xunit dependencies... " >&6; }
-if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then
+if !($PYTHON -c "import lxml" 2> /dev/null); then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
- as_fn_error $? "You need to install python-libxslt1 and python-libxml2" "$LINENO" 5;
+ as_fn_error $? "You need to install python-lxml" "$LINENO" 5;
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
diff --git a/configure.ac b/configure.ac
index 41cb7db..e62c807 100644
--- a/configure.ac
+++ b/configure.ac
@@ -115,9 +115,9 @@ GTK_DOC_CHECK(1.0)
AC_PATH_PROG([PYTHON],[python])
AC_MSG_CHECKING(for gtester2xunit dependencies)
-if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then
+if !($PYTHON -c "import lxml" 2> /dev/null); then
AC_MSG_RESULT([no])
- AC_MSG_ERROR([You need to install python-libxslt1 and python-libxml2]);
+ AC_MSG_ERROR([You need to install python-lxml]);
fi
AC_MSG_RESULT([yes])
diff --git a/tests/gtester2xunit.py b/tests/gtester2xunit.py
index fbe3c66..861d541 100755
--- a/tests/gtester2xunit.py
+++ b/tests/gtester2xunit.py
@@ -1,18 +1,17 @@
#! /usr/bin/python
from argparse import ArgumentParser
-import libxslt
-import libxml2
import sys
import os
+from lxml import etree
XSL_TRANSFORM='/usr/share/gtester2xunit/gtester.xsl'
def transform_file(input_filename, output_filename, xsl_file):
- gtester = libxml2.parseFile(xsl_file)
- style = libxslt.parseStylesheetDoc(gtester)
- doc = libxml2.parseFile(input_filename)
- result = style.applyStylesheet(doc, None)
- result.saveFormatFile(filename=output_filename, format=True)
+ gtester = etree.parse(xsl_file)
+ style = etree.XSLT(gtester)
+ doc = etree.parse(input_filename)
+ result = style(doc)
+ result.write(filename=output_filename, format=True)
def get_output_filename(input_filename):