[packages/lsyncd] up to 2.2.3

glen glen at pld-linux.org
Tue Jan 22 14:30:33 CET 2019


commit 98b215b8d236d3b384c228a494d18a6a4df895a4
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Jan 22 15:21:40 2019 +0200

    up to 2.2.3

 lsyncd.spec | 58 +++++++++++++++++++++++++++++-----------------------------
 1 file changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/lsyncd.spec b/lsyncd.spec
index 68ced03..ede5612 100644
--- a/lsyncd.spec
+++ b/lsyncd.spec
@@ -1,59 +1,60 @@
-Summary:	Live Syncing (Mirror) Daemon
+Summary:	Lsyncd - Live Syncing (Mirror) Daemon
 Name:		lsyncd
-Version:	1.26
-Release:	0.5
+Version:	2.2.3
+Release:	0.1
 License:	GPL v2+
 Group:		Networking/Daemons
-Source0:	http://lsyncd.googlecode.com/files/%{name}-%{version}.tar.gz
-# Source0-md5:	ff06aed03a012c84c0526a4f892900fe
+Source0:	https://github.com/axkibe/lsyncd/archive/release-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	25d36b73946bec822d5c7f258262d9f3
 Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	%{name}.logrotate
-URL:		http://code.google.com/p/lsyncd/
+URL:		https://github.com/axkibe/lsyncd
+BuildRequires:	cmake
 BuildRequires:	libxml2-devel
-Requires:	rsync
+Requires:	rsync >= 3.1
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-Lsyncd uses rsync to synchronize local directories with a remote machine
-running rsyncd. Lsyncd watches multiple directories trees through inotify.
-The first step after adding the watches is to rsync all directories with the
-remote host, and then sync single file by collecting the inotify events. So
-lsyncd is a light-weight live mirror solution that should be easy to install
-and use while blending well with your system.
+Lsyncd uses rsync to synchronize local directories with a remote
+machine running rsyncd. Lsyncd watches multiple directories trees
+through inotify. The first step after adding the watches is to rsync
+all directories with the remote host, and then sync single file by
+collecting the inotify events. So lsyncd is a light-weight live mirror
+solution that should be easy to install and use while blending well
+with your system.
 
 %prep
-%setup -q
+%setup -q -n %{name}-release-%{version}
 
 %build
-%configure
+install -d build
+cd build
+%cmake \
+	..
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,logrotate.d,sysconfig},/var/log}
-
-%{__make} install \
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/{rc.d/init.d,logrotate.d,sysconfig},/var/log,%{_mandir}/man1}
+%{__make} -C build install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-:> $RPM_BUILD_ROOT/var/log/%{name}
-
-install lsyncd.conf.xml $RPM_BUILD_ROOT%{_sysconfdir}
+mv $RPM_BUILD_ROOT{%{_prefix}/''man/*.1,%{_mandir}/man1}
 
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
-install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
-install %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
+touch $RPM_BUILD_ROOT/var/log/%{name}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-#%env_update
 /sbin/chkconfig --add lsyncd
 %service lsyncd restart "lsync server"
 
 %preun
-#%env_update
 if [ "$1" = "0" ]; then
 	%service lsyncd stop
 	/sbin/chkconfig --del lsyncd
@@ -61,11 +62,10 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
-%attr(640,root,root) %config(noreplace) %{_sysconfdir}/lsyncd.conf.xml
+%doc README.md
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %attr(755,root,root) %{_bindir}/%{name}
+%{_mandir}/man1/lsyncd.1*
 %attr(640,root,root) %ghost /var/log/%{name}
 %attr(754,root,root) /etc/rc.d/init.d/lsyncd
-%{_mandir}/man1/*.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lsyncd.git/commitdiff/98b215b8d236d3b384c228a494d18a6a4df895a4



More information about the pld-cvs-commit mailing list