From: Ossama Othman Date: Thu, 6 Mar 2014 22:13:01 +0000 (-0800) Subject: Initial packaging. X-Git-Tag: accepted/tizen/3.0/ivi/20161011.050515^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fdevel%2Fivi;p=profile%2Fivi%2Flog4cxx.git Initial packaging. Change-Id: I0f72add2313415467fd1d24424aa791f42785864 Signed-off-by: Ossama Othman --- diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 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 index 0000000..c58021f --- /dev/null +++ b/.gitignore @@ -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 index 0000000..ef49d86 --- /dev/null +++ b/packaging/log4cxx.changes @@ -0,0 +1,4 @@ +* Thu Mar 06 2014 Ossama Othman 1bba000 +- Initial packaging. +- Initial import. + diff --git a/packaging/log4cxx.manifest b/packaging/log4cxx.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/log4cxx.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/log4cxx.spec b/packaging/log4cxx.spec new file mode 100644 index 0000000..b4bca3d --- /dev/null +++ b/packaging/log4cxx.spec @@ -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 diff --git a/src/examples/cpp/console.cpp b/src/examples/cpp/console.cpp index 6a01d8a..b34e8ed 100644 --- a/src/examples/cpp/console.cpp +++ b/src/examples/cpp/console.cpp @@ -22,6 +22,8 @@ #include #include #include +#include +#include using namespace log4cxx; using namespace log4cxx::helpers; diff --git a/src/main/cpp/inputstreamreader.cpp b/src/main/cpp/inputstreamreader.cpp index 52b1c0a..cb45181 100644 --- a/src/main/cpp/inputstreamreader.cpp +++ b/src/main/cpp/inputstreamreader.cpp @@ -20,6 +20,7 @@ #include #include #include +#include using namespace log4cxx; using namespace log4cxx::helpers; diff --git a/src/main/cpp/socketoutputstream.cpp b/src/main/cpp/socketoutputstream.cpp index 185f835..c61eb11 100644 --- a/src/main/cpp/socketoutputstream.cpp +++ b/src/main/cpp/socketoutputstream.cpp @@ -19,6 +19,7 @@ #include #include #include +#include using namespace log4cxx; using namespace log4cxx::helpers; diff --git a/src/main/include/log4cxx/Makefile.am b/src/main/include/log4cxx/Makefile.am index 719c2dd..53e99b0 100644 --- a/src/main/include/log4cxx/Makefile.am +++ b/src/main/include/log4cxx/Makefile.am @@ -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 diff --git a/src/main/include/log4cxx/private/Makefile.am b/src/main/include/log4cxx/private/Makefile.am index 3a896ea..474e31d 100644 --- a/src/main/include/log4cxx/private/Makefile.am +++ b/src/main/include/log4cxx/private/Makefile.am @@ -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