From f481b3d095897789f8da53e1031afe0aca3c7590a91243731cfe250796a874b1 Mon Sep 17 00:00:00 2001 From: Marguerite Su Date: Thu, 11 Oct 2012 17:54:18 +0000 Subject: [PATCH] Accepting request 137880 from home:MargueriteSu google-glog OBS-URL: https://build.opensuse.org/request/show/137880 OBS-URL: https://build.opensuse.org/package/show/M17N/google-glog?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + glog-0.3.2.tar.gz | 3 ++ google-glog.changes | 12 ++++++ google-glog.spec | 89 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 glog-0.3.2.tar.gz create mode 100644 google-glog.changes create mode 100644 google-glog.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/glog-0.3.2.tar.gz b/glog-0.3.2.tar.gz new file mode 100644 index 0000000..6849f83 --- /dev/null +++ b/glog-0.3.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e47f9437e97cb1621930dea3c557a2801ddac3b5db1a9fd0c3cde399f2c9ccd +size 478666 diff --git a/google-glog.changes b/google-glog.changes new file mode 100644 index 0000000..cf24883 --- /dev/null +++ b/google-glog.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Thu Oct 11 15:15:53 UTC 2012 - i@marguerite.su + +- initial version 0.3.2 + * Clang support. + * Demangler and stacktrace improvement for newer GCCs. + * Now fork(2) doesn't mess up log files. + * Make valgrind happier. + * Reduce warnings for more -W options. + * Provide a workaround for ERROR defined by windows.h. + + diff --git a/google-glog.spec b/google-glog.spec new file mode 100644 index 0000000..e4e57b1 --- /dev/null +++ b/google-glog.spec @@ -0,0 +1,89 @@ +# +# spec file for package google-glog +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: google-glog +Version: 0.3.2 +Release: 0 +License: BSD-3-Clause +Summary: Logging library for C++ +Url: http://code.google.com/p/google-glog/ +Group: System/Libraries +Source: glog-%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +The glog library implements application-level logging. +This library provides logging APIs based on C++-style +streams and various helper macros. + +%package -n libglog0 +Summary: Logging library for C++ +Group: System/Libraries + +%description -n libglog0 +The glog library implements application-level logging. +This library provides logging APIs based on C++-style +streams and various helper macros. + +%package -n glog-devel +Summary: Header files for libglog0 +Group: Development/Libraries/C and C++ +Requires: libglog0 = %{version} + +%description -n glog-devel +The glog library implements application-level logging. +This library provides logging APIs based on C++-style +streams and various helper macros. + +This package provides development files for libglog0. + + + +%prep +%setup -q -n glog-%{version} + +%build +./configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_docdir} +make %{?_smp_mflags} + +%install +%make_install + +rm -rf %{buildroot}%{_libdir}/*.{a,la} + +mkdir -p %{buildroot}%{_docdir}/%{name} +mv %{buildroot}%{_datadir}/doc/glog-%{version}/* %{buildroot}%{_docdir}/%{name}/ + +%post -n libglog0 -p /sbin/ldconfig + +%postun -n libglog0 -p /sbin/ldconfig + +%files -n libglog0 +%defattr(-,root,root) +%{_libdir}/libglog.so.0 +%{_libdir}/libglog.so.0.0.0 +%{_docdir}/%{name} + +%files -n glog-devel +%defattr(-,root,root) +%{_includedir}/glog/ +%{_libdir}/libglog.so +%{_libdir}/pkgconfig/libglog.pc + +%changelog +