Commit 27dc66df authored by Pavel Vainerman's avatar Pavel Vainerman

Тестовая сборка с rrd, модифицировал spec-файл.

parent 1d64f14c
......@@ -2,12 +2,13 @@
%def_enable mysql
%def_enable sqlite
%def_enable python
%def_enable rrd
%define oname uniset
Name: libuniset
Version: 1.7
Release: alt2
Release: alt3
Summary: UniSet - library for building distributed industrial control systems
......@@ -33,6 +34,10 @@ BuildRequires: libMySQL-devel
BuildRequires: libsqlite3-devel
%endif
%if_enabled rrd
BuildRequires: librrd-devel
%endif
%if_enabled python
BuildRequires: python-devel
BuildRequires(pre): rpm-build-python
......@@ -178,7 +183,7 @@ Libraries needed to develop for uniset extensions
%build
%autoreconf
%configure %{subst_enable doc} %{subst_enable mysql} %{subst_enable sqlite} %{subst_enable python}
%configure %{subst_enable doc} %{subst_enable mysql} %{subst_enable sqlite} %{subst_enable python} %{subst_enable rrd}
%make
%install
......@@ -294,6 +299,12 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%_libdir/libUniSetUNetUDP*.so.*
#%_libdir/libUniSetSMDBServer*.so.*
%if_enabled rrd
%_bindir/%oname-rrd*
%_libdir/libUniSetRRD*.so.*
%endif
%files extensions-devel
%_includedir/%oname/extensions/
%_libdir/*Extensions.so
......@@ -314,11 +325,18 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
%_pkgconfigdir/libUniSetNetwork*.pc
%_pkgconfigdir/libUniSetUNet*.pc
%if_enabled rrd
%_pkgconfigdir/libUniSetRRD*.pc
%endif
#%_pkgconfigdir/libUniSetSMDBServer.pc
#%_pkgconfigdir/libUniSet*.pc
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Tue Dec 10 2013 Pavel Vainerman <pv@altlinux.ru> 1.7-alt3
- add RRDServer
* Fri Dec 06 2013 Pavel Vainerman <pv@altlinux.ru> 1.7-alt2
- (unetexchange): add 'prefix'
......
if DISABLE_RRD
else
bin_PROGRAMS = @PACKAGE@-rrdserver
RRD_VER=@LIBVER@
......@@ -31,3 +35,5 @@ pkgconfig_DATA = libUniSetRRDServer.pc
all-local:
ln -sf ../RRDServer/$(devel_include_HEADERS) ../include
endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment