File qoauth-rpmoptflags.patch of Package qoauth

Index: qoauth-1.0.1/qoauth.pro
===================================================================
--- qoauth-1.0.1.orig/qoauth.pro
+++ qoauth-1.0.1/qoauth.pro
@@ -1,5 +1,6 @@
 TEMPLATE = subdirs
-
+QMAKE_CXXFLAGS += -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
 SUBDIRS += src tests
 
 CONFIG += ordered
Index: qoauth-1.0.1/src/src.pro
===================================================================
--- qoauth-1.0.1.orig/src/src.pro
+++ qoauth-1.0.1/src/src.pro
@@ -1,7 +1,8 @@
 TARGET = qoauth
 DESTDIR = ../lib
 win32:DLLDESTDIR = $${DESTDIR}
-
+QMAKE_CXXFLAGS = -fvisibility-inlines-hidden $$(RPM_OPT_FLAGS)
+QMAKE_STRIP = true
 VERSION = 1.0.1
 
 TEMPLATE = lib
Index: qoauth-1.0.1/tests/ft_interface/ft_interface.pro
===================================================================
--- qoauth-1.0.1.orig/tests/ft_interface/ft_interface.pro
+++ qoauth-1.0.1/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)
 
Index: qoauth-1.0.1/tests/tests.pro
===================================================================
--- qoauth-1.0.1.orig/tests/tests.pro
+++ qoauth-1.0.1/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
Index: qoauth-1.0.1/tests/ut_interface/ut_interface.pro
===================================================================
--- qoauth-1.0.1.orig/tests/ut_interface/ut_interface.pro
+++ qoauth-1.0.1/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)
 
openSUSE Build Service is sponsored by