Name: stc-manager
Summary: STC(Smart Traffic Control) manager
-Version: 0.0.33
+Version: 0.0.43
Release: 0
Group: Network & Connectivity/Other
License: Apache-2.0
BuildRequires: python
BuildRequires: python-xml
+%if 0%{?gtests:1}
+BuildRequires: pkgconfig(gmock)
+%endif
+
%description
A smart traffic control manager to manage traffic counting and bandwidth limitation
-DENABLE_DATABASE=%{enable_database} \
-DDATABASE_FULL_PATH=%{database_full_path} \
-DENABLE_STATISTICS=%{enable_statistics} \
- -DENABLE_RESTRICTION=%{enable_restriction}
+ -DENABLE_RESTRICTION=%{enable_restriction} \
+ -DBUILD_GTESTS=%{?gtests:1}%{!?gtests:0} \
+ -DBUILD_GCOV=%{?gcov:1}%{!?gcov:0}
make %{?_smp_mflags}
%config(noreplace) %attr(660, root, root) %{database_full_path}-journal
%endif
+%if 0%{?gtests:1}
+%{_bindir}/gtest*
+%endif
+
%files plugin
%manifest %{name}.manifest
%attr(644, -,-) %{_datadir}/icons/*.png