.spec檔案的格式及其中間的內容是
name: lsyncd
version: 2.0.5
release: 1%
summary: lsyncd is a soft of data sync.
group: system environmen/base
license: gnu
url:
source0: lsyncd-2.0.5.tar.gz
buildroot: %(mktemp -ud %/%-%-%-******)
buildrequires: lua-devel
requires: lua
%description
lsyncd 是一款資料同步軟體
use with rsyncd
%prep
%setup -q
%build
%configure
make %
%install
rm -rf $rpm_build_root
make install destdir=$rpm_build_root
test -z "$rpm_build_root/bin" || /bin/mkdir -p "$rpm_build_root/bin"
/usr/bin/install -c "lsyncd" "$rpm_build_root/bin/lsyncd"
test -z "$rpm_build_root/share/doc/lsyncd/" || /bin/mkdir -p "$rpm_build_root/share/doc/lsyncd/"
/usr/bin/install -c -m 644 "examples/lbash.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/lecho.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/lgforce.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/limagemagic.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/lpostcmd.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/lrsync.lua" "$rpm_build_root/share/doc/lsyncd"
/usr/bin/install -c -m 644 "examples/lrsyncssh.lua" "$rpm_build_root/share/doc/lsyncd"
test -z "$rpm_build_root/share/man/man1" || /bin/mkdir -p "$rpm_build_root/share/man/man1"
/usr/bin/install -c -m 644 "./doc/lsyncd.1" "$rpm_build_root/share/man/man1/lsyncd.1"
test -z "" || /bin/mkdir -p ""
%clean
rm -rf $rpm_build_root
%files
/bin/lsyncd
/share/doc/lsyncd/lbash.lua
/share/doc/lsyncd/lecho.lua
/share/doc/lsyncd/lgforce.lua
/share/doc/lsyncd/limagemagic.lua
/share/doc/lsyncd/lpostcmd.lua
/share/doc/lsyncd/lrsync.lua
/share/doc/lsyncd/lrsyncssh.lua
/share/man/man1/lsyncd.1
/usr/bin/lsyncd
/usr/share/doc/lsyncd/lbash.lua
/usr/share/doc/lsyncd/lecho.lua
/usr/share/doc/lsyncd/lgforce.lua
/usr/share/doc/lsyncd/limagemagic.lua
/usr/share/doc/lsyncd/lpostcmd.lua
/usr/share/doc/lsyncd/lrsync.lua
/usr/share/doc/lsyncd/lrsyncssh.lua
/usr/share/man/man1/lsyncd.1.gz
%defattr(-,root,root,-)
%doc
%changelog
相關注意事項
name:
lsyncd
version:
2.0.5
release:
1%summary: lsync is a soft of data sync.
group:
system environment/base
license:
gnuurl:
/soft/lsyncd-2.0.5.tar.gz
source0:
lsyncd-2.0.5.tar.gz //注意名稱要寫對
buildroot:
%(mktemp -ud %/%-%-%-******)
buildrequires:
//此處還沒有填寫,後面根據提示再修改。
requires:
%description
lsyncd是一款資料同步軟體
use with rsyncd
%prep
%setup -q
%build
%configure
make %
%install
rm -rf $rpm_build_root
make install destdir=$rpm_build_root //此處沒有填寫完整,需根據「make install」的輸出填寫。
%clean
rm -rf $rpm_build_root
%files //此處還沒有填寫,後面根據提示再修改。
%defattr(-,root,root,-)
%doc
%changelog
%changelog
//下面填寫編譯時間5月22日,日期格式為date +"%a %b %d %y",必須以*開頭,以--end結尾
* tue may 22 2012
--end
vi 儲存複製內容格式貼上
vi是linux中非常好用的文字編輯工具,功能強大無比,但對於複製帶有縮排格式的內容時,貼上的時候內容錯位很嚴重,不會按照複製時的格式排版,vi能不能在貼上時,按複製進的格式進行貼上呢?答案是肯定的,vi有乙個很強大的命令可以實現此功能 在命令模式輸入 set paste,則進入paste模式,這樣...
HTTP內容格式詳細說明2 協議
響應頭域允許伺服器傳遞不能放在狀態行的附加資訊,這些域主要描述伺服器的資訊和 request uri 進一步的資訊。響應頭域包含 age location proxy authenticate public retry after server vary warning www authentica...
合併內容格式不同的兩個檔案
題目描述 將檔案a.txt中的單詞與檔案b.txt中的單詞交替合併到檔案c.txt中,a.txt中的單詞用回車符分隔,b.txt中的單詞用回車符或者空格分隔 思路分析 由於題目明確說明了檔案a.txt與檔案b.txt的分隔符有所不同,所以考慮新建乙個檔案類,該類描述檔案,屬性有單詞 分隔符 然後在再...