File claws-mail-extra-plugins-libytnef_shlib.diff of Package claws-mail-extra-plugins

---
 tnef_parse-0.3.1/src/Makefile.am |   23 +++++++++++++++--------
 1 file changed, 15 insertions(+), 8 deletions(-)

--- tnef_parse-0.3.4/src/Makefile.am.orig
+++ tnef_parse-0.3.4/src/Makefile.am
@@ -45,11 +45,24 @@ plugindir = $(CLAWS_MAIL_PLUGINDIR)
 
 plugin_LTLIBRARIES = tnef_parse.la
 
+lib_LTLIBRARIES = libytnef.la
+libytnef_la_SOURCES = ytnef.c
+
+include_HEADERS = \
+    mapi.h \
+    mapidefs.h \
+    mapitags.h \
+    tnef-errors.h \
+    tnef-types.h \
+    ytnef.h
+
+# set explicitly soname
+libytnef_la_LDFLAGS = $(all_libraries) -version-info 0:0:0
+
 tnef_parse_la_SOURCES = \
          tnef_parse.c \
          tnef_dump.c \
          tnef_dump.h \
-	 ytnef.c \
 	 gettext.h
 
 tnef_parse_la_LDFLAGS = \
@@ -63,13 +76,7 @@ tnef_parse_la_LIBADD = $(plugin_ldadd) $
 	$(GTK_LIBS)
 
 noinst_HEADERS = \
-	mapidefs.h \
-	mapi.h \
-	mapitags.h \
-	tnef_dump.h \
-	tnef-errors.h \
-	tnef-types.h \
-	ytnef.h
+	tnef_dump.h
 
 INCLUDES = \
 	-I$(top_srcdir)/src \
openSUSE Build Service is sponsored by