File libopflex.spec of Package libopflex
#
# spec file for package libopflex
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
Version: 1.3.0
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
Source: https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/opflex/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: libuv-devel
BuildRequires: openssl-devel
BuildRequires: pkg-config
BuildRequires: rapidjson-devel <= 1.0.2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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
autoreconf -fvi
%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}
%defattr(-,root,root)
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/opflex/
%doc %{_docdir}/libopflex/
%changelog