$RPM_BUILD_ROOT -> %{buildroot}

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-11-08 10:36:44 +01:00
parent 16d6670418
commit 7b2734dcb7

View File

@ -113,21 +113,21 @@ V=1 make
sed 's+/lib64+/$archlib+g' < xmlsec1-config | sed 's+/lib+/$archlib+g' | sed 's+ -DXMLSEC_NO_SIZE_T++' > xmlsec1-config.$$ && mv xmlsec1-config.$$ xmlsec1-config
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/include/xmlsec1
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT/usr/man/man1
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/usr/include/xmlsec1
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}/usr/man/man1
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.la
# move installed docs to include them in -devel package via %%doc magic
rm -rf __tmp_doc ; mkdir __tmp_doc
mv ${RPM_BUILD_ROOT}%{_docdir}/xmlsec1/* __tmp_doc
mv %{buildroot}%{_docdir}/xmlsec1/* __tmp_doc
%clean
rm -fr ${RPM_BUILD_ROOT}
rm -fr %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig