Initial packaging. accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_ivi_release devel/ivi tizen_3.0 tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m2 tizen_3.0_ivi tizen_ivi_panda tizen_ivi_release accepted/tizen/3.0/ivi/20161011.050515 accepted/tizen/ivi/20140307.003825 accepted/tizen/ivi/20160321.115323 accepted/tizen/ivi/panda/20140403.015940 accepted/tizen/ivi/release/20140315.041445 accepted/tizen/unified/20170309.074747 accepted/tizen/unified/20170310.110239 submit/devel/ivi/20160126.012023 submit/tizen/20140306.233039 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_ivi/20160321.073004 submit/tizen_ivi_panda/20140403.012208 submit/tizen_ivi_release/20140315.041417 submit/tizen_unified/20170308.100418 submit/tizen_unified/20170309.100417 submit/tizen_unified/20170310.104248 tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
authorOssama Othman <ossama.othman@intel.com>
Thu, 6 Mar 2014 22:13:01 +0000 (14:13 -0800)
committerOssama Othman <ossama.othman@intel.com>
Thu, 6 Mar 2014 23:05:48 +0000 (15:05 -0800)
Change-Id: I0f72add2313415467fd1d24424aa791f42785864
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
.gbs.conf [new file with mode: 0644]
.gitignore [new file with mode: 0644]
packaging/log4cxx.changes [new file with mode: 0644]
packaging/log4cxx.manifest [new file with mode: 0644]
packaging/log4cxx.spec [new file with mode: 0644]
src/examples/cpp/console.cpp
src/main/cpp/inputstreamreader.cpp
src/main/cpp/socketoutputstream.cpp
src/main/include/log4cxx/Makefile.am
src/main/include/log4cxx/private/Makefile.am

diff --git a/.gbs.conf b/.gbs.conf
new file mode 100644 (file)
index 0000000..fa9fdc5
--- /dev/null
+++ b/.gbs.conf
@@ -0,0 +1,3 @@
+[general]
+upstream_branch = upstream
+upstream_tag = ${upstreamversion}
diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..c58021f
--- /dev/null
@@ -0,0 +1,28 @@
+*.o
+*.lo
+*.la
+*.so*
+*.a
+*~
+*#*#
+config.log
+config.status
+Makefile
+Makefile.in
+.deps
+INSTALL
+missing
+aclocal.m4
+ar-lib
+autom4te.cache/
+compile
+configure
+depcomp
+install-sh
+libtool
+ltmain.sh
+.libs
+stamp*
+config.*
+core*
+
diff --git a/packaging/log4cxx.changes b/packaging/log4cxx.changes
new file mode 100644 (file)
index 0000000..ef49d86
--- /dev/null
@@ -0,0 +1,4 @@
+* Thu Mar 06 2014 Ossama Othman <ossama.othman@intel.com> 1bba000
+- Initial packaging.
+- Initial import.
+
diff --git a/packaging/log4cxx.manifest b/packaging/log4cxx.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/log4cxx.spec b/packaging/log4cxx.spec
new file mode 100644 (file)
index 0000000..b4bca3d
--- /dev/null
@@ -0,0 +1,58 @@
+Name:          log4cxx
+Version:       0.10.0
+Release:       0
+Summary:       C++ logging framework modeled after log4j
+License:       Apache-2.0
+Group:         Application Framework/Libraries
+URL:           http://logging.apache.org/log4cxx/
+Source:                %name-%version.tar.xz
+Source1001:    log4cxx.manifest
+BuildRequires: autoconf >= 2.64, automake >= 1.11
+BuildRequires: libtool >= 2.2
+BuildRequires: pkgconfig(apr-1)
+BuildRequires: pkgconfig(apr-util-1)
+
+%description
+Apache log4cxx is a logging framework for C++ patterned after Apache
+log4j, which uses Apache Portable Runtime for most platform-specific
+code and should be usable on any platform supported by APR. Apache
+log4cxx is licensed under the Apache License, an open source license
+certified by the Open Source Initiative. 
+
+%package devel
+Summary:       Development files for the log4cxx library
+Group:         Application Framework/Libraries
+Requires:       %name = %version
+Requires:       apr-devel
+Requires:       apr-util-devel
+
+%description devel
+Development files, including headers, for the log4cxx library.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%autogen
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%defattr(-,root,root)
+%{_libdir}/*.so.*
+
+%files devel
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_includedir}/log4cxx/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
\ No newline at end of file
index 6a01d8a..b34e8ed 100644 (file)
@@ -22,6 +22,8 @@
 #include <log4cxx/logmanager.h>
 #include <iostream>
 #include <locale.h>
+#include <cstring>
+#include <cstdio>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
index 52b1c0a..cb45181 100644 (file)
@@ -20,6 +20,7 @@
 #include <log4cxx/helpers/exception.h>
 #include <log4cxx/helpers/pool.h>
 #include <log4cxx/helpers/bytebuffer.h>
+#include <cstring>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
index 185f835..c61eb11 100644 (file)
@@ -19,6 +19,7 @@
 #include <log4cxx/helpers/socketoutputstream.h>
 #include <log4cxx/helpers/socket.h>
 #include <log4cxx/helpers/bytebuffer.h>
+#include <cstring>
 
 using namespace log4cxx;
 using namespace log4cxx::helpers;
index 719c2dd..53e99b0 100644 (file)
@@ -15,7 +15,7 @@
 #
 SUBDIRS = helpers net nt rolling spi varia xml config db private pattern filter
 log4cxxincdir = $(includedir)/log4cxx
-log4cxxinc_HEADERS= $(top_srcdir)/src/main/include/log4cxx/*.h log4cxx.h
+log4cxxinc_HEADERS= $(top_srcdir)/src/main/include/log4cxx/*.h
 DISTCLEANFILES = log4cxx.h
 EXTRA_DIST = log4cxx.hw
 
index 3a896ea..474e31d 100644 (file)
@@ -14,7 +14,7 @@
 # limitations under the License.
 #
 privateincdir = $(includedir)/log4cxx/private
-privateinc_HEADERS= $(top_builddir)/src/main/include/log4cxx/private/*.h log4cxx_private.h
+privateinc_HEADERS= $(top_builddir)/src/main/include/log4cxx/private/*.h
 DISTCLEANFILES = log4cxx_private.h
 EXTRA_DIST = log4cxx_private.hw