- Don't include generator.ml in rpm. It's 400K and almost no one will need
it. - Add comments to spec file about how repo building works. - Whitespace changes in the spec file.
This commit is contained in:
parent
ba930f1bf9
commit
e9b1deb686
@ -38,7 +38,7 @@ Summary: Access and modify virtual machine disk images
|
|||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.0.84
|
Version: 1.0.84
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
URL: http://libguestfs.org/
|
URL: http://libguestfs.org/
|
||||||
@ -376,6 +376,10 @@ mkdir -p daemon/m4
|
|||||||
%if %{buildnet}
|
%if %{buildnet}
|
||||||
%define extra --with-mirror=%{mirror} --with-updates=%{updates}
|
%define extra --with-mirror=%{mirror} --with-updates=%{updates}
|
||||||
%else
|
%else
|
||||||
|
# Build a local repository containing the packages used to
|
||||||
|
# install the current buildroot (assuming we are being built
|
||||||
|
# with mock or Koji). Then tell febootstrap to reference this
|
||||||
|
# local repository when building the appliance.
|
||||||
mkdir repo
|
mkdir repo
|
||||||
find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t repo
|
find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t repo
|
||||||
createrepo repo
|
createrepo repo
|
||||||
@ -496,9 +500,6 @@ install -p -m0755 ruby/ext/guestfs/_guestfs.so $RPM_BUILD_ROOT%{ruby_sitearch}
|
|||||||
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.a
|
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.a
|
||||||
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.la
|
rm $RPM_BUILD_ROOT%{_libdir}/libguestfs_jni.la
|
||||||
|
|
||||||
# Generator shouldn't be executable when we distribute it.
|
|
||||||
chmod -x src/generator.ml
|
|
||||||
|
|
||||||
# Move installed documentation back to the source directory so
|
# Move installed documentation back to the source directory so
|
||||||
# we can install it using a %%doc rule.
|
# we can install it using a %%doc rule.
|
||||||
mv $RPM_BUILD_ROOT%{_docdir}/libguestfs installed-docs
|
mv $RPM_BUILD_ROOT%{_docdir}/libguestfs installed-docs
|
||||||
@ -537,7 +538,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc ChangeLog HACKING TODO README ex html/guestfs.3.html html/pod.css
|
%doc ChangeLog HACKING TODO README ex html/guestfs.3.html html/pod.css
|
||||||
%doc src/generator.ml
|
|
||||||
%doc installed-docs/*
|
%doc installed-docs/*
|
||||||
%{_libdir}/libguestfs.so
|
%{_libdir}/libguestfs.so
|
||||||
%{_libdir}/libhivex.so
|
%{_libdir}/libhivex.so
|
||||||
@ -651,6 +651,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.84-4
|
||||||
|
- Don't include generator.ml in rpm. It's 400K and almost no one will need it.
|
||||||
|
- Add comments to spec file about how repo building works.
|
||||||
|
- Whitespace changes in the spec file.
|
||||||
|
|
||||||
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.84-3
|
* Mon Feb 22 2010 Richard W.M. Jones <rjones@redhat.com> - 1:1.0.84-3
|
||||||
- Bump and rebuild.
|
- Bump and rebuild.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user