dbus-glib/dbus-glib.spec

100 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:36:36 -04:00
Name: dbus-glib
2021-12-29 15:54:04 +08:00
Version: 0.112
Release: 3
2019-09-30 10:36:36 -04:00
Summary: GLib bindings for DBUS
2022-06-02 07:40:22 +00:00
License: AFL-2.1 and GPLv2+
2019-09-30 10:36:36 -04:00
URL: http://www.freedesktop.org/software/dbus/
Source0: https://dbus.freedesktop.org/releases/dbus-glib/%{name}-%{version}.tar.gz
BuildRequires: gcc gettext chrpath
2019-09-30 10:36:36 -04:00
BuildRequires: pkgconfig(dbus-1) >= 1.8 pkgconfig(glib-2.0) >= 2.40.0 expat-devel >= 1.95.5
BuildRequires: dbus-daemon
2019-09-30 10:36:36 -04:00
%description
The D-Bus GLib package contains GLib interfaces to the D-Bus API.
%package devel
Summary: Development files for %{name}
2019-11-06 19:05:15 +08:00
Requires: %{name} = %{version}-%{release}
2019-09-30 10:36:36 -04:00
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2019-11-06 19:05:15 +08:00
%package help
Summary: Doc files for %{name}
Buildarch: noarch
Requires: man
%description help
The %{name}-help package contains doc files for %{name}.
2019-09-30 10:36:36 -04:00
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 10:36:36 -04:00
%build
%configure --enable-tests --enable-asserts --disable-gtk-doc --disable-static
%make_build
%install
%make_install INSTALL="install -p"
rm -f %{buildroot}/%{_libdir}/*.la
chrpath --delete %{buildroot}/%{_bindir}/dbus-binding-tool
chrpath --delete %{buildroot}/%{_libexecdir}/dbus-bash-completion-helper
%check
make check
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%{_bindir}/dbus-binding-tool
%{_libdir}/lib%{name}-1.so.*
%files devel
%defattr(-,root,root)
%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
%{_includedir}/dbus-1.0/dbus/*.h
%{_libdir}/lib%{name}-1.so
%{_libdir}/pkgconfig/%{name}-1.pc
%{_libexecdir}/dbus-bash-completion-helper
2019-11-06 19:05:15 +08:00
%files help
%doc NEWS
%{_mandir}/man1/dbus-binding-tool.1.gz
%{_datadir}/gtk-doc/html/%{name}
2019-09-30 10:36:36 -04:00
%changelog
* Mon Jan 30 2023 Wenlong Zhang <zhangwenlong@loongson.cn> - 0.112-3
- add BuildRequires of dbus-daemon to fix the error dbus-run-session not found
2022-06-02 07:40:22 +00:00
* Thu Jun 2 2022 Chenyx <chenyixiong3@huawei.com> - 0.112-2
- License compliance rectification
2021-12-29 15:54:04 +08:00
* Wed Dec 29 2021 zoulin <zoulin13@huawei.com> - 0.112-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update version to 0.112
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.110-6
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2019-11-06 19:05:15 +08:00
* Mon Sep 30 2019 luhuaxin <luhuaxin@huawei.com> - 0.110-5
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: add help package
2019-09-30 10:36:36 -04:00
* Wed Aug 21 2019 luhuaxin <luhuaxin@huawei.com> - 0.110-4
- Package init