File qoauth-qt5-rpmoptflags.patch of Package qoauth-qt5
diff --git a/qoauth.pro b/qoauth.pro
index f09b3be..c7a18dc 100644
--- a/qoauth.pro
+++ b/qoauth.pro
@@ -1,5 +1,6 @@
TEMPLATE = subdirs
-
+QMAKE_CXXFLAGS += -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
SUBDIRS += src tests
CONFIG += ordered
diff --git a/src/src.pro b/src/src.pro
index aac69b2..121b862 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -9,6 +9,9 @@ equals(QT_MAJOR_VERSION, 4) {
VERSION = 1.0.1
}
+QMAKE_CXXFLAGS = -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
+
TEMPLATE = lib
QT += network
QT -= gui
diff --git a/tests/ft_interface/ft_interface.pro b/tests/ft_interface/ft_interface.pro
index 744d219..16f9011 100644
--- a/tests/ft_interface/ft_interface.pro
+++ b/tests/ft_interface/ft_interface.pro
@@ -1,6 +1,7 @@
TARGET = ft_interface
TEMPLATE = app
-
+QMAKE_CXXFLAGS += -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
DEFINES += UNIT_TEST
include(../../oauth.prf)
diff --git a/tests/tests.pro b/tests/tests.pro
index d582750..b6e32ae 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -1,2 +1,4 @@
+QMAKE_CXXFLAGS += -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
TEMPLATE = subdirs
SUBDIRS += ut_interface ft_interface
diff --git a/tests/ut_interface/ut_interface.pro b/tests/ut_interface/ut_interface.pro
index fb0c36a..c249d22 100644
--- a/tests/ut_interface/ut_interface.pro
+++ b/tests/ut_interface/ut_interface.pro
@@ -1,6 +1,7 @@
TARGET = ut_interface
TEMPLATE = app
-
+QMAKE_CXXFLAGS += -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
DEFINES += UNIT_TEST
include(../../oauth.prf)