1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
| Name: fdsRsync Version: 1.0.0 Release: 0 Summary: call fds on the method of rsync.
Group: #### License: Commercial URL: #### Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) 大专栏 rpmbuild 实践r/>#BuildRequires: #Requires: Packager: guoqiang.ding Vendor: ###
%define _prefix /usr/local/%{name}
%description this is a rpm for fdsRsync.
#=> preprocess. %prep %setup -q
%build mkdir -p $RPM_BUILD_ROOT/%{_prefix} cp -rf $RPM_BUILD_DIR/%{name}*/* $RPM_BUILD_ROOT/%{_prefix}/
#=> cp the files compiled to somewhere. %install echo "RPM_BUILD_DIR=>" $RPM_BUILD_DIR echo "RPM_BUILD_ROOT=>" $RPM_BUILD_ROOT ls -R $RPM_BUILD_ROOT
#=> rm the virtual dirs. %clean rm -rf $RPM_BUILD_DIR rm -rf $RPM_BUILD_ROOT
#=> file in the rpm must list here. %files %defattr(-,root,root,-) %dir /%{_prefix}/ %dir /%{_prefix}/conf/ %dir /%{_prefix}/log/ %dir /%{_prefix}/src/
/%{_prefix}/boot.sh /%{_prefix}/kill.sh /%{_prefix}/conf/*.conf /%{_prefix}/log/*.log /%{_prefix}/src/*.py %doc /%{_prefix}/README
%changelog * Mon Jan 26 2015 guoqiang.ding <guoqiang.ding@xxx.com> - 1st release for fdsRsync RPM.
|