2016-04-21 09:12:47 +00:00
|
|
|
#
|
|
|
|
# spec file for package libopflex
|
|
|
|
#
|
2017-10-04 14:59:32 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-04-21 09:12:47 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define libsoname libopflex0
|
|
|
|
Name: libopflex
|
2018-12-18 12:09:36 +00:00
|
|
|
Version: 1.7.0
|
2016-04-21 09:12:47 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A framework for developing opflex-based policy agents
|
|
|
|
License: EPL-1.0
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Url: https://wiki.opendaylight.org/view/OpFlex:Main
|
2016-04-21 18:04:15 +00:00
|
|
|
Source: https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/opflex/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2018-12-18 12:09:36 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-compilation https://git.opendaylight.org/gerrit/#/c/78469/
|
|
|
|
Patch0: 0001-Fix-compilation-problem-when-using-cmake.patch
|
2016-04-21 09:12:47 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libuv-devel
|
|
|
|
BuildRequires: openssl-devel
|
2017-10-04 14:59:32 +00:00
|
|
|
BuildRequires: pkgconfig
|
2016-04-21 09:12:47 +00:00
|
|
|
BuildRequires: rapidjson-devel >= 1.0
|
2017-10-04 14:59:32 +00:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
BuildRequires: libboost_test-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
2016-04-21 09:12:47 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The OpFlex project seeks to provide reference implementations of the OpFlex
|
|
|
|
protocol, which is a protocol for implementing a distributed control system
|
|
|
|
based on a declarative policy model.
|
|
|
|
|
|
|
|
%package -n %{libsoname}
|
|
|
|
Summary: A framework for developing opflex-based policy agents
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %{libsoname}
|
|
|
|
The OpFlex project seeks to provide reference implementations of the OpFlex
|
|
|
|
protocol, which is a protocol for implementing a distributed control system
|
|
|
|
based on a declarative policy model.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development libraries for libopflex
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libsoname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The OpFlex project seeks to provide reference implementations of the OpFlex
|
|
|
|
protocol, which is a protocol for implementing a distributed control system
|
|
|
|
based on a declarative policy model.
|
|
|
|
This package contains the development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-12-18 12:09:36 +00:00
|
|
|
%patch0 -p1
|
2016-04-21 09:12:47 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --docdir=%{_docdir}/%{name} --disable-assert --disable-tests-make-all
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
rm %{buildroot}/%{_libdir}/libopflex.a
|
|
|
|
rm %{buildroot}/%{_libdir}/libopflex.la
|
|
|
|
|
|
|
|
%post -n %{libsoname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libsoname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libsoname}
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_includedir}/opflex/
|
|
|
|
%doc %{_docdir}/libopflex/
|
|
|
|
|
|
|
|
%changelog
|