Blame SPECS/ding-libs.spec

16f21e
Name: ding-libs
16f21e
Version: 0.6.1
16f21e
Release: 32%{?dist}
16f21e
Summary: "Ding is not GLib" assorted utility libraries
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
URL: https://pagure.io/SSSD/ding-libs
16f21e
Source0: https://releases.pagure.org/SSSD/ding-libs/%{name}-%{version}.tar.gz
16f21e
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
16f21e
16f21e
# If a new upstream release changes some, but not all of these
16f21e
# version numbers, remember to keep the Release tag in order to
16f21e
# allow clean upgrades!
16f21e
%global path_utils_version 0.2.1
16f21e
%global dhash_version 0.5.0
16f21e
%global collection_version 0.7.0
16f21e
%global ref_array_version 0.1.5
16f21e
%global basicobjects_version 0.1.1
16f21e
%global ini_config_version 1.3.1
16f21e
16f21e
### Patches ###
16f21e
Patch0001: 0001-INI-Silence-ini_augment-match-failures.patch
16f21e
Patch0002: 0002-INI-Remove-definiton-of-TRACE_LEVEL.patch
16f21e
16f21e
16f21e
### Downstream only ###
16f21e
Patch999: ding-libs-fake-soname.patch
16f21e
16f21e
### Dependencies ###
16f21e
# ding-libs is a meta-package that will pull in all of its own
16f21e
# sub-packages
16f21e
Requires: libpath_utils = %{path_utils_version}-%{release}
16f21e
Requires: libdhash = %{dhash_version}-%{release}
16f21e
Requires: libcollection = %{collection_version}-%{release}
16f21e
Requires: libref_array = %{ref_array_version}-%{release}
16f21e
Requires: libbasicobjects = %{basicobjects_version}-%{release}
16f21e
Requires: libini_config = %{ini_config_version}-%{release}
16f21e
16f21e
### Build Dependencies ###
16f21e
16f21e
BuildRequires: autoconf
16f21e
BuildRequires: automake
16f21e
BuildRequires: libtool
16f21e
BuildRequires: m4
16f21e
BuildRequires: doxygen
16f21e
BuildRequires: check-devel
16f21e
16f21e
%description
16f21e
A set of helpful libraries used by projects such as SSSD.
16f21e
16f21e
%package devel
16f21e
Summary: Development packages for ding-libs
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
16f21e
# ding-libs is a meta-package that will pull in all of its own
16f21e
# sub-packages
16f21e
Requires: libpath_utils-devel = %{path_utils_version}-%{release}
16f21e
Requires: libdhash-devel = %{dhash_version}-%{release}
16f21e
Requires: libcollection-devel = %{collection_version}-%{release}
16f21e
Requires: libref_array-devel = %{ref_array_version}-%{release}
16f21e
Requires: libbasicobjects-devel = %{basicobjects_version}-%{release}
16f21e
Requires: libini_config-devel = %{ini_config_version}-%{release}
16f21e
16f21e
%description devel
16f21e
A meta-package that pulls in development libraries for libcollection,
16f21e
libdhash, libini_config, librefarray and libpath_utils.
16f21e
16f21e
##############################################################################
16f21e
# Path Utils
16f21e
##############################################################################
16f21e
16f21e
%package -n libpath_utils
16f21e
Summary: Filesystem Path Utilities
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Version: %{path_utils_version}
16f21e
16f21e
%description -n libpath_utils
16f21e
Utility functions to manipulate filesystem pathnames
16f21e
16f21e
%package -n libpath_utils-devel
16f21e
Summary: Development files for libpath_utils
16f21e
Group: Development/Libraries
16f21e
Requires: libpath_utils = %{path_utils_version}-%{release}
16f21e
License: LGPLv3+
16f21e
Version: %{path_utils_version}
16f21e
16f21e
%description -n libpath_utils-devel
16f21e
Utility functions to manipulate filesystem pathnames
16f21e
16f21e
%post -n libpath_utils -p /sbin/ldconfig
16f21e
%postun -n libpath_utils -p /sbin/ldconfig
16f21e
16f21e
%files -n libpath_utils
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING COPYING.LESSER
16f21e
%{_libdir}/libpath_utils.so.*
16f21e
16f21e
%files -n libpath_utils-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/path_utils.h
16f21e
%{_libdir}/libpath_utils.so
16f21e
%{_libdir}/pkgconfig/path_utils.pc
16f21e
%doc path_utils/README.path_utils
16f21e
%doc path_utils/doc/html/
16f21e
16f21e
16f21e
##############################################################################
16f21e
# dhash
16f21e
##############################################################################
16f21e
16f21e
%package -n libdhash
16f21e
Group: Development/Libraries
16f21e
Summary: Dynamic hash table
16f21e
License: LGPLv3+
16f21e
Version: %{dhash_version}
16f21e
16f21e
%description -n libdhash
16f21e
A hash table which will dynamically resize to achieve optimal storage & access
16f21e
time properties
16f21e
16f21e
%package -n libdhash-devel
16f21e
Summary: Development files for libdhash
16f21e
Group: Development/Libraries
16f21e
Requires: libdhash = %{dhash_version}-%{release}
16f21e
License: LGPLv3+
16f21e
Version: %{dhash_version}
16f21e
16f21e
%description -n libdhash-devel
16f21e
A hash table which will dynamically resize to achieve optimal storage & access
16f21e
time properties
16f21e
16f21e
%post -n libdhash -p /sbin/ldconfig
16f21e
%postun -n libdhash -p /sbin/ldconfig
16f21e
16f21e
%files -n libdhash
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING COPYING.LESSER
16f21e
%{_libdir}/libdhash.so.*
16f21e
16f21e
%files -n libdhash-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/dhash.h
16f21e
%{_libdir}/libdhash.so
16f21e
%{_libdir}/pkgconfig/dhash.pc
16f21e
%doc dhash/README.dhash
16f21e
%doc dhash/examples/*.c
16f21e
16f21e
16f21e
##############################################################################
16f21e
# collection
16f21e
##############################################################################
16f21e
%package -n libcollection
16f21e
Summary: Collection data-type for C
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Version: %{collection_version}
16f21e
16f21e
%description -n libcollection
16f21e
A data-type to collect data in a hierarchical structure for easy iteration
16f21e
and serialization
16f21e
16f21e
%package -n libcollection-devel
16f21e
Summary: Development files for libcollection
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Requires: libcollection = %{collection_version}-%{release}
16f21e
Version: %{collection_version}
16f21e
16f21e
%description -n libcollection-devel
16f21e
A data-type to collect data in a hierarchical structure for easy iteration
16f21e
and serialization
16f21e
16f21e
%post -n libcollection -p /sbin/ldconfig
16f21e
%postun -n libcollection -p /sbin/ldconfig
16f21e
16f21e
16f21e
%files -n libcollection
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING
16f21e
%doc COPYING.LESSER
16f21e
%{_libdir}/libcollection.so.*
16f21e
16f21e
%files -n libcollection-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/collection.h
16f21e
%{_includedir}/collection_tools.h
16f21e
%{_includedir}/collection_queue.h
16f21e
%{_includedir}/collection_stack.h
16f21e
%{_libdir}/libcollection.so
16f21e
%{_libdir}/pkgconfig/collection.pc
16f21e
%doc collection/doc/html/
16f21e
16f21e
16f21e
##############################################################################
16f21e
# ref_array
16f21e
##############################################################################
16f21e
16f21e
%package -n libref_array
16f21e
Summary: A refcounted array for C
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Version: %{ref_array_version}
16f21e
16f21e
%description -n libref_array
16f21e
A dynamically-growing, reference-counted array
16f21e
16f21e
%package -n libref_array-devel
16f21e
Summary: Development files for libref_array
16f21e
Group: Development/Libraries
16f21e
Requires: libref_array = %{ref_array_version}-%{release}
16f21e
License: LGPLv3+
16f21e
Version: %{ref_array_version}
16f21e
16f21e
%description -n libref_array-devel
16f21e
A dynamically-growing, reference-counted array
16f21e
16f21e
%post -n libref_array -p /sbin/ldconfig
16f21e
%postun -n libref_array -p /sbin/ldconfig
16f21e
16f21e
%files -n libref_array
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING
16f21e
%doc COPYING.LESSER
16f21e
%{_libdir}/libref_array.so.*
16f21e
16f21e
%files -n libref_array-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/ref_array.h
16f21e
%{_libdir}/libref_array.so
16f21e
%{_libdir}/pkgconfig/ref_array.pc
16f21e
%doc refarray/README.ref_array
16f21e
%doc refarray/doc/html/
16f21e
16f21e
16f21e
##############################################################################
16f21e
# basicobjects
16f21e
##############################################################################
16f21e
16f21e
%package -n libbasicobjects
16f21e
Summary: Basic object types for C
16f21e
Group: Development/Libraries
16f21e
License: GPLv3+
16f21e
Version: %{basicobjects_version}
16f21e
16f21e
%description -n libbasicobjects
16f21e
Basic object types
16f21e
16f21e
%package -n libbasicobjects-devel
16f21e
Summary: Development files for libbasicobjects
16f21e
Group: Development/Libraries
16f21e
License: GPLv3+
16f21e
Version: %{basicobjects_version}
16f21e
Requires: libbasicobjects = %{basicobjects_version}-%{release}
16f21e
16f21e
%description -n libbasicobjects-devel
16f21e
Basic object types
16f21e
16f21e
%post -n libbasicobjects -p /sbin/ldconfig
16f21e
%postun -n libbasicobjects -p /sbin/ldconfig
16f21e
16f21e
%files -n libbasicobjects
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING
16f21e
%doc COPYING.LESSER
16f21e
%{_libdir}/libbasicobjects.so.*
16f21e
16f21e
%files -n libbasicobjects-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/simplebuffer.h
16f21e
%{_libdir}/libbasicobjects.so
16f21e
%{_libdir}/pkgconfig/basicobjects.pc
16f21e
16f21e
##############################################################################
16f21e
# ini_config
16f21e
##############################################################################
16f21e
16f21e
%package -n libini_config
16f21e
Summary: INI file parser for C
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Version: %{ini_config_version}
16f21e
16f21e
%description -n libini_config
16f21e
Library to process config files in INI format into a libcollection data
16f21e
structure
16f21e
16f21e
%package -n libini_config-devel
16f21e
Summary: Development files for libini_config
16f21e
Group: Development/Libraries
16f21e
License: LGPLv3+
16f21e
Requires: libini_config = %{ini_config_version}-%{release}
16f21e
Requires: libcollection-devel = %{collection_version}-%{release}
16f21e
Requires: libref_array-devel = %{ref_array_version}-%{release}
16f21e
Requires: libbasicobjects-devel = %{basicobjects_version}-%{release}
16f21e
Version: %{ini_config_version}
16f21e
16f21e
%description -n libini_config-devel
16f21e
Library to process config files in INI format into a libcollection data
16f21e
structure
16f21e
16f21e
%post -n libini_config -p /sbin/ldconfig
16f21e
%postun -n libini_config -p /sbin/ldconfig
16f21e
16f21e
%files -n libini_config
16f21e
%defattr(-,root,root,-)
16f21e
%doc COPYING
16f21e
%doc COPYING.LESSER
16f21e
%{_libdir}/libini_config.so.*
16f21e
16f21e
%files -n libini_config-devel
16f21e
%defattr(-,root,root,-)
16f21e
%{_includedir}/ini_config.h
16f21e
%{_includedir}/ini_comment.h
16f21e
%{_includedir}/ini_configmod.h
16f21e
%{_includedir}/ini_configobj.h
16f21e
%{_includedir}/ini_valueobj.h
16f21e
%{_libdir}/libini_config.so
16f21e
%{_libdir}/pkgconfig/ini_config.pc
16f21e
%doc ini/doc/html/
16f21e
16f21e
16f21e
##############################################################################
16f21e
# Build steps
16f21e
##############################################################################
16f21e
16f21e
%prep
16f21e
%setup -q
16f21e
16f21e
for p in %patches ; do
16f21e
    %__patch -p1 -i $p
16f21e
done
16f21e
16f21e
%build
16f21e
autoreconf -ivf
16f21e
%configure \
16f21e
    --disable-static
16f21e
16f21e
make %{?_smp_mflags} all docs
16f21e
16f21e
%check
16f21e
make %{?_smp_mflags} check
16f21e
16f21e
%install
16f21e
rm -rf $RPM_BUILD_ROOT
16f21e
16f21e
make install DESTDIR=$RPM_BUILD_ROOT
16f21e
16f21e
# Remove .la files created by libtool
16f21e
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
16f21e
16f21e
# Remove the example files from the output directory
16f21e
# We will copy them directly from the source directory
16f21e
# for packaging
16f21e
rm -f \
16f21e
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/README.* \
16f21e
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_example.c \
16f21e
    $RPM_BUILD_ROOT/usr/share/doc/ding-libs/examples/dhash_test.c
16f21e
16f21e
# Remove document install script. RPM is handling this
16f21e
rm -f */doc/html/installdox
16f21e
16f21e
%clean
16f21e
rm -rf $RPM_BUILD_ROOT
16f21e
16f21e
%changelog
16f21e
* Thu Jun  7 2018 Michal Židek <mzidek@redhat.com> - 0.6.1-32
16f21e
- Previous change in spec file broke the application of downstream only patch
16f21e
- Related: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure
16f21e
16f21e
* Thu Jun  7 2018 Michal Židek <mzidek@redhat.com> - 0.6.1-31
16f21e
- Resolves: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure
16f21e
16f21e
* Thu Jun 07 2018 Michal Židek  <mzidek@redhat.com> - 0.6.1-30
16f21e
- Adopting to use Downstream Helper for bellow BZ backport
16f21e
- Related: rhbz#1507607 - ding-libs: libini_config: `ini_config_augment` reports errors on match failure
16f21e
16f21e
* Mon Jun 27 2016 Michal Židek  <mzidek@redhat.com> - 0.6.1-29
16f21e
- Fix rpmdiff failure for 'Binary stripping'
16f21e
- Resolves: rhbz#1480270 - Rebase ding-libs to the latest upstream release
16f21e
16f21e
* Mon Jun 27 2016 Michal Židek  <mzidek@redhat.com> - 0.6.1-28
16f21e
- Re-add the soname hack
16f21e
- Resolves: rhbz#1480270 - Rebase ding-libs to the latest upstream release
16f21e
16f21e
* Mon Jun 27 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.5.0.1-27
16f21e
- Re-add the soname hack
16f21e
- Resolves: rhbz#1290382 - Rebase ding-libs to the latest available upstream
16f21e
16f21e
* Wed Jun 22 2016 Jakub Hrozek <jhrozek@redhat.com> - 0.5.0.1-26
16f21e
- Resolves: rhbz#1290382 - Rebase ding-libs to the latest available upstream
16f21e
16f21e
* Tue Jun 23 2015 Jakub Hrozek <jhrozek@redhat.com> - 0.5.0.1-25
16f21e
- Resolves: rhbz#1205557 - Include the latest upstream ding-libs release in 7.2
16f21e
- Port the SONAME hack
16f21e
16f21e
* Thu Sep 11 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.4.0.1-24
16f21e
- Fix ABI breakage that affected gssproxy
16f21e
- Related: rhbz#1109856 - Rebase ding-libs to 0.4.0
16f21e
16f21e
* Thu Jul 24 2014 Jakub Hrozek <jhrozek@redhat.com> - 0.4.0.1-23
16f21e
- Resolves: rhbz#1109856 - Rebase ding-libs to 0.4.0
16f21e
16f21e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.3.0.1-22
16f21e
- Mass rebuild 2014-01-24
16f21e
16f21e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.3.0.1-21
16f21e
- Mass rebuild 2013-12-27
16f21e
16f21e
* Fri Sep 27 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-20
16f21e
- Apply a patch by Dmitri Pal to strip trailing whitespace
16f21e
- Resolves: rhbz#1012434 - libiniconfig doesn't trim trailing whitespace
16f21e
16f21e
* Tue Jul 16 2013 Ondrej Kos <okos@redhat.com> - 0.3.0.1-18
16f21e
- Apply patch to stop generating doxygen timestamps
16f21e
- Apply patch to include correct libini_config file
16f21e
16f21e
* Thu May 23 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-17
16f21e
- Apply patch by Ondrej Kos to bump libtool version info
16f21e
16f21e
* Fri Apr 05 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-16
16f21e
- Fix libiniconfig_devel Requires
16f21e
16f21e
* Thu Apr 04 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-15
16f21e
- Increase the release number to -15 to allow clean upgrade path from
16f21e
  0.2 since some of the components kept their version the same in 0.3
16f21e
16f21e
* Mon Apr 01 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.3.0.1-3
16f21e
- Bumping revision to fix build glitch
16f21e
16f21e
* Fri Mar 29 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0.1-1
16f21e
- New upstream release 0.3.0.1
16f21e
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.3.0.1
16f21e
- obsoletes patch0001
16f21e
16f21e
* Thu Mar 28 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0-2
16f21e
- Remove cast to allow INI to work on 32bits
16f21e
16f21e
* Thu Mar 28 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.3.0-1
16f21e
- New upstream release 0.3.0
16f21e
- https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.3.0
16f21e
16f21e
* Mon Mar 25 2013 Jakub Hrozek <jhrozek@redhat.com> - 0.2.91-14
16f21e
- include a patch to get rid of autoreconf warnings
16f21e
- run autoreconf before configure
16f21e
- Resolves: #925258
16f21e
16f21e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.91-13
16f21e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
16f21e
16f21e
* Wed Oct 31 2012 Ondrej Kos <okos@redhat.com> - 0.2.91-12
16f21e
- Fixes missing devel dependency
16f21e
16f21e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.91-11
16f21e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
16f21e
16f21e
* Mon May 28 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-10
16f21e
- a bunch of fixes in spec file
16f21e
16f21e
* Fri May 25 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-9
16f21e
- Bumped the release number to 9 for smooth upgrade
16f21e
16f21e
* Fri May 25 2012 Jan Zeleny <jzeleny@redhat.com> - 0.2.91-1
16f21e
- Rebase to 0.3.0beta1, changelog available at
16f21e
  https://fedorahosted.org/sssd/wiki/Releases/DingNotes-0.2.91
16f21e
16f21e
* Tue Mar 06 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-8
16f21e
- Make path_concat return empty string on ENOBUFS
16f21e
16f21e
* Tue Mar 06 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-7
16f21e
- Fix off-by-one bug in path_concat()
16f21e
- Resolves: rhbz#799347 - path_utils:test_path_concat_neg fails on 64-bit big
16f21e
                          endians
16f21e
16f21e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-6
16f21e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
16f21e
16f21e
* Thu Sep 15 2011 Stephen Gallagher <sgallagh@redhat.com> - 0.1.3-5
16f21e
- New upstream release 0.1.3
16f21e
- Fixes a serious issue with libdhash and large initial hash sizes
16f21e
16f21e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-4
16f21e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
16f21e
16f21e
* Fri Oct 15 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.2-3
16f21e
- New upsteam release 0.1.2
16f21e
- Fixes a serious issue with libdhash where hash_enter() would never update
16f21e
- existing entries for a key.
16f21e
16f21e
* Fri Sep 24 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.1-2
16f21e
- Fix invalid source URL
16f21e
16f21e
* Thu Sep 23 2010 Stephen Gallagher <sgallagh@redhat.com> - 0.1.1-1
16f21e
- Initial release of ding-libs