Update to latest Fedora golang packaging draft.
- See: https://fedoraproject.org/wiki/PackagingDrafts/Go
This commit is contained in:
parent
199c589a9a
commit
3717710316
@ -12,7 +12,7 @@ Summary: Access and modify virtual machine disk images
|
|||||||
Name: libguestfs
|
Name: libguestfs
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.25.25
|
Version: 1.25.25
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
|
|
||||||
# Source and patches.
|
# Source and patches.
|
||||||
@ -538,8 +538,10 @@ Requires: %{name}-gobject-devel = %{epoch}:%{version}-%{release}
|
|||||||
%ifarch %{arm} %{ix86} x86_64
|
%ifarch %{arm} %{ix86} x86_64
|
||||||
%package -n golang-guestfs
|
%package -n golang-guestfs
|
||||||
Summary: Golang bindings for %{name}
|
Summary: Golang bindings for %{name}
|
||||||
|
BuildArch: noarch
|
||||||
Requires: %{name} = %{epoch}:%{version}-%{release}
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
||||||
Requires: golang
|
Requires: golang
|
||||||
|
Provides: golang(libguestfs.org) = %{epoch}:%{version}-%{release}
|
||||||
|
|
||||||
%description -n golang-guestfs
|
%description -n golang-guestfs
|
||||||
golang-%{name} contains Go language bindings for %{name}.
|
golang-%{name} contains Go language bindings for %{name}.
|
||||||
@ -724,6 +726,14 @@ fi
|
|||||||
mv $RPM_BUILD_ROOT%{_datadir}/java/%{name}-%{version}.jar \
|
mv $RPM_BUILD_ROOT%{_datadir}/java/%{name}-%{version}.jar \
|
||||||
$RPM_BUILD_ROOT%{_datadir}/java/%{name}.jar
|
$RPM_BUILD_ROOT%{_datadir}/java/%{name}.jar
|
||||||
|
|
||||||
|
# golang: Ignore what libguestfs upstream installs, and just copy the
|
||||||
|
# source files to %{_datadir}/gocode/src.
|
||||||
|
%ifarch %{arm} %{ix86} x86_64
|
||||||
|
rm -r $RPM_BUILD_ROOT%{_libdir}/golang
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/gocode/src
|
||||||
|
cp -a golang/src/libguestfs.org $RPM_BUILD_ROOT%{_datadir}/gocode/src
|
||||||
|
%endif
|
||||||
|
|
||||||
# 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
|
||||||
@ -966,8 +976,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
|
|||||||
%files -n golang-guestfs
|
%files -n golang-guestfs
|
||||||
%doc golang/examples/*.go
|
%doc golang/examples/*.go
|
||||||
%doc golang/examples/LICENSE
|
%doc golang/examples/LICENSE
|
||||||
%{_libdir}/golang/pkg/linux_*/libguestfs.org
|
%{_datadir}/gocode/src/libguestfs.org
|
||||||
%{_libdir}/golang/src/pkg/libguestfs.org
|
|
||||||
%{_mandir}/man3/guestfs-golang.3*
|
%{_mandir}/man3/guestfs-golang.3*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -985,6 +994,10 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/libguestfs
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 22 2014 Richard W.M. Jones <rjones@redhat.com> - 1:1.25.25-2
|
||||||
|
- Update to latest Fedora golang packaging draft.
|
||||||
|
- See: https://fedoraproject.org/wiki/PackagingDrafts/Go
|
||||||
|
|
||||||
* Tue Jan 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1:1.25.25-1
|
* Tue Jan 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1:1.25.25-1
|
||||||
- New upstream version 1.25.25.
|
- New upstream version 1.25.25.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user