commit 7b2640907bf21a3e6f3d5e31bc17950f53e6ba04
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Fri Jun 17 00:26:15 2016 +0300

    user/group deps

 lizardfs.spec | 27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)
---
diff --git a/lizardfs.spec b/lizardfs.spec
index 75c5606..21aedf8 100644
--- a/lizardfs.spec
+++ b/lizardfs.spec
@@ -14,15 +14,23 @@ Source0:    
https://github.com/lizardfs/lizardfs/archive/v.%{version}.tar.gz
 # Source0-md5: 71766d18a5066506e54d952ab6056bd3
 Patch0:                %{name}-cmake_fix.patch
 URL:           https://github.com/lizardfs/lizardfs
-BuildRequires: /usr/bin/a2x                    #
+BuildRequires: /usr/bin/a2x
 BuildRequires: asciidoc
 BuildRequires: boost-devel
 BuildRequires: cmake >= 3.4.0
 BuildRequires: docbook-dtd45-xml
 BuildRequires: libfuse-devel
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.202
 BuildRequires: zlib-devel
-# Requires:
+Requires(postun):      /usr/sbin/groupdel
+Requires(postun):      /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Provides:      group(mfs)
+Provides:      user(mfs)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,7 +43,6 @@ LizardFS is jest niezawodnym, skalowalnym i efektywnym 
rozproszonym
 systemem plików. Rozkłada dane na rózne fizyczne serwery, dająć
 użytkownikowi końcowemu widok pojedynczego systemu plików.
 
-
 %package master
 Summary:       Master/shadow metadata server
 Group:         Applications
@@ -44,7 +51,6 @@ Requires:     %{name} = %{version}-%{release}
 %description master
 Master/shadow metadata server
 
-
 %package chunkserver
 Summary:       Chunk server
 Group:         Applications
@@ -53,7 +59,6 @@ Requires:     %{name} = %{version}-%{release}
 %description chunkserver
 Chunk server
 
-
 %package metalogger
 Summary:       Metalogger
 Group:         Applications
@@ -62,7 +67,6 @@ Requires:     %{name} = %{version}-%{release}
 %description metalogger
 Metalogger
 
-
 %package cgiserver
 Summary:       CGI server
 Group:         Applications
@@ -107,20 +111,15 @@ rm -rf $RPM_BUILD_ROOT
 %groupadd -g 282 mfs
 %useradd -u 282 -d /var/lib/%{name} -g mfs -c "XXX User" %{name}
 
-%post
-
-%preun
-
 %postun
 if [ "$1" = "0" ]; then
-        %userremove mfs
-        %groupremove mfs
+       %userremove mfs
+       %groupremove mfs
 fi
 
 %files
 %defattr(644,root,root,755)
 %doc doc COPYING README UPGRADE NEWS INSTALL
-## %attr(755,root,root) %{_bindir}/*
 %dir %{_sysconfdir}/mfs
 %dir %attr(750,root,root) /var/lib/%{name}
 %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/mfs/globaliolimits.cfg.dist
@@ -186,5 +185,3 @@ fi
 %attr(755,root,root) %{_sbindir}/mfscgiserv
 %{_datadir}/mfscgi/
 # %dir %attr(750,mfs,mfs) /var/lib/%{name}/cgiserver
-
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lizardfs.git/commitdiff/093a7d1ae4dcdaea54d9b4f266c994482137ca35

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to