- Ensure COPYING file is included in package

+ Added add-COPYING.patch

OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/csync2?expand=0&rev=33
This commit is contained in:
Tim Serong 2013-09-26 09:11:18 +00:00 committed by Git OBS Bridge
parent 651e344f83
commit ab1223afaf
3 changed files with 23 additions and 0 deletions

13
add-COPYING.patch Normal file
View File

@ -0,0 +1,13 @@
Index: csync2-2.0+git.1368794815.cf835a7/Makefile.am
===================================================================
--- csync2-2.0+git.1368794815.cf835a7.orig/Makefile.am
+++ csync2-2.0+git.1368794815.cf835a7/Makefile.am
@@ -40,7 +40,7 @@ CLEANFILES = cfgfile_parser.c cfgfile_pa
DISTCLEANFILES = config.status config.h .deps/*.Po stamp-h1 Makefile Makefile.in configure
-docfiles = ChangeLog README AUTHORS
+docfiles = ChangeLog README AUTHORS COPYING
if HAVE_PDFLATEX

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Sep 26 09:07:40 UTC 2013 - tserong@suse.com
- Ensure COPYING file is included in package
+ Added add-COPYING.patch
-------------------------------------------------------------------
Wed Sep 11 05:12:22 UTC 2013 - tserong@suse.com

View File

@ -38,6 +38,8 @@ Patch10: add-ac_prog_cpp.patch
Patch11: fix-csync2_ssl_cert-filename.patch
# PATCH-FIX-UPSTREAM -- fix-sonames.patch tserong@suse.com -- use properly versioned sonames in dlopen()
Patch12: fix-sonames.patch
# PATCH-FIX-UPSTREAM -- add-COPYING.patch tserong@suse.com -- ensure COPYING is present in docfiles and thus %doc
Patch13: add-COPYING.patch
BuildRequires: autoconf
BuildRequires: automake
@ -75,6 +77,7 @@ It is expedient for HA-clusters, HPC-clusters, COWs and server farms.
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
export CFLAGS="%{optflags}"
@ -139,6 +142,7 @@ fi
%{_unitdir}/csync2.socket
%{_unitdir}/csync2@.service
%dir %{_localstatedir}/lib/csync2/
# Using docdir here ensures correct doc file tagging
%{_docdir}/%{name}
%dir %{_sysconfdir}/csync2/
%config(noreplace) %{_sysconfdir}/csync2/csync2.cfg