ding-libs/ding-libs.spec

88 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:36:59 -04:00
%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.1
Release: 42
Summary: 'Ding is not GLib' utility libraries
License: LGPLv3+
URL: https://pagure.io/SSSD/ding-libs
Source0: https://releases.pagure.org/SSSD/ding-libs/%{name}-%{version}.tar.gz
Patch0: INI-Silence-ini_augment-match-failures.patch
Patch1: INI-Remove-definiton-of-TRACE_LEVEL.patch
Patch2: INI-Fix-detection-of-error-messages.patch
Patch3: TEST-validators_ut_check-Fix-fail-with-new-glibc.patch
BuildRequires: autoconf,automake,check-devel,doxygen,gcc,git,libtool,m4,pkgconfig
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,libdhash-devel,libref_array-devel
Provides: libcollection-devel,libbasicobjects-devel,libini_config-devel
Obsoletes: libpath_utils-devel,libdhash-devel,libref_array-devel
Obsoletes: libcollection-devel,libbasicobjects-devel,libini_config-devel
%description devel
This package provides development libraries and other development files.
%package_help
%prep
%autosetup -p1 -Sgit
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
* Fri Sep 06 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.6.1-42
- Package Init