LINBIT / csync2

file synchronization tool using librsync and current state databases
GNU General Public License v2.0
145 stars 39 forks source link

SPEC file error on DOC documents #18

Open goniomdq opened 4 years ago

goniomdq commented 4 years ago

Building rpm from supplied SPEC file fails due to missing doc file. RPM build errors: File not found: /root/rpmbuild/BUILDROOT/csync2-2.0-1.x86_64/usr/share/doc/csync2/README File not found: /root/rpmbuild/BUILDROOT/csync2-2.0-1.x86_64/usr/share/doc/csync2/AUTHORS

The files exist, but the names contain the 'adoc' extension. Adding '.adoc' to the file names in the spec file fixes the issue.

$ diff -u SPECS/csync2.spec.old SPECS/csync2.spec
--- SPECS/csync2.spec.old       2019-11-17 18:57:37.342151054 -0500
+++ SPECS/csync2.spec   2019-11-17 18:54:17.517245168 -0500
@@ -82,8 +82,8 @@
 %doc %{_mandir}/man1/csync2.1.gz
 %doc %{_docdir}/csync2/csync2.adoc
 %doc %{_docdir}/csync2/ChangeLog
-%doc %{_docdir}/csync2/README
-%doc %{_docdir}/csync2/AUTHORS
+%doc %{_docdir}/csync2/README.adoc
+%doc %{_docdir}/csync2/AUTHORS.adoc
 %config(noreplace) %{_sysconfdir}/xinetd.d/csync2
 %config(noreplace) %{_sysconfdir}/csync2.cfg

Thanks