- 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:
Richard W.M. Jones 2010-02-25 16:38:21 +00:00
parent ba930f1bf9
commit e9b1deb686

View File

@ -38,7 +38,7 @@ Summary: Access and modify virtual machine disk images
Name: libguestfs
Epoch: 1
Version: 1.0.84
Release: 3%{?dist}
Release: 4%{?dist}
License: LGPLv2+
Group: Development/Libraries
URL: http://libguestfs.org/
@ -376,6 +376,10 @@ mkdir -p daemon/m4
%if %{buildnet}
%define extra --with-mirror=%{mirror} --with-updates=%{updates}
%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
find /var/cache/yum -type f -name '*.rpm' -print0 | xargs -0 cp -t 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.la
# Generator shouldn't be executable when we distribute it.
chmod -x src/generator.ml
# Move installed documentation back to the source directory so
# we can install it using a %%doc rule.
mv $RPM_BUILD_ROOT%{_docdir}/libguestfs installed-docs
@ -537,7 +538,6 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc ChangeLog HACKING TODO README ex html/guestfs.3.html html/pod.css
%doc src/generator.ml
%doc installed-docs/*
%{_libdir}/libguestfs.so
%{_libdir}/libhivex.so
@ -651,6 +651,11 @@ rm -rf $RPM_BUILD_ROOT
%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
- Bump and rebuild.