packages: ding-libs/ding-libs.spec - pldize (sections order, packages order...

glen glen at pld-linux.org
Fri Oct 21 09:11:51 CEST 2011


Author: glen                         Date: Fri Oct 21 07:11:51 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- pldize (sections order, packages order, ghost files, no standard doc packaging, adapter)

---- Files affected:
packages/ding-libs:
   ding-libs.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/ding-libs/ding-libs.spec
diff -u packages/ding-libs/ding-libs.spec:1.1 packages/ding-libs/ding-libs.spec:1.2
--- packages/ding-libs/ding-libs.spec:1.1	Sun Oct 16 07:46:18 2011
+++ packages/ding-libs/ding-libs.spec	Fri Oct 21 09:11:45 2011
@@ -1,86 +1,59 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		collection_version	0.6.1
+%define		dhash_version		0.4.3
+%define		ini_config_version	0.6.2
+%define		path_utils_version	0.2.1
+%define		ref_array_version	0.1.2
 Summary:	"Ding is not GLib" assorted utility libraries
 Name:		ding-libs
 Version:	0.1.3
-Release:	5%{?dist}
-License:	LGPLv3+
+# NOTE: do not decrease Release on Version change, unless ALL subpackage versions have been increased too
+Release:	1
+License:	LGPL v3+
 Group:		Development/Libraries
 URL:		http://fedorahosted.org/sssd/
 Source0:	http://fedorahosted.org/releases/d/i/ding-libs/%{name}-%{version}.tar.gz
 # Source0-md5:	b4f5e03b0b1bd0ab765902a7a466f749
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%global path_utils_version 0.2.1
-%global dhash_version 0.4.3
-%global collection_version 0.6.1
-%global ref_array_version 0.1.2
-%global ini_config_version 0.6.2
-
-### Patches ###
-
-### Dependencies ###
-
-### Build Dependencies ###
-
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	check-devel
 BuildRequires:	doxygen
 BuildRequires:	libtool
 BuildRequires:	m4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 A set of helpful libraries used by projects such as SSSD.
 
-
-##############################################################################
-# Path Utils
-##############################################################################
-
-%package -n libpath_utils
-Summary:	Filesystem Path Utilities
-Version:	%{path_utils_version}
-License:	LGPLv3+
+%package -n libcollection
+Summary:	Collection data-type for C
+Version:	%{collection_version}
+License:	LGPL v3+
 Group:		Development/Libraries
 
-%description -n libpath_utils
-Utility functions to manipulate filesystem pathnames
+%description -n libcollection
+A data-type to collect data in a hierarchical structure for easy
+iteration and serialization
 
-%package -n libpath_utils-devel
-Summary:	Development files for libpath_utils
-Version:	%{path_utils_version}
-License:	LGPLv3+
+%package -n libcollection-devel
+Summary:	Development files for libcollection
+Version:	%{collection_version}
+License:	LGPL v3+
 Group:		Development/Libraries
-Requires:	libpath_utils = %{path_utils_version}-%{release}
-
-%description -n libpath_utils-devel
-Utility functions to manipulate filesystem pathnames
-
-%post -n libpath_utils -p /sbin/ldconfig
-%postun -n libpath_utils -p /sbin/ldconfig
-
-%files -n libpath_utils
-%defattr(644,root,root,755)
-%doc COPYING COPYING.LESSER
-%attr(755,root,root) %{_libdir}/libpath_utils.so.*
-
-%files -n libpath_utils-devel
-%defattr(644,root,root,755)
-%{_includedir}/path_utils.h
-%{_libdir}/libpath_utils.so
-%{_pkgconfigdir}/path_utils.pc
-%doc path_utils/README.path_utils
-%doc path_utils/doc/html/
-
+Requires:	libcollection = %{collection_version}-%{release}
 
-##############################################################################
-# dhash
-##############################################################################
+%description -n libcollection-devel
+A data-type to collect data in a hierarchical structure for easy
+iteration and serialization
 
 %package -n libdhash
 Summary:	Dynamic hash table
 Version:	%{dhash_version}
-License:	LGPLv3+
+License:	LGPL v3+
 Group:		Development/Libraries
 
 %description -n libdhash
@@ -90,7 +63,7 @@
 %package -n libdhash-devel
 Summary:	Development files for libdhash
 Version:	%{dhash_version}
-License:	LGPLv3+
+License:	LGPL v3+
 Group:		Development/Libraries
 Requires:	libdhash = %{dhash_version}-%{release}
 
@@ -98,76 +71,50 @@
 A hash table which will dynamically resize to achieve optimal storage
 & access time properties
 
-%post -n libdhash -p /sbin/ldconfig
-%postun -n libdhash -p /sbin/ldconfig
-
-%files -n libdhash
-%defattr(644,root,root,755)
-%doc COPYING COPYING.LESSER
-%attr(755,root,root) %{_libdir}/libdhash.so.*
-
-%files -n libdhash-devel
-%defattr(644,root,root,755)
-%{_includedir}/dhash.h
-%{_libdir}/libdhash.so
-%{_pkgconfigdir}/dhash.pc
-%doc dhash/README.dhash
-%doc dhash/examples/
-
-
-##############################################################################
-# collection
-##############################################################################
-%package -n libcollection
-Summary:	Collection data-type for C
-Version:	%{collection_version}
-License:	LGPLv3+
+%package -n libini_config
+Summary:	INI file parser for C
+Version:	%{ini_config_version}
+License:	LGPL v3+
 Group:		Development/Libraries
 
-%description -n libcollection
-A data-type to collect data in a hierarchical structure for easy
-iteration and serialization
+%description -n libini_config
+Library to process config files in INI format into a libcollection
+data structure
 
-%package -n libcollection-devel
-Summary:	Development files for libcollection
-Version:	%{collection_version}
-License:	LGPLv3+
+%package -n libini_config-devel
+Summary:	Development files for libini_config
+Version:	%{ini_config_version}
+License:	LGPL v3+
 Group:		Development/Libraries
-Requires:	libcollection = %{collection_version}-%{release}
-
-%description -n libcollection-devel
-A data-type to collect data in a hierarchical structure for easy
-iteration and serialization
-
-%post -n libcollection -p /sbin/ldconfig
-%postun -n libcollection -p /sbin/ldconfig
+Requires:	libini_config = %{ini_config_version}-%{release}
 
+%description -n libini_config-devel
+Library to process config files in INI format into a libcollection
+data structure
 
-%files -n libcollection
-%defattr(644,root,root,755)
-%doc COPYING
-%doc COPYING.LESSER
-%attr(755,root,root) %{_libdir}/libcollection.so.*
+%package -n libpath_utils
+Summary:	Filesystem Path Utilities
+Version:	%{path_utils_version}
+License:	LGPL v3+
+Group:		Development/Libraries
 
-%files -n libcollection-devel
-%defattr(644,root,root,755)
-%{_includedir}/collection.h
-%{_includedir}/collection_tools.h
-%{_includedir}/collection_queue.h
-%{_includedir}/collection_stack.h
-%{_libdir}/libcollection.so
-%{_pkgconfigdir}/collection.pc
-%doc collection/doc/html/
+%description -n libpath_utils
+Utility functions to manipulate filesystem pathnames
 
+%package -n libpath_utils-devel
+Summary:	Development files for libpath_utils
+Version:	%{path_utils_version}
+License:	LGPL v3+
+Group:		Development/Libraries
+Requires:	libpath_utils = %{path_utils_version}-%{release}
 
-##############################################################################
-# ref_array
-##############################################################################
+%description -n libpath_utils-devel
+Utility functions to manipulate filesystem pathnames
 
 %package -n libref_array
 Summary:	A refcounted array for C
 Version:	%{ref_array_version}
-License:	LGPLv3+
+License:	LGPL v3+
 Group:		Development/Libraries
 
 %description -n libref_array
@@ -176,77 +123,13 @@
 %package -n libref_array-devel
 Summary:	Development files for libref_array
 Version:	%{ref_array_version}
-License:	LGPLv3+
+License:	LGPL v3+
 Group:		Development/Libraries
 Requires:	libref_array = %{ref_array_version}-%{release}
 
 %description -n libref_array-devel
 A dynamically-growing, reference-counted array
 
-%post -n libref_array -p /sbin/ldconfig
-%postun -n libref_array -p /sbin/ldconfig
-
-%files -n libref_array
-%defattr(644,root,root,755)
-%doc COPYING
-%doc COPYING.LESSER
-%attr(755,root,root) %{_libdir}/libref_array.so.*
-
-%files -n libref_array-devel
-%defattr(644,root,root,755)
-%{_includedir}/ref_array.h
-%{_libdir}/libref_array.so
-%{_pkgconfigdir}/ref_array.pc
-%doc refarray/README.ref_array
-%doc refarray/doc/html/
-
-
-##############################################################################
-# ini_config
-##############################################################################
-
-%package -n libini_config
-Summary:	INI file parser for C
-Version:	%{ini_config_version}
-License:	LGPLv3+
-Group:		Development/Libraries
-
-%description -n libini_config
-Library to process config files in INI format into a libcollection
-data structure
-
-%package -n libini_config-devel
-Summary:	Development files for libini_config
-Version:	%{ini_config_version}
-License:	LGPLv3+
-Group:		Development/Libraries
-Requires:	libini_config = %{ini_config_version}-%{release}
-
-%description -n libini_config-devel
-Library to process config files in INI format into a libcollection
-data structure
-
-%post -n libini_config -p /sbin/ldconfig
-%postun -n libini_config -p /sbin/ldconfig
-
-%files -n libini_config
-%defattr(644,root,root,755)
-%doc COPYING
-%doc COPYING.LESSER
-%attr(755,root,root) %{_libdir}/libini_config.so.*
-
-%files -n libini_config-devel
-%defattr(644,root,root,755)
-%{_includedir}/ini_config.h
-%{_libdir}/libini_config.so
-%{_pkgconfigdir}/ini_config.pc
-%doc ini/doc/html/
-
-
-##############################################################################
-# Build steps
-##############################################################################
-
 %prep
 %setup -q
 
@@ -254,39 +137,123 @@
 %configure \
 	--disable-static
 
-%{__make} %{?_smp_mflags} all docs
+%{__make} all docs
 
-%check
-make %{?_smp_mflags} check
+%if %{with tests}
+%{__make} check
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 # Remove .la files created by libtool
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
 # Remove the example files from the output directory
 # We will copy them directly from the source directory
 # for packaging
-rm -f \
+%{__rm} \
     $RPM_BUILD_ROOT%{_docdir}/ding-libs/README.* \
     $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_example.c \
     $RPM_BUILD_ROOT%{_docdir}/ding-libs/examples/dhash_test.c
 
 # Remove document install script. RPM is handling this
-rm -f */doc/html/installdox
+%{__rm} -f */doc/html/installdox
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-n libcollection -p /sbin/ldconfig
+%postun	-n libcollection -p /sbin/ldconfig
+
+%post	-n libdhash -p /sbin/ldconfig
+%postun	-n libdhash -p /sbin/ldconfig
+
+%post	-n libini_config -p /sbin/ldconfig
+%postun	-n libini_config -p /sbin/ldconfig
+
+%post	-n libpath_utils -p /sbin/ldconfig
+%postun	-n libpath_utils -p /sbin/ldconfig
+
+%post	-n libref_array -p /sbin/ldconfig
+%postun	-n libref_array -p /sbin/ldconfig
+
+%files -n libcollection
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libcollection.so.*.*.*
+%ghost %{_libdir}/libcollection.so.2
+
+%files -n libcollection-devel
+%defattr(644,root,root,755)
+%doc collection/doc/html
+%{_includedir}/collection.h
+%{_includedir}/collection_tools.h
+%{_includedir}/collection_queue.h
+%{_includedir}/collection_stack.h
+%{_libdir}/libcollection.so
+%{_pkgconfigdir}/collection.pc
+
+%files -n libdhash
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdhash.so.*.*.*
+%{_libdir}/libdhash.so.1
+
+%files -n libdhash-devel
+%defattr(644,root,root,755)
+%doc dhash/README.dhash
+%doc dhash/examples
+%{_includedir}/dhash.h
+%{_libdir}/libdhash.so
+%{_pkgconfigdir}/dhash.pc
+
+%files -n libini_config
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libini_config.so.*.*.*
+%ghost %{_libdir}/libini_config.so.2
+
+%files -n libini_config-devel
+%defattr(644,root,root,755)
+%doc ini/doc/html/
+%{_includedir}/ini_config.h
+%{_libdir}/libini_config.so
+%{_pkgconfigdir}/ini_config.pc
+
+%files -n libpath_utils
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libpath_utils.so.*.*.*
+%ghost %{_libdir}/libpath_utils.so.1
+
+%files -n libpath_utils-devel
+%defattr(644,root,root,755)
+%doc path_utils/README.path_utils
+%doc path_utils/doc/html
+%{_includedir}/path_utils.h
+%{_libdir}/libpath_utils.so
+%{_pkgconfigdir}/path_utils.pc
+
+%files -n libref_array
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libref_array.so.*.*.*
+%ghost %{_libdir}/libref_array.so.1
+
+%files -n libref_array-devel
+%defattr(644,root,root,755)
+%doc refarray/README.ref_array
+%doc refarray/doc/html
+%{_includedir}/ref_array.h
+%{_libdir}/libref_array.so
+%{_pkgconfigdir}/ref_array.pc
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/10/21 07:11:45  glen
+- pldize (sections order, packages order, ghost files, no standard doc packaging, adapter)
+
 Revision 1.1  2011/10/16 05:46:18  aredridel
 - Import from Fedora
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ding-libs/ding-libs.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list