Blame SPECS/ding-libs.spec

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