build fixes for rpm
This commit is contained in:
@@ -5,14 +5,17 @@ Release: @BUILD_NUMBER@%{?dist}
|
|||||||
License: LGPL
|
License: LGPL
|
||||||
Group: Development/Libraries/C++
|
Group: Development/Libraries/C++
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildRequires: subversion, automake, autoconf, doxygen, graphviz
|
BuildRequires: subversion, automake, autoconf, doxygen
|
||||||
|
%if 0%{?fedora} != 20
|
||||||
|
BuildRequires: graphviz
|
||||||
|
%fi
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version}
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version}
|
||||||
BuildRequires: pkgconfig, cppunit-devel, redhat-lsb
|
BuildRequires: pkgconfig, cppunit-devel, redhat-lsb
|
||||||
%else%if 0%{?suse_version} || 0%{?sles_version}
|
%else%if 0%{?suse_version} || 0%{?sles_version}
|
||||||
BuildRequires: pkg-config, libcppunit-devel, lsb-release
|
BuildRequires: pkg-config, libcppunit-devel, lsb-release
|
||||||
%endif%endif
|
%endif%endif
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
%if ! ( 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version} )
|
||||||
BuildRequires: mscgen
|
BuildRequires: mscgen
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -24,7 +27,7 @@ This package contains only the shared libraries required at runtime.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
./configure --prefix=/usr --docdir=/usr/share/doc/packages/@PACKAGE_NAME@ --libdir=/usr/%_lib
|
./configure --prefix=/usr --docdir=/usr/share/doc/packages/@PACKAGE_NAME@ --libdir=/usr/%_lib
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
make
|
||||||
|
Reference in New Issue
Block a user