Replacing hard names with macros, returning macro prever and commenting its definition in spec file
This commit is contained in:
parent
b91e94c599
commit
401c7ccd5f
@ -1,13 +1,13 @@
|
||||
%global prever rc3
|
||||
#%%global prever rc3
|
||||
|
||||
Name: log4cplus
|
||||
Version: 1.2.0
|
||||
Release: 1%{?dist}
|
||||
Release: 1.0%{?prever:.%{prever}}%{?dist}
|
||||
Summary: Logging Framework for C++
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://sourceforge.net/projects/log4cplus
|
||||
Source0: http://downloads.sourceforge.net/log4cplus/log4cplus-%{version}.tar.xz
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}%{?prever:-%{prever}}.tar.xz
|
||||
Group: System Environment/Libraries
|
||||
|
||||
%description
|
||||
@ -18,14 +18,14 @@ modeled after the Java log4j API.
|
||||
%package devel
|
||||
Summary: Development files for log4cplus C++ logging framework
|
||||
Group: Development/Libraries
|
||||
Requires: log4cplus = %{version}-%{release}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
This package contains headers and libraries needed to develop applications
|
||||
using log4cplus logging framework.
|
||||
|
||||
%prep
|
||||
%setup -q -n log4cplus-%{version}
|
||||
%setup -q %{?prever:-n %{name}-%{version}-%{prever}}
|
||||
|
||||
%build
|
||||
export CFLAGS=$RPM_OPT_FLAGS
|
||||
|
Loading…
Reference in New Issue
Block a user