ding-libs/ding-libs.spec
xuraoqing c0121ea6d5 update to 0.6.2
Signed-off-by: xuraoqing <xuraoqing@huawei.com>
2023-10-27 13:01:32 +08:00

96 lines
3.4 KiB
RPMSpec

%global Vpath_utils 0.2.1
%global Vdhash 0.5.0
%global Vref_array 0.1.5
%global Vcollection 0.7.0
%global Vbasicobjects 0.1.1
%global Vini_config 1.3.1
Name: ding-libs
Version: 0.6.2
Release: 0
Summary: 'Ding is not GLib' utility libraries
License: GPLv3+ and LGPLv3+
URL: https://github.com/SSSD/ding-libs/releases
Source0: https://github.com/SSSD/ding-libs/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf,automake,check-devel,doxygen,gcc,libtool,m4,pkgconfig,gettext-devel
Obsoletes: libpath_utils = %{Vpath_utils}, libdhash = %{Vdhash}, libref_array = %{Vref_array}
Obsoletes: libcollection = %{Vcollection}, libbasicobjects = %{Vbasicobjects}, libini_config = %{Vini_config}
Provides: libpath_utils = %{Vpath_utils}, libdhash = %{Vdhash}, libref_array = %{Vref_array}
Provides: libcollection = %{Vcollection}, libbasicobjects = %{Vbasicobjects}, libini_config = %{Vini_config}
%description
A meta-package that pulls in libcollection, libdhash, libini_config,
librefarray libbasicobjects, and libpath_utils.
%package devel
Summary: Development files for ding-libs
Requires: ding-libs = %{version}-%{release}
Provides: libpath_utils-devel = %{Vpath_utils}, libdhash-devel = %{Vdhash}, libref_array-devel = %{Vref_array}
Provides: libcollection-devel = %{Vcollection}, libbasicobjects-devel = %{Vbasicobjects}, libini_config-devel = %{Vini_config}
Obsoletes: libpath_utils-devel = %{Vpath_utils}, libdhash-devel = %{Vdhash}, libref_array-devel = %{Vref_array}
Obsoletes: libcollection-devel = %{Vcollection}, libbasicobjects-devel = %{Vbasicobjects}, libini_config-devel = %{Vini_config}
%description devel
This package provides development libraries and other development files.
%package_help
%prep
%autosetup -p1
autoreconf -fiv
%build
%configure
%make_build all docs
%check
make check
%install
%makeinstall
rm -rf %{buildroot}%{_docdir}/%{name}/{README.*,examples/*.c}
mkdir -p %{buildroot}%{_docdir}/%{name}-help/{libpath_utils,libdhash,libref_array,\
libcollection,libbasicobjects,libini_config}
cp -pr path_utils/{README.path_utils,doc/html} %{buildroot}%{_docdir}/%{name}-help/libpath_utils/
cp -pr dhash/{README.dhash,examples/*.c} %{buildroot}%{_docdir}/%{name}-help/libdhash/
cp -pr refarray/{README.ref_array,doc/html} %{buildroot}%{_docdir}/%{name}-help/libref_array/
cp -pr collection/doc/html %{buildroot}%{_docdir}/%{name}-help/libcollection/
cp -pr basicobjects/doc/html %{buildroot}%{_docdir}/%{name}-help/libbasicobjects/
cp -pr ini/doc/html %{buildroot}%{_docdir}/%{name}-help/libini_config/
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%doc COPYING COPYING.LESSER
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/lib*.{a,la,so}
%{_libdir}/pkgconfig/*
%files help
%defattr(-,root,root)
%{_docdir}/%{name}-help/*
%changelog
* Tue Oct 24 2023 xuraoqing<xuraoqing@huawei.com> - 0.6.2-0
- update to 0.6.2
* Wed Aug 17 2022 panxiaohe <panxh.life@foxmail.com> - 0.6.1-45
- add version check in Provides and Obsoletes for devel subpackage
* Tue Jun 14 2022 panxiaohe <panxh.life@foxmail.com> - 0.6.1-44
- modify license
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 0.6.1-43
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
* Fri Sep 06 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.1-42
- Package Init