RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/dbus-glib#a5f23306f60885f2c9f3cf217207206ff6821ce8
This commit is contained in:
parent
a7fe4ebda0
commit
1afebfe552
11
.gitignore
vendored
11
.gitignore
vendored
@ -0,0 +1,11 @@
|
||||
dbus-glib-0.84.tar.gz
|
||||
DBusGLib-1.0.gir
|
||||
dbus-glib-0.88.tar.gz
|
||||
/dbus-glib-0.92.tar.gz
|
||||
/dbus-glib-0.100.tar.gz
|
||||
/dbus-glib-0.100.2.tar.gz
|
||||
/dbus-glib-0.102.tar.gz
|
||||
/dbus-glib-0.104.tar.gz
|
||||
/dbus-glib-0.106.tar.gz
|
||||
/dbus-glib-0.108.tar.gz
|
||||
/dbus-glib-0.110.tar.gz
|
77
dbus-bus-introspect.xml
Normal file
77
dbus-bus-introspect.xml
Normal file
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
|
||||
<node>
|
||||
<interface name="org.freedesktop.DBus.Introspectable">
|
||||
<method name="Introspect">
|
||||
<arg name="data" direction="out" type="s"/>
|
||||
</method>
|
||||
</interface>
|
||||
<interface name="org.freedesktop.DBus">
|
||||
<method name="RequestName">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="in" type="u"/>
|
||||
<arg direction="out" type="u"/>
|
||||
</method>
|
||||
<method name="ReleaseName">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="u"/>
|
||||
</method>
|
||||
<method name="StartServiceByName">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="in" type="u"/>
|
||||
<arg direction="out" type="u"/>
|
||||
</method>
|
||||
<method name="Hello">
|
||||
<arg direction="out" type="s"/>
|
||||
</method>
|
||||
<method name="NameHasOwner">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="b"/>
|
||||
</method>
|
||||
<method name="ListNames">
|
||||
<arg direction="out" type="as"/>
|
||||
</method>
|
||||
<method name="ListActivatableNames">
|
||||
<arg direction="out" type="as"/>
|
||||
</method>
|
||||
<method name="AddMatch">
|
||||
<arg direction="in" type="s"/>
|
||||
</method>
|
||||
<method name="RemoveMatch">
|
||||
<arg direction="in" type="s"/>
|
||||
</method>
|
||||
<method name="GetNameOwner">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="s"/>
|
||||
</method>
|
||||
<method name="ListQueuedOwners">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="as"/>
|
||||
</method>
|
||||
<method name="GetConnectionUnixUser">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="u"/>
|
||||
</method>
|
||||
<method name="GetConnectionUnixProcessID">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="u"/>
|
||||
</method>
|
||||
<method name="GetConnectionSELinuxSecurityContext">
|
||||
<arg direction="in" type="s"/>
|
||||
<arg direction="out" type="ay"/>
|
||||
</method>
|
||||
<method name="ReloadConfig">
|
||||
</method>
|
||||
<signal name="NameOwnerChanged">
|
||||
<arg type="s"/>
|
||||
<arg type="s"/>
|
||||
<arg type="s"/>
|
||||
</signal>
|
||||
<signal name="NameLost">
|
||||
<arg type="s"/>
|
||||
</signal>
|
||||
<signal name="NameAcquired">
|
||||
<arg type="s"/>
|
||||
</signal>
|
||||
</interface>
|
||||
</node>
|
332
dbus-glib.spec
Normal file
332
dbus-glib.spec
Normal file
@ -0,0 +1,332 @@
|
||||
%global expat_version 1.95.5
|
||||
%global glib2_version 2.40.0
|
||||
%global dbus_version 1.8
|
||||
|
||||
Summary: GLib bindings for D-Bus
|
||||
Name: dbus-glib
|
||||
Version: 0.110
|
||||
Release: 10%{?dist}
|
||||
URL: http://www.freedesktop.org/software/dbus/
|
||||
#VCS: git:git://git.freedesktop.org/git/dbus/dbus-glib
|
||||
Source0: https://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
|
||||
License: AFL and GPLv2+
|
||||
BuildRequires: gcc
|
||||
BuildRequires: pkgconfig(dbus-1) >= %{dbus_version}
|
||||
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
|
||||
BuildRequires: expat-devel >= %{expat_version}
|
||||
BuildRequires: gettext
|
||||
BuildRequires: /usr/bin/chrpath
|
||||
BuildRequires: dbus-daemon
|
||||
|
||||
%description
|
||||
|
||||
D-Bus add-on library to integrate the standard D-Bus library with
|
||||
the GLib thread abstraction and main loop.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and headers for the D-Bus GLib bindings
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
|
||||
Headers and static libraries for the D-Bus GLib bindings
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure --enable-tests=yes \
|
||||
--enable-asserts=yes \
|
||||
--disable-gtk-doc
|
||||
|
||||
%make_build V=1
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
||||
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
||||
|
||||
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/dbus-binding-tool
|
||||
chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/dbus-bash-completion-helper
|
||||
|
||||
# Scripts that are sourced should not be executable.
|
||||
chmod -x $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc NEWS
|
||||
%license COPYING
|
||||
%{_libdir}/libdbus-glib-1.so.*
|
||||
%{_bindir}/dbus-binding-tool
|
||||
%{_mandir}/man1/dbus-binding-tool.1*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libdbus-glib-1.so
|
||||
%{_libdir}/pkgconfig/dbus-glib-1.pc
|
||||
%{_includedir}/dbus-1.0/dbus/*
|
||||
%{_datadir}/gtk-doc/html/dbus-glib
|
||||
%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
|
||||
%{_libexecdir}/dbus-bash-completion-helper
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-10
|
||||
- Second attempt - Rebuilt for
|
||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Jul 13 2020 Tom Stellard <tstellar@redhat.com> - 0.110-8
|
||||
- Use make macros
|
||||
- https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Fri May 10 2019 Scott Talbert <swt@techie.net> - 0.110-5
|
||||
- Add dbus-daemon to BRs to fix FTBFS (#1674792)
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Tue Jan 30 2018 David King <amigadave@amigadave.com> - 0.110-1
|
||||
- Update to 0.110
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.108-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.108-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.108-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Sep 09 2016 David King <amigadave@amigadave.com> - 0.108-1
|
||||
- Update to 0.108
|
||||
- Enable tests
|
||||
- Remove obsolete Requires and Obsoletes
|
||||
|
||||
* Tue Feb 02 2016 David King <amigadave@amigadave.com> - 0.106-1
|
||||
- Update to 0.106
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.104-2
|
||||
- Rebuilt for Fedora 23 Change
|
||||
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
|
||||
|
||||
* Mon Feb 09 2015 David King <amigadave@amigadave.com> - 0.104-1
|
||||
- Update to 0.104
|
||||
- Remove RPATH
|
||||
- Remove executable bit from sourced script
|
||||
- Move man page to main package and update glob
|
||||
- Make the build output more verbose
|
||||
|
||||
* Sat Feb 07 2015 David King <amigadave@amigadave.com> - 0.102-1
|
||||
- Update to 0.102
|
||||
- Use pkgconfig for BuildRequires
|
||||
- Remove outdated gtk subpackage
|
||||
- Use license for COPYING
|
||||
- Tighten subpackage dependencies with the isa macro
|
||||
- Tidy spec file
|
||||
- Preserve timestamps during install
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Mon Jul 01 2013 Colin Walters <walters@redhat.com> - 0.100.2
|
||||
- New upstream version
|
||||
|
||||
* Fri Jun 21 2013 Matthias Clasen <mclasen@redhat.com> - 0.100-4
|
||||
- Don't install ChangeLog (need to save space on the live image)
|
||||
|
||||
* Wed Feb 20 2013 Colin Walters <walters@redhat.com> - 0.100-3
|
||||
- CVE-2013-0292
|
||||
Resolves: #911714
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Tue Jul 17 2012 Colin Walters <walters@verbum.org> - 0.100-1
|
||||
- Update to 0.100
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.92-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2011 Christopher Aillon <caillon@redhat.com> - 0.92-1
|
||||
- Update to 0.92
|
||||
|
||||
* Wed Sep 29 2010 jkeating - 0.88-3
|
||||
- Rebuilt for gcc bug 634757
|
||||
|
||||
* Tue Sep 21 2010 Colin Walters <walters@verbum.org> - 0.88-2
|
||||
- Drop .gir file, it's now in gobject-introspection
|
||||
|
||||
* Thu Aug 12 2010 Colin Walters <walters@verbum.org> - 0.88-1
|
||||
- New upstream version
|
||||
- drop now-merged shadow props patch
|
||||
|
||||
* Mon Jul 12 2010 Colin Walters <walters@verbum.org> - 0.86-4
|
||||
- Rebuild against new gobject-introspection
|
||||
|
||||
* Tue Jun 29 2010 Dan Williams <dcbw@redhat.com> - 0.86-3
|
||||
- Fix shadow property access (fdo #28835)
|
||||
|
||||
* Tue Jun 29 2010 Bastien Nocera <bnocera@redhat.com> 0.86-2
|
||||
- Add introspection data from gir-repository
|
||||
- Remove unneeded autotools calls
|
||||
|
||||
* Thu Mar 18 2010 Colin Walters <walters@verbum.org> - 0.86-1
|
||||
- New upstream
|
||||
Drop upstreamed patch
|
||||
|
||||
* Tue Mar 02 2010 Colin Walters <walters@verbum.org> - 0.84-3
|
||||
- Revert previous broken patch for error names, add better fix
|
||||
|
||||
* Mon Feb 15 2010 Colin Walters <walters@verbum.org> - 0.84-2
|
||||
- Add patch to avoid assertions when setting a GError that
|
||||
includes a '-' in the enumeration value. Should fix #528897
|
||||
|
||||
* Wed Jan 27 2010 Colin Walters <walters@verbum.org> - 0.84-1
|
||||
- New upstream
|
||||
Has introspect.xml internally, drop it from here
|
||||
|
||||
* Fri Jan 15 2010 Colin Walters <walters@verbum.org> - 0.82-3
|
||||
- Add ListActivatableNames to dbus-bus-introspect.xml to help tracker build
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.82-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Thu Jul 16 2009 Colin Walters <walters@verbum.org> - 0.82-1
|
||||
- New upstream 0.82
|
||||
- Remove mclasen accidental commit of CFLAGS="-O0 -g3"
|
||||
|
||||
* Sun Jun 14 2009 Matthias Clasen <mclasen@redhat.com> - 0.80-3
|
||||
- Minor directory ownership cleanup
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.80-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Mon Feb 02 2009 Colin Walters <walters@verbum.org> - 0.80-1
|
||||
- New upstream release
|
||||
- Adjust to new bash completion dir
|
||||
- Includes patch noreply patch
|
||||
|
||||
* Wed Jan 07 2009 Colin Walters <walters@verbum.org> - 0.78-2
|
||||
- Add patch to avoid sending reply to noreply messages; this avoids
|
||||
some spurious dbus denial logs during system startup from NM
|
||||
|
||||
* Thu Dec 04 2008 Colin Walters <walters@verbum.org> - 0.78-1
|
||||
- New upstream release, drop upstreamed patches
|
||||
|
||||
* Tue Nov 25 2008 Matthias Clasen <mclasen@redhat.com> - 0.76-4
|
||||
- Avoid some spurious linkage
|
||||
|
||||
* Mon Nov 17 2008 Dan Williams <dcbw@redhat.com> - 0.76-3
|
||||
- Fix crashes when a tracked service restarts too quickly (fdo #18573)
|
||||
|
||||
* Thu Jul 31 2008 David Zeuthen <davidz@redhat.com> - 0.76-2
|
||||
- Add bash completion for dbus-send(1)
|
||||
|
||||
* Thu Jun 05 2008 Colin Walters <walters@redhat.com> - 0.76-1
|
||||
- New upstream 0.76
|
||||
- Drop all upstreamed patches
|
||||
|
||||
* Tue May 27 2008 Dan Williams <dcbw@redhat.com> - 0.74-9
|
||||
- Handle unknown object properties without asserting (fdo #16079)
|
||||
- Handle GetAll() property names correctly (fdo #16114)
|
||||
- Enable the freeze-abi patch
|
||||
- Cherry-pick some fixes from upstream git
|
||||
|
||||
* Thu May 8 2008 Matthias Clasen <mclasen@redhat.com> - 0.74-8
|
||||
- Fix license field
|
||||
|
||||
* Tue Apr 15 2008 Colin Walters <walters@redhat.com> - 0.74-7
|
||||
- Ensure ABI is frozen as it stands now
|
||||
|
||||
* Fri Apr 4 2008 David Zeuthen <davidz@redhat.com> - 0.74-6
|
||||
- Add another upstreamed patch for setting the default timeout
|
||||
on a proxy
|
||||
|
||||
* Fri Apr 4 2008 David Zeuthen <davidz@redhat.com> - 0.74-5
|
||||
- Add an already upstreamed patch to export the GetAll() method on
|
||||
the org.freedesktop.DBus.Properties interface
|
||||
|
||||
* Wed Mar 19 2008 Dan Williams <dcbw@redhat.com> - 0.74-4
|
||||
- Ignore children of namespaced nodes too
|
||||
|
||||
* Tue Feb 12 2008 Dan Williams <dcbw@redhat.com> - 0.74-3
|
||||
- Ignore namespaces in introspection XML
|
||||
|
||||
* Sun Nov 18 2007 Dan Williams <dcbw@redhat.com> - 0.74-2
|
||||
- Actually apply the patch for fdo #12505
|
||||
|
||||
* Mon Oct 22 2007 Ray Strode <rstrode@redhat.com> - 0.74-1
|
||||
- Update to 0.74
|
||||
|
||||
* Mon Sep 24 2007 Dan Williams <dcbw@redhat.com> - 0.73-4
|
||||
- Dispatch NameOwnerChanged signals to proxies only once (fdo #12505)
|
||||
|
||||
* Sat Sep 15 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-3
|
||||
- Rebuild against new expat
|
||||
|
||||
* Wed Aug 1 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-2
|
||||
- Fix a bug in introspection support (#248150)
|
||||
|
||||
* Wed Apr 4 2007 Matthias Clasen <mclasen@redhat.com> - 0.73-1
|
||||
- Update to 0.73 (#233631)
|
||||
- Drop upstreamed patches
|
||||
|
||||
* Tue Dec 19 2006 John (J5) Palmieri <johnp@redhat.com> - 0.71-4
|
||||
- Add dbus-glib-0.70-use-default-threads.patch
|
||||
- Partial fix to #219257
|
||||
|
||||
* Wed Nov 29 2006 David Zeuthen <davidz@redhat.com> - 0.71-3%{?dist}
|
||||
- Add dbus-glib-0.70-fix-info-leak.patch
|
||||
- Resolves: #216034
|
||||
|
||||
* Sun Nov 5 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-2
|
||||
- Fix up Requires for the -devel package
|
||||
|
||||
* Mon Oct 23 2006 Matthias Clasen <mclasen@redhat.com> - 0.71-1
|
||||
- Update to 0.71
|
||||
|
||||
* Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-4
|
||||
- remove improper obsoletes
|
||||
|
||||
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3
|
||||
- Pregenerate the xml introspect file so you don't need dbus running during
|
||||
the build
|
||||
|
||||
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2
|
||||
- Spec file cleanups
|
||||
|
||||
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
|
||||
- Initial dbus-glib package
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (dbus-glib-0.110.tar.gz) = c40ccf7118d4951f0e09082216ccd26f21ee906bdf96d912611d3cd29badd7ef446bea74e19f26c28ebceb9e19bb659d11c643c3e712dac499df12907be88a54
|
1
tests/README
Normal file
1
tests/README
Normal file
@ -0,0 +1 @@
|
||||
Tests are passing and ready to be migrated to dist-git
|
16
tests/tests.yml
Normal file
16
tests/tests.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
# This first play always runs on the local staging system
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
tests:
|
||||
- upstream-testset
|
||||
required_packages:
|
||||
- dbus-glib
|
||||
- rpm-build
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- wget
|
||||
- make
|
58
tests/upstream-testset/runtest.sh
Normal file
58
tests/upstream-testset/runtest.sh
Normal file
@ -0,0 +1,58 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
# Copyright (c) 2015 Red Hat, Inc. This copyrighted material
|
||||
# is made available to anyone wishing to use, modify, copy, or
|
||||
# redistribute it subject to the terms and conditions of the GNU General
|
||||
# Public License v.2.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
# Author: Vladimir Benes <vbenes@redhat.com>
|
||||
|
||||
PKG=dbus-glib
|
||||
PKG_DIR=$2
|
||||
if [ -z "$PKG_DIR" ]; then
|
||||
PKG_DIR=$1
|
||||
fi
|
||||
|
||||
RPMBUILD=$(rpm --eval '%{_topdir}')
|
||||
LOG="/tmp/$TEST.log"
|
||||
PKG_SRPM=$(rpm -q --qf '%{SOURCERPM}\n' $PKG | head -n1)
|
||||
PKG_PATH=$(rpm -q --qf '%{NAME}/%{VERSION}/%{RELEASE}\n' $PKG | head -n1)
|
||||
PKG_BUILD_PATH=$(rpm -q --qf "$PKG_DIR-%{VERSION}\n" $PKG | head -n1)
|
||||
|
||||
echo "Downloading SRPM"
|
||||
wget https://kojipkgs.fedoraproject.org/packages/$PKG_PATH/src/$PKG_SRPM
|
||||
rm -rf $RPMBUILD
|
||||
rpm -ivf $PKG_SRPM
|
||||
echo "Building dependencies"
|
||||
dnf builddep -y $PKG_SRPM
|
||||
echo "Rebuilding the package"
|
||||
rpmbuild -bc $RPMBUILD/SPECS/$PKG.spec
|
||||
|
||||
echo "Running make check"
|
||||
#make check -C $RPMBUILD/BUILD/$PKG_BUILD_PATH/ &>$LOG
|
||||
cd $RPMBUILD/BUILD/$PKG*
|
||||
make check | tee -a $LOG
|
||||
#make check -C $RPMBUILD/BUILD/$PKG_BUILD_PATH/
|
||||
rc=$?
|
||||
RESULT=FAIL
|
||||
|
||||
if [ $rc -eq 0 ]; then
|
||||
RESULT="PASS"
|
||||
fi
|
||||
|
||||
if which rhts-report-result &> /dev/null; then
|
||||
rhts-report-result $TEST $RESULT $LOG
|
||||
fi
|
||||
|
||||
exit $rc
|
||||
echo "Result is: $RESULT"
|
||||
rm $LOG
|
||||
|
Loading…
Reference in New Issue
Block a user