Update spec to support building on old branches.
This commit is contained in:
parent
9d5d32a0e0
commit
2a9820c76f
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
Name: glusterfs
|
Name: glusterfs
|
||||||
Version: %{major_minor}.2
|
Version: %{major_minor}.2
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Clustered file-system
|
Summary: Clustered file-system
|
||||||
|
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
@ -24,6 +24,7 @@ Source5: glusterd.logrotate
|
|||||||
Source11: glusterfsd.init
|
Source11: glusterfsd.init
|
||||||
Source12: glusterfsd.sysconfig
|
Source12: glusterfsd.sysconfig
|
||||||
Source15: glusterfsd.logrotate
|
Source15: glusterfsd.logrotate
|
||||||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
# bugs.gluster.com #2309 (pending)
|
# bugs.gluster.com #2309 (pending)
|
||||||
Patch1: wb-quota.patch
|
Patch1: wb-quota.patch
|
||||||
@ -169,6 +170,7 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|||||||
%{__make}
|
%{__make}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
%{__make} install DESTDIR=%{buildroot}
|
%{__make} install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
# We'll use our init.d
|
# We'll use our init.d
|
||||||
@ -219,12 +221,12 @@ sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sha
|
|||||||
|
|
||||||
# Install init script and sysconfig file
|
# Install init script and sysconfig file
|
||||||
%{__install} -D -p -m 0755 %{SOURCE1} \
|
%{__install} -D -p -m 0755 %{SOURCE1} \
|
||||||
%{buildroot}%{_initddir}/glusterd
|
%{buildroot}%{_sysconfdir}/init.d/glusterd
|
||||||
%{__install} -D -p -m 0644 %{SOURCE2} \
|
%{__install} -D -p -m 0644 %{SOURCE2} \
|
||||||
%{buildroot}%{_sysconfdir}/sysconfig/glusterd
|
%{buildroot}%{_sysconfdir}/sysconfig/glusterd
|
||||||
# Legacy init script and sysconfig file
|
# Legacy init script and sysconfig file
|
||||||
%{__install} -D -p -m 0755 %{SOURCE11} \
|
%{__install} -D -p -m 0755 %{SOURCE11} \
|
||||||
%{buildroot}%{_initddir}/glusterfsd
|
%{buildroot}%{_sysconfdir}/init.d/glusterfsd
|
||||||
%{__install} -D -p -m 0644 %{SOURCE12} \
|
%{__install} -D -p -m 0644 %{SOURCE12} \
|
||||||
%{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
|
%{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
|
||||||
|
|
||||||
@ -246,6 +248,9 @@ sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sha
|
|||||||
%{__install} -D -p -m 644 extras/glusterfs.vim \
|
%{__install} -D -p -m 644 extras/glusterfs.vim \
|
||||||
%{buildroot}%{_datadir}/vim/vimfiles/syntax/glusterfs.vim
|
%{buildroot}%{_datadir}/vim/vimfiles/syntax/glusterfs.vim
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog COPYING INSTALL README THANKS
|
%doc ChangeLog COPYING INSTALL README THANKS
|
||||||
@ -292,9 +297,9 @@ sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sha
|
|||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfsd
|
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfsd
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
|
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
|
||||||
%{_sharedstatedir}/glusterd
|
%{_sharedstatedir}/glusterd
|
||||||
%{_initddir}/glusterd
|
%{_sysconfdir}/init.d/glusterd
|
||||||
# Legacy init
|
# Legacy init
|
||||||
%{_initddir}/glusterfsd
|
%{_sysconfdir}/init.d/glusterfsd
|
||||||
|
|
||||||
%files vim
|
%files vim
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -335,6 +340,9 @@ if [ $1 -ge 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 06 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-3
|
||||||
|
- Add back in legacy SPEC elements to support older branches
|
||||||
|
|
||||||
* Tue Feb 03 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-2
|
* Tue Feb 03 2011 Jonathan Steffan <jsteffan@fedoraproject.org> - 3.1.2-2
|
||||||
- Add patches from CloudFS project
|
- Add patches from CloudFS project
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user