diff --git a/dbus-glib.spec b/dbus-glib.spec index a8f7e13c830525444e3deb4a63329334829e2336..9fddff66f16ecf74ecfbd215a7c7ba8a2677da05 100644 --- a/dbus-glib.spec +++ b/dbus-glib.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global expat_version 1.95.5 %global glib2_version 2.40.0 %global dbus_version 1.8 @@ -33,12 +33,19 @@ the GLib thread abstraction and main loop. %package devel Summary: Libraries and headers for the D-Bus GLib bindings -Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{name} = %{version}-%{release} %description devel - Headers and static libraries for the D-Bus GLib bindings +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{EVR} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + %prep %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}' %autosetup -p1 @@ -57,23 +64,23 @@ Headers and static libraries for the D-Bus GLib bindings %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 +# remove the libdbus-glib-1.a +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a + +%generate_compatibility_deps %files -%doc NEWS %license COPYING %{_libdir}/libdbus-glib-1.so.* %{_bindir}/dbus-binding-tool %{_mandir}/man1/dbus-binding-tool.1* +%dir %{abidir} +%{abidir}/dbus-binding-tool-option.list +%{abidir}/libdbus-glib-1.dump + %files devel %{_libdir}/libdbus-glib-1.so @@ -83,7 +90,13 @@ chmod -x $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh %{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh %{_libexecdir}/dbus-bash-completion-helper +%files doc +%doc NEWS CONTRIBUTING.md AUTHORS +%doc README INSTALL %changelog +* Fri Feb 10 2023 happy_orange - 0.112-2 +- add generate compatibility scripts and doc package + * Thu Mar 10 2022 Mingyue Zhao - 0.112-1 - Init for Anolis OS 23