fastdfs.spec: can rpmbuild with non-root privilege

pull/74/head
Jesse Tian 2016-09-30 00:11:41 +08:00
parent 8765998114
commit 5b0cf8a980
1 changed files with 24 additions and 23 deletions

View File

@ -60,6 +60,7 @@ This package is tools for fastdfs
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
%{__mkdir_p} %{buildroot}/usr/lib/
DESTDIR=$RPM_BUILD_ROOT ./make.sh install DESTDIR=$RPM_BUILD_ROOT ./make.sh install
#make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir} #make install IGNORE_MAN_GROUP=y DOC_DIR=%{_docdir}/%{name}-%{version} INIT_DIR=%{_initrddir}
@ -87,36 +88,36 @@ DESTDIR=$RPM_BUILD_ROOT ./make.sh install
%files -n %{FDFSServer} %files -n %{FDFSServer}
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/bin/fdfs_trackerd %{_bindir}/fdfs_trackerd
/usr/bin/fdfs_storaged %{_bindir}/fdfs_storaged
/usr/bin/restart.sh %{_bindir}/restart.sh
/usr/bin/stop.sh %{_bindir}/stop.sh
/etc/init.d/* %{_sysconfdir}/init.d/*
/etc/fdfs/tracker.conf.sample %{_sysconfdir}/fdfs/tracker.conf.sample
/etc/fdfs/storage.conf.sample %{_sysconfdir}/fdfs/storage.conf.sample
%files -n %{FDFSClient} %files -n %{FDFSClient}
/usr/lib64/libfdfsclient* %{_libdir}/libfdfsclient*
/usr/lib/libfdfsclient* %{_usr}/lib/libfdfsclient*
/etc/fdfs/client.conf.sample %{_sysconfdir}/fdfs/client.conf.sample
%files -n %{FDFSClient}-devel %files -n %{FDFSClient}-devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/include/fastdfs/* %{_includedir}/fastdfs/*
%files -n %{FDFSTool} %files -n %{FDFSTool}
/usr/bin/fdfs_monitor %{_bindir}/fdfs_monitor
/usr/bin/fdfs_test %{_bindir}/fdfs_test
/usr/bin/fdfs_test1 %{_bindir}/fdfs_test1
/usr/bin/fdfs_crc32 %{_bindir}/fdfs_crc32
/usr/bin/fdfs_upload_file %{_bindir}/fdfs_upload_file
/usr/bin/fdfs_download_file %{_bindir}/fdfs_download_file
/usr/bin/fdfs_delete_file %{_bindir}/fdfs_delete_file
/usr/bin/fdfs_file_info %{_bindir}/fdfs_file_info
/usr/bin/fdfs_appender_test %{_bindir}/fdfs_appender_test
/usr/bin/fdfs_appender_test1 %{_bindir}/fdfs_appender_test1
/usr/bin/fdfs_append_file %{_bindir}/fdfs_append_file
/usr/bin/fdfs_upload_appender %{_bindir}/fdfs_upload_appender
%changelog %changelog
* Mon Jun 23 2014 Zaixue Liao <liaozaixue@yongche.com> * Mon Jun 23 2014 Zaixue Liao <liaozaixue@yongche.com>