7 Star 6 Fork 1

LinRaise/Log4cplus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log4cplus.spec 2.39 KB
一键复制 编辑 原始数据 按行查看 历史
Name: log4cplus
Version: 3.0.0
Release: 1
Summary: log4cplus, C++ logging library
License: Apache
Group: Development/Libraries
Vendor: log4cplus project
Packager: Yusuke SATO <[email protected]>
Url: http://log4cplus.sourceforge.net/
Source: %name-%version.tar.gz
Prefix: %_prefix
BuildRoot: %_tmppath/%name-%version-root
%description
log4cplus is a simple to use C++ logging API providing thread-safe,
flexible, and arbitrarily granular control over log management and
configuration. It is modeled after the Java log4j API.
%package devel
Summary: log4cplus headers, static libraries
Group: Development/Libraries
Requires: %name = %version
%description devel
log4cplus is a simple to use C++ logging API providing thread-safe,
flexible, and arbitrarily granular control over log management and
configuration. It is modeled after the Java log4j API.
%prep
rm -rf $RPM_BUILD_ROOT
%setup
./configure --prefix=%{prefix} --libdir=%{_libdir} --with-working-locale CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mkdir -p $RPM_BUILD_ROOT%{prefix}/include/
cp -rp include/log4cplus $RPM_BUILD_ROOT%{prefix}/include/
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/stamp-*
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/*.in
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/stamp-*
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/macosx.h
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/win32.h
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/windowsh-inc.h
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/internal/cygwin-win32.h
rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/thread/impl/syncprims-win32.h
find %{buildroot} -name .svn -type d -exec find '{}' -delete \;
find %{buildroot} -name "*.in" -delete
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
%attr(755,root,root) %_libdir/lib*.so*
%attr(644,root,root) %_libdir/*.la
%files devel
%defattr(-,root,root,755)
%prefix/include/log4cplus/*.h
%prefix/include/log4cplus/helpers/*.h
%prefix/include/log4cplus/spi/*.h
%prefix/include/log4cplus/boost/*.hxx
%prefix/include/log4cplus/config.hxx
%prefix/include/log4cplus/config/defines.hxx
%prefix/include/log4cplus/internal/*.h
%prefix/include/log4cplus/thread/impl/*.h
%prefix/include/log4cplus/thread/*.h
%attr(644,root,root)
%_libdir/*.a
%_libdir/pkgconfig/log4cplus.pc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/LinRaise/Log4cplus.git
[email protected]:LinRaise/Log4cplus.git
LinRaise
Log4cplus
Log4cplus
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385