SPECS: libflaim.spec - pldize

glen glen at pld-linux.org
Mon Apr 3 01:28:56 CEST 2006


Author: glen                         Date: Sun Apr  2 23:28:56 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pldize

---- Files affected:
SPECS:
   libflaim.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/libflaim.spec
diff -u SPECS/libflaim.spec:1.1 SPECS/libflaim.spec:1.2
--- SPECS/libflaim.spec:1.1	Mon Apr  3 00:50:40 2006
+++ SPECS/libflaim.spec	Mon Apr  3 01:28:51 2006
@@ -1,95 +1,87 @@
-#
-# spec file for package libflaim (Version 4.8.61)
-#
-# Copyright (c) 2006 Novell, Inc.
-# This file and all modifications and additions to the pristine
-# package are under the same license as the package itself.
-#
-# Please submit bugfixes or comments via http://support.novell.com
-#
-
-# neededforbuild  gcc-c++ libstdc++ libstdc++-devel
-
-BuildRequires:  aaa_base acl attr bash bind-utils bison bzip2 coreutils cpio cpp cracklib cvs cyrus-sasl db devs diffutils e2fsprogs file filesystem fillup findutils flex gawk gdbm-devel gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv klogd less libacl libattr libcom_err libgcc libnscd libselinux libstdc++ libxcrypt libzio m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch permissions popt procinfo procps psmisc pwdutils rcs readline sed strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel autoconf automake binutils gcc gcc-c++ gdbm gettext libstdc++-devel libtool perl rpm
-
-Name:           libflaim
-URL:            http://forge.novell.com/modules/xfmod/project/?flaim
-%define prefix /usr
-Summary:        Embeddable cross-platform database engine
-Version:        4.8.61
-Release:        1
-License:        GPL
-Group:          Development/Libraries/C and C++
-Source:         libflaim-4.8.61.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+# $Revision$, $Date$
+# TODO
+# - cflags & g++
+Summary:	Embeddable cross-platform database engine
+Name:		libflaim
+Version:	4.8.143
+Release:	0.1
+License:	GPL
+Group:		Libraries
+URL:		http://forge.novell.com/modules/xfmod/project/?flaim
+Source0:	http://forgeftp.novell.com/flaim/flaim/downloads/source/%{name}-%{version}.tar.gz
+# Source0-md5:	de23c05fe8ec5ded79ca01700058e5b8
+BuildRequires:	libstdc++-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 FLAIM is an embeddable cross-platform database engine that provides a
-rich, powerful, easy-to-use feature set. It is the database engine used
-by Novell eDirectory. It has proven to be highly scalable, reliable,
-and robust. It is available on a wide variety of 32 bit and 64 bit
-platforms.
-
-
-
-Authors:
---------
-    Daniel Sanders
-    Andrew Hodgkinson
+rich, powerful, easy-to-use feature set. It is the database engine
+used by Novell eDirectory. It has proven to be highly scalable,
+reliable, and robust. It is available on a wide variety of 32 bit and
+64 bit platforms.
 
 %package devel
-Summary:        Embeddable cross-platform database engine
-Group:          Development/Libraries/C and C++
-Provides:       libflaim-devel
+Summary:	Header files for libflaim library
+Summary(pl):	Pliki nagłówkowe biblioteki libflaim
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description devel
-FLAIM is an embeddable cross-platform database engine that provides a
-rich, powerful, easy-to-use feature set. It is the database engine used
-by Novell eDirectory. It has proven to be highly scalable, reliable,
-and robust. It is available on a wide variety of 32 bit and 64 bit
-platforms.
-
+This is the package containing the header files for libflaim library.
 
+%package static
+Summary:	Static libflaim library
+Summary(pl):	Statyczna biblioteka libflaim
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
 
-Authors:
---------
-    Daniel Sanders
-    Andrew Hodgkinson
+%description static
+Static libflaim library.
 
 %prep
 %setup -q
 
 %build
-make lib_dir_name=%{_lib} libs
+%{__make} libs \
+	OSTYPE=%{_os} \
+	HOSTTYPE=%{_arch}
 
 %install
-make rpm_build_root=$RPM_BUILD_ROOT install_prefix=%{prefix} lib_dir_name=%{_lib} install
-rm -rf build
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	OSTYPE=%{_os} \
+	HOSTTYPE=%{_arch} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+ln -s libflaim.so.1.2 $RPM_BUILD_ROOT%{_libdir}/libflaim.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
-%defattr(-,root,root)
+%defattr(644,root,root,755)
 %doc COPYING VERSION
-%{prefix}/%{_lib}/libflaim-4.8.61.so
-%{prefix}/%{_lib}/libflaim-4.8.so
-%{prefix}/%{_lib}/libflaim-4.so
-%{prefix}/%{_lib}/libflaim.so
+%attr(755,root,root) %{_libdir}/libflaim.so.1.2
 
 %files devel
-%{prefix}/%{_lib}/libflaim.a
-%{prefix}/%{_lib}/pkgconfig/libflaim.pc
-%{prefix}/include/flaim.h
+%defattr(644,root,root,755)
+%{_libdir}/libflaim.so
+%{_pkgconfigdir}/libflaim.pc
+%{_includedir}/flaim.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libflaim.a
 
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog -n libflaim
-* Fri Feb 03 2006 - dsanders at novell.com
-- Fixed libflaim.pc to specify includedir and Cflags:
-- Also changed name: to Name:
-- Modified Makefile to use macros for outputting $ and %% characters
-* Fri Feb 03 2006 - dsanders at novell.com
-- Added support for PowerPC architectures
-- Changed so that revision number for RPMs will match version number
-- in SVN repository.
-* Wed Feb 01 2006 - dsanders at novell.com
-- Initial submission
+* %{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  2006/04/02 23:28:51  glen
+- pldize
+
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libflaim.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list