Blame SPECS/ding-libs.spec

787af7
Name: ding-libs
787af7
Version: 0.6.1
787af7
Release: 39%{?dist}
787af7
Summary: "Ding is not GLib" assorted utility libraries
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
URL: https://pagure.io/SSSD/ding-libs
787af7
Source0: https://releases.pagure.org/SSSD/ding-libs/%{name}-%{version}.tar.gz
787af7
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
787af7
787af7
# If a new upstream release changes some, but not all of these
787af7
# version numbers, remember to keep the Release tag in order to
787af7
# allow clean upgrades!
787af7
%global path_utils_version 0.2.1
787af7
%global dhash_version 0.5.0
787af7
%global collection_version 0.7.0
787af7
%global ref_array_version 0.1.5
787af7
%global basicobjects_version 0.1.1
787af7
%global ini_config_version 1.3.1
787af7
787af7
### Patches ###
787af7
Patch0: INI-Silence-ini_augment-match-failures.patch
787af7
Patch1: INI-Remove-definiton-of-TRACE_LEVEL.patch
787af7
Patch2: INI-Fix-detection-of-error-messages.patch
787af7
Patch3: TEST-validators_ut_check-Fix-fail-with-new-glibc.patch
787af7
787af7
### Dependencies ###
787af7
# ding-libs is a meta-package that will pull in all of its own
787af7
# sub-packages
787af7
Requires: libpath_utils = %{path_utils_version}-%{release}
787af7
Requires: libdhash = %{dhash_version}-%{release}
787af7
Requires: libcollection = %{collection_version}-%{release}
787af7
Requires: libref_array = %{ref_array_version}-%{release}
787af7
Requires: libbasicobjects = %{basicobjects_version}-%{release}
787af7
Requires: libini_config = %{ini_config_version}-%{release}
787af7
787af7
### Build Dependencies ###
787af7
787af7
BuildRequires: autoconf
787af7
BuildRequires: automake
787af7
BuildRequires: git
787af7
BuildRequires: libtool
787af7
BuildRequires: m4
787af7
BuildRequires: doxygen
787af7
BuildRequires: pkgconfig
787af7
BuildRequires: check-devel
787af7
787af7
%description
787af7
A meta-package that pulls in libcollection, libdhash, libini_config,
787af7
librefarray libbasicobjects, and libpath_utils.
787af7
787af7
%package devel
787af7
Summary: Development packages for ding-libs
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
787af7
# ding-libs is a meta-package that will pull in all of its own
787af7
# sub-packages
787af7
Requires: libpath_utils-devel = %{path_utils_version}-%{release}
787af7
Requires: libdhash-devel = %{dhash_version}-%{release}
787af7
Requires: libcollection-devel = %{collection_version}-%{release}
787af7
Requires: libref_array-devel = %{ref_array_version}-%{release}
787af7
Requires: libbasicobjects-devel = %{basicobjects_version}-%{release}
787af7
Requires: libini_config-devel = %{ini_config_version}-%{release}
787af7
787af7
%description devel
787af7
A meta-package that pulls in development libraries for libcollection,
787af7
libdhash, libini_config, librefarray and libpath_utils.
787af7
787af7
##############################################################################
787af7
# Path Utils
787af7
##############################################################################
787af7
787af7
%package -n libpath_utils
787af7
Summary: Filesystem Path Utilities
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Version: %{path_utils_version}
787af7
787af7
%description -n libpath_utils
787af7
Utility functions to manipulate filesystem pathnames
787af7
787af7
%package -n libpath_utils-devel
787af7
Summary: Development files for libpath_utils
787af7
Group: Development/Libraries
787af7
Requires: libpath_utils = %{path_utils_version}-%{release}
787af7
License: LGPLv3+
787af7
Version: %{path_utils_version}
787af7
787af7
%description -n libpath_utils-devel
787af7
Utility functions to manipulate filesystem pathnames
787af7
787af7
%ldconfig_scriptlets -n libpath_utils
787af7
787af7
%files -n libpath_utils
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING COPYING.LESSER
787af7
%{_libdir}/libpath_utils.so.1
787af7
%{_libdir}/libpath_utils.so.1.0.1
787af7
787af7
%files -n libpath_utils-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/path_utils.h
787af7
%{_libdir}/libpath_utils.so
787af7
%{_libdir}/pkgconfig/path_utils.pc
787af7
%doc path_utils/README.path_utils
787af7
%doc path_utils/doc/html/
787af7
787af7
787af7
##############################################################################
787af7
# dhash
787af7
##############################################################################
787af7
787af7
%package -n libdhash
787af7
Group: Development/Libraries
787af7
Summary: Dynamic hash table
787af7
License: LGPLv3+
787af7
Version: %{dhash_version}
787af7
787af7
%description -n libdhash
787af7
A hash table which will dynamically resize to achieve optimal storage & access
787af7
time properties
787af7
787af7
%package -n libdhash-devel
787af7
Summary: Development files for libdhash
787af7
Group: Development/Libraries
787af7
Requires: libdhash = %{dhash_version}-%{release}
787af7
License: LGPLv3+
787af7
Version: %{dhash_version}
787af7
787af7
%description -n libdhash-devel
787af7
A hash table which will dynamically resize to achieve optimal storage & access
787af7
time properties
787af7
787af7
%ldconfig_scriptlets -n libdhash
787af7
787af7
%files -n libdhash
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING COPYING.LESSER
787af7
%{_libdir}/libdhash.so.1
787af7
%{_libdir}/libdhash.so.1.1.0
787af7
787af7
%files -n libdhash-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/dhash.h
787af7
%{_libdir}/libdhash.so
787af7
%{_libdir}/pkgconfig/dhash.pc
787af7
%doc dhash/README.dhash
787af7
%doc dhash/examples/*.c
787af7
787af7
787af7
##############################################################################
787af7
# collection
787af7
##############################################################################
787af7
%package -n libcollection
787af7
Summary: Collection data-type for C
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Version: %{collection_version}
787af7
787af7
%description -n libcollection
787af7
A data-type to collect data in a hierarchical structure for easy iteration
787af7
and serialization
787af7
787af7
%package -n libcollection-devel
787af7
Summary: Development files for libcollection
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Requires: libcollection = %{collection_version}-%{release}
787af7
Version: %{collection_version}
787af7
787af7
%description -n libcollection-devel
787af7
A data-type to collect data in a hierarchical structure for easy iteration
787af7
and serialization
787af7
787af7
%ldconfig_scriptlets -n libcollection
787af7
787af7
787af7
%files -n libcollection
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING
787af7
%doc COPYING.LESSER
787af7
%{_libdir}/libcollection.so.*
787af7
787af7
%files -n libcollection-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/collection.h
787af7
%{_includedir}/collection_tools.h
787af7
%{_includedir}/collection_queue.h
787af7
%{_includedir}/collection_stack.h
787af7
%{_libdir}/libcollection.so
787af7
%{_libdir}/pkgconfig/collection.pc
787af7
%doc collection/doc/html/
787af7
787af7
787af7
##############################################################################
787af7
# ref_array
787af7
##############################################################################
787af7
787af7
%package -n libref_array
787af7
Summary: A refcounted array for C
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Version: %{ref_array_version}
787af7
787af7
%description -n libref_array
787af7
A dynamically-growing, reference-counted array
787af7
787af7
%package -n libref_array-devel
787af7
Summary: Development files for libref_array
787af7
Group: Development/Libraries
787af7
Requires: libref_array = %{ref_array_version}-%{release}
787af7
License: LGPLv3+
787af7
Version: %{ref_array_version}
787af7
787af7
%description -n libref_array-devel
787af7
A dynamically-growing, reference-counted array
787af7
787af7
%ldconfig_scriptlets -n libref_array
787af7
787af7
%files -n libref_array
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING
787af7
%doc COPYING.LESSER
787af7
%{_libdir}/libref_array.so.1
787af7
%{_libdir}/libref_array.so.1.2.1
787af7
787af7
%files -n libref_array-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/ref_array.h
787af7
%{_libdir}/libref_array.so
787af7
%{_libdir}/pkgconfig/ref_array.pc
787af7
%doc refarray/README.ref_array
787af7
%doc refarray/doc/html/
787af7
787af7
##############################################################################
787af7
# basicobjects
787af7
##############################################################################
787af7
787af7
%package -n libbasicobjects
787af7
Summary: Basic object types for C
787af7
Group: Development/Libraries
787af7
License: GPLv3+
787af7
Version: %{basicobjects_version}
787af7
787af7
%description -n libbasicobjects
787af7
Basic object types
787af7
787af7
%package -n libbasicobjects-devel
787af7
Summary: Development files for libbasicobjects
787af7
Group: Development/Libraries
787af7
License: GPLv3+
787af7
Version: %{basicobjects_version}
787af7
Requires: libbasicobjects = %{basicobjects_version}-%{release}
787af7
787af7
%description -n libbasicobjects-devel
787af7
Basic object types
787af7
787af7
%ldconfig_scriptlets -n libbasicobjects
787af7
787af7
%files -n libbasicobjects
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING
787af7
%doc COPYING.LESSER
787af7
%{_libdir}/libbasicobjects.so.0
787af7
%{_libdir}/libbasicobjects.so.0.1.0
787af7
787af7
%files -n libbasicobjects-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/simplebuffer.h
787af7
%{_libdir}/libbasicobjects.so
787af7
%{_libdir}/pkgconfig/basicobjects.pc
787af7
787af7
##############################################################################
787af7
# ini_config
787af7
##############################################################################
787af7
787af7
%package -n libini_config
787af7
Summary: INI file parser for C
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Version: %{ini_config_version}
787af7
787af7
%description -n libini_config
787af7
Library to process config files in INI format into a libcollection data
787af7
structure
787af7
787af7
%package -n libini_config-devel
787af7
Summary: Development files for libini_config
787af7
Group: Development/Libraries
787af7
License: LGPLv3+
787af7
Requires: libini_config = %{ini_config_version}-%{release}
787af7
Requires: libcollection-devel = %{collection_version}-%{release}
787af7
Requires: libref_array-devel = %{ref_array_version}-%{release}
787af7
Requires: libbasicobjects-devel = %{basicobjects_version}-%{release}
787af7
Version: %{ini_config_version}
787af7
787af7
%description -n libini_config-devel
787af7
Library to process config files in INI format into a libcollection data
787af7
structure
787af7
787af7
%ldconfig_scriptlets -n libini_config
787af7
787af7
%files -n libini_config
787af7
%defattr(-,root,root,-)
787af7
%doc COPYING
787af7
%doc COPYING.LESSER
787af7
%{_libdir}/libini_config.so.5
787af7
%{_libdir}/libini_config.so.5.2.1
787af7
787af7
%files -n libini_config-devel
787af7
%defattr(-,root,root,-)
787af7
%{_includedir}/ini_config.h
787af7
%{_includedir}/ini_configobj.h
787af7
%{_includedir}/ini_valueobj.h
787af7
%{_includedir}/ini_comment.h
787af7
%{_includedir}/ini_configmod.h
787af7
%{_libdir}/libini_config.so
787af7
%{_libdir}/pkgconfig/ini_config.pc
787af7
%doc ini/doc/html/
787af7
787af7
787af7
##############################################################################
787af7
# Build steps
787af7
##############################################################################
787af7
787af7
%prep
787af7
%autosetup -S git
787af7
787af7
%build
787af7
autoreconf -ivf
787af7
%configure \
787af7
    --disable-static
787af7
787af7
make %{?_smp_mflags} all docs
787af7
787af7
%check
787af7
make %{?_smp_mflags} check
787af7
787af7
%install
787af7
make install DESTDIR=$RPM_BUILD_ROOT
787af7
787af7
# Remove .la files created by libtool
787af7
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
787af7
787af7
# Remove the example files from the output directory
787af7
# We will copy them directly from the source directory
787af7
# for packaging
787af7
rm -f \
787af7
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/README.* \
787af7
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_example.c \
787af7
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_test.c
787af7
787af7
# Remove document install script. RPM is handling this
787af7
rm -f */doc/html/installdox
787af7
787af7
%clean
787af7
rm -rf $RPM_BUILD_ROOT
787af7
787af7
%changelog
787af7
* Thu Aug 09 2018 Michal Židek <mzidek@redhat.com> - 0.6.1-39
787af7
- Resolves: rhbz#1611714 - [RHEL8-S-BUILD] ding-libs Fails Scratch Build on rhel-8.0
787af7
787af7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-38
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
787af7
787af7
* Sun Feb 04 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.1-37
787af7
- Switch to %%ldconfig_scriptlets
787af7
787af7
* Thu Nov 16 2017 Robbie Harwood <rharwood@redhat.com> - 0.6.1-36
787af7
- INI: Remove definiton of TRACE_LEVEL
787af7
787af7
* Tue Nov 14 2017 Robbie Harwood <rharwood@redhat.com> - 0.6.1-35
787af7
- INI: Silence ini_augment match failures
787af7
787af7
* Wed Oct 04 2017 Lukas Slebodnik <lslebodn@redhat.com> - 0.6.1-34
787af7
- New upstream release 0.6.1
787af7
787af7
* Wed Aug 09 2017 Robbie Harwood <rharwood@redhat.com> - 0.6.0-33
787af7
- Backport INI merge detection support
787af7
- Migrate to autosetup
787af7
787af7
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-32
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
787af7
787af7
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-31
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
787af7
787af7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-30
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
787af7
787af7
* Thu Jun 23 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.6.0-29
787af7
- New upstream release 0.6.0
787af7
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.6.0
787af7
787af7
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-28
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
787af7
787af7
* Wed Aug 26 2015 Robbie Harwood <rharwood@redhat.com> - 0.5.0-27
787af7
- Merge most changes from the upstream spec file
787af7
787af7
* Wed Aug 26 2015 Robbie Harwood <rharwood@redhat.com> - 0.5.0-26
787af7
- New upstream release 0.5.0
787af7
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.5.0
787af7
787af7
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-25
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
787af7
787af7
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-24
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
787af7
787af7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-23
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
787af7
787af7
* Thu May 29 2014 Jakub Hrozek <jhrozek@redhat.com> 0.4.0-22
787af7
- New upstream release 0.4.0
787af7
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.4.0
787af7
787af7
* Sat Jan 18 2014 Peter Robinson <pbrobinson@fedoraproject.org> 0.3.0.1-21
787af7
- Fix FTBFS on rawhide
787af7
- update spec
787af7
787af7
* Fri Sep 27 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-20
787af7
- Merge Doxygen patch from f19 branch to avoid regressions
787af7
787af7
* Fri Sep 27 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-19
787af7
- Apply a patch by Dmitri Pal to strip trailing whitespace
787af7
787af7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0.1-18
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
787af7
787af7
* Thu May 23 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-17
787af7
- Apply patch by Ondrej Kos to bump libtool version info
787af7
787af7
* Fri Apr 05 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-16
787af7
- Fix libiniconfig_devel Requires
787af7
787af7
* Thu Apr 04 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-15
787af7
- Increase the release number to -13 to allow clean upgrade path from
787af7
  0.2 since some of the components kept their version the same in 0.3
787af7
787af7
* Mon Apr 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.3.0.1-3
787af7
- Bumping revision to fix build glitch
787af7
787af7
* Fri Mar 29 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-1
787af7
- New upstream release 0.3.0.1
787af7
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.3.0.1
787af7
- obsoletes patch0001
787af7
787af7
* Thu Mar 28 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0-2
787af7
- Remove cast to allow INI to work on 32bits
787af7
787af7
* Thu Mar 28 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0-1
787af7
- New upstream release 0.3.0
787af7
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.3.0
787af7
787af7
* Mon Mar 25 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.2.91-14
787af7
- include a patch to get rid of autoreconf warnings
787af7
- run autoreconf before configure
787af7
- Resolves: #925258
787af7
787af7
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.91-13
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
787af7
787af7
* Wed Oct 31 2012 Ondrej Kos <okos@redhat.com> - 0.2.91-12
787af7
- Fixes missing devel dependency
787af7
787af7
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.91-11
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
787af7
787af7
* Mon May 28 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-10
787af7
- a bunch of fixes in spec file
787af7
787af7
* Fri May 25 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-9
787af7
- Bumped the release number to 9 for smooth upgrade
787af7
787af7
* Fri May 25 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-1
787af7
- Rebase to 0.3.0beta1, changelog available at
787af7
  https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.2.91
787af7
787af7
* Tue Mar 06 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-8
787af7
- Make path_concat return empty string on ENOBUFS
787af7
787af7
* Tue Mar 06 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-7
787af7
- Fix off-by-one bug in path_concat()
787af7
- Resolves: rhbz#799347 - path_utils:test_path_concat_neg fails on 64-bit big
787af7
                          endians
787af7
787af7
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-6
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
787af7
787af7
* Thu Sep 15 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-5
787af7
- New upstream release 0.1.3
787af7
- Fixes a serious issue with libdhash and large initial hash sizes
787af7
787af7
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-4
787af7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
787af7
787af7
* Fri Oct 15 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.2-3
787af7
- New upsteam release 0.1.2
787af7
- Fixes a serious issue with libdhash where hash_enter() would never update
787af7
- existing entries for a key.
787af7
787af7
* Thu Sep 23 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.1-2
787af7
- Fix invalid source URL
787af7
787af7
* Thu Sep 23 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.1-1
787af7
- Initial release of ding-libs