[libcprops] Initial check-in.

Philip Prindeville philipp at fedoraproject.org
Sun Jan 29 04:57:20 UTC 2012


commit 5a1367dd28d3ed74049b1bc85c39c4efc0feee0f
Author: Philip A. Prindeville <philipp at redfish-solutions.com>
Date:   Sat Jan 28 21:56:46 2012 -0700

    Initial check-in.

 .gitignore     |    1 +
 libcprops.spec |  120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 122 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..a3b7456 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libcprops-0.1.12.tar.bz2
diff --git a/libcprops.spec b/libcprops.spec
new file mode 100644
index 0000000..d3bb541
--- /dev/null
+++ b/libcprops.spec
@@ -0,0 +1,120 @@
+%global _name cprops
+
+%bcond_without	postgres
+%bcond_without	mysql
+
+Name:		lib%{_name}
+Version:	0.1.12
+Release:	1%{?dist}
+Summary:	C prototyping tools
+
+Group:		System Environment/Libraries
+License:	LGPLv2+
+URL:		http://%{_name}.sourceforge.net/
+Source0:	http://downloads.sourceforge.net/%{_name}/%{name}-%{version}.tar.bz2
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:	autoconf, automake, libtool, openssl-devel, flex, bison
+
+%if %with postgres
+BuildRequires:	postgresql-devel
+%endif
+%if %with mysql
+BuildRequires: mysql-devel
+%endif
+
+
+%description
+the c prototyping tools library provides thread-safe linked list, priority
+queue, hash table, hash list, AVL tree and trie implementations, as well
+as a thread pool and thread management framework, a tcp and http socket
+api, and a dbms abstraction layer.
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+
+%build
+libtoolize
+aclocal
+autoconf
+%configure \
+	--disable-static \
+	--disable-cpsvc \
+	--disable-cpsp \
+	--enable-shared \
+	--with-ssl=%{_prefix} \
+	%{?with_postgres:--with-postgres-includes=%{_includedir}/pgsql} \
+	%{?with_postgres:--with-postgres-libs=%{_libdir}} \
+	%{?with_mysql:--with-mysql-includes=%{_includedir}/mysql} \
+	%{?with_mysql:--with-mysql-libs=%{_libdir}/mysql}
+
+sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
+    -e 's|func_apped|func_append|' \
+    -e 's|CC -shared|CC -shared -Wl,--as-needed|g' \
+    -i libtool
+
+
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%{__install} -p -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__install} -p -c -m 444 ChangeLog COPYING README $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+
+# or mock won't build
+rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post -p /sbin/ldconfig
+
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/*.so.*
+%{_docdir}/%{name}-%{version}/
+
+%files devel
+%defattr(-,root,root,-)
+%{_mandir}/man3/*
+%{_includedir}/%{_name}/
+%exclude %{_libdir}/*.so
+
+
+%changelog
+* Mon Jan 23 2012 Philip Prindeville <philipp at fedoraproject.org> 0.1.12-1
+ - Version bump which fixes "library calling exit()" warning from rpmlint.
+
+* Mon Jan 09 2012 Philip Prindeville <philipp at fedoraproject.org> 0.1.11-1
+ - Fix review comments.
+
+* Fri Dec 09 2011 Philip Prindeville <philipp at fedoraproject.org> 0.1.10-0.1
+ - Enable trie module.
+
+* Thu Nov 10 2011 Philip Prindeville <philipp at fedoraproject.org> svn36-0.1
+ - Fixes for documentation warnings.
+ - Fixes for compiler warnings.
+
+* Sun Oct 30 2011 Philip Prindeville <philipp at fedoraproject.org> 0.1.8-0.1
+ - Initial packaging.
diff --git a/sources b/sources
index e69de29..14bc655 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a46c25654c384d766a79efe7a98f1caf  libcprops-0.1.12.tar.bz2


More information about the scm-commits mailing list