!1 init package
From: @pokehuang Reviewed-by: @disnight,@small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
036df3dc80
BIN
glog-0.3.5.tar.gz
Normal file
BIN
glog-0.3.5.tar.gz
Normal file
Binary file not shown.
49
glog.spec
Normal file
49
glog.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Name: glog
|
||||||
|
Version: 0.3.5
|
||||||
|
Release: 1
|
||||||
|
Summary: A C++ application logging library
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/google/glog
|
||||||
|
Source0: https://github.com/google/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildRequires: gcc-c++ gcc autoconf gflags-devel >= 2.1.0
|
||||||
|
Requires: gflags gflags-devel >= 2.1.0
|
||||||
|
%description
|
||||||
|
Google glog is a library that implements application-level
|
||||||
|
logging. This library provides logging APIs based on C++-style
|
||||||
|
streams and various helper macros.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
%description devel
|
||||||
|
The %{name}-devel package contains libraries and header files for
|
||||||
|
developing applications that use %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup
|
||||||
|
|
||||||
|
%build
|
||||||
|
autoconf
|
||||||
|
%configure --disable-static
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
|
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc ChangeLog COPYING README
|
||||||
|
%{_libdir}/libglog.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%doc doc/designstyle.css doc/glog.html
|
||||||
|
%{_libdir}/libglog.so
|
||||||
|
%{_libdir}/pkgconfig/libglog.pc
|
||||||
|
%dir %{_includedir}/glog
|
||||||
|
%{_includedir}/glog/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Sep 2 2020 huangyangke <huangyangke@huawei.com> - 0.3.5-1
|
||||||
|
- package init
|
||||||
Loading…
x
Reference in New Issue
Block a user