Ai
1 Star 0 Fork 0

pibot/log4cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log4cpp.spec.in 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
pibot 提交于 2022-08-20 15:28 +08:00 . init v1.1.3
%define RELEASE 4
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define lib_name log4cpp
%define manualdir /var/www/html/manual/%{name}
Name: @PACKAGE_TARNAME@
Version: @PACKAGE_VERSION@
Release: %rel
Summary: Log for C++
License: LGPL
Group: Development/Libraries
Vendor: Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
Packager: Cedric Le Goater <cedric@legoater.com>
Url: http://log4cpp.sourceforge.net/
Source: ftp://download.sourceforge.net/pub/sourceforge/log4cpp/%name-%version.tar.gz
Prefix: %_prefix
BuildRoot: %_tmppath/%name-%version-root
%description
Log for C++ is a library of classes for flexible logging to files, syslog,
and other destinations. It is modeled after the Log for Java library and
stays as close to its API as is reasonable.
%package devel
Summary: development tools for Log for C++
Group: Development/Libraries
Requires: %name = %version
%description devel
The %name-devel package contains the static libraries and header files
needed for development with %name.
%package doc
Summary: HTML formatted API documention for Log for C++
Group: Development/Libraries
#can't set doc package to noarch without setting the others as well.
#BuildArch: noarch
%{!?_without_doxygenrpm:BuildRequires: doxygen}
%description doc
The %name-doc package contains HTML formatted API documention generated by
the popular doxygen documentation generation tool.
%prep
%{__rm} -rf $RPM_BUILD_ROOT
%setup
CC=%{__cc} CXX=%{__cxx} ./configure --prefix=%{prefix} --enable-doxygen
%build
%{__make}
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} prefix=$RPM_BUILD_ROOT%{prefix}docdir=$RPM_BUILD_ROOT/%{manualdir} install
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%ifnos solaris2.8 solaris2.9 solaris2.10
%post -p /sbin/ldconfig
%endif
%post devel
if test "x$RPM_INSTALL_PREFIX0" != "x" ; then
%{__perl} -pi -e"s|^libdir='[^\']*'|libdir='$RPM_INSTALL_PREFIX0/lib'|" $RPM_INSTALL_PREFIX0/lib/liblog4cpp.la
%{__perl} -pi -e"s|^prefix=\"[^\"]*\"|prefix=\"$RPM_INSTALL_PREFIX0\"|" $RPM_INSTALL_PREFIX0/bin/log4cpp-config
fi
%ifnos solaris2.8 solaris2.9 solaris2.10
%postun -p /sbin/ldconfig
%endif
%files
%defattr(-,root,root,755)
%attr(755,root,root) %prefix/lib/lib*.so.*
%doc AUTHORS COPYING INSTALL NEWS README THANKS ChangeLog
%files devel
%defattr(-,root,root,755)
%prefix/include/*
%prefix/man/*
%attr(755,root,root) %prefix/bin/log4cpp-config
%attr(755,root,root) %prefix/lib/lib*.so
%attr(644,root,root) %prefix/lib/*.*a
%attr(644,root,root) %prefix/lib/pkgconfig/log4cpp.pc
%attr(644,root,root) %prefix/share/aclocal/*.m4
%files doc
%defattr(-,root,root)
%doc %{manualdir}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pibot/log4cpp.git
git@gitee.com:pibot/log4cpp.git
pibot
log4cpp
log4cpp
master

搜索帮助