rpms/xen/devel xen.spec,1.257,1.258
myoung
myoung at fedoraproject.org
Mon Jul 26 23:14:22 UTC 2010
Author: myoung
Update of /cvs/pkgs/rpms/xen/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv14111
Modified Files:
xen.spec
Log Message:
put licenses into a new xen-licenses package to meet Fedora licensing
guidelines
Index: xen.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xen/devel/xen.spec,v
retrieving revision 1.257
retrieving revision 1.258
diff -u -p -r1.257 -r1.258
--- xen.spec 25 Jul 2010 13:19:22 -0000 1.257
+++ xen.spec 26 Jul 2010 23:14:20 -0000 1.258
@@ -6,7 +6,7 @@
Summary: Xen is a virtual machine monitor
Name: xen
Version: 4.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Group: Development/Libraries
License: GPLv2+ and LGPLv2+ and BSD
URL: http://xen.org/
@@ -91,6 +91,7 @@ Summary: Libraries for Xen tools
Group: Development/Libraries
Requires(pre): /sbin/ldconfig
Requires(post): /sbin/ldconfig
+Requires: xen-licenses
%description libs
This package contains the libraries needed to run applications
@@ -115,6 +116,7 @@ form the core Xen userspace environment.
Summary: Libraries for Xen tools
Group: Development/Libraries
Provides: xen-hypervisor-abi = %{hv_abi}
+Requires: xen-licenses
%description hypervisor
This package contains the Xen hypervisor
@@ -124,6 +126,7 @@ This package contains the Xen hypervisor
Summary: Xen documentation
Group: Documentation
#BuildArch: noarch
+Requires: xen-licenses
%description doc
This package contains the Xen documentation.
@@ -139,6 +142,15 @@ This package contains what's needed to d
which manage Xen virtual machines.
+%package licenses
+Summary: License files from Xen source
+Group: Documentation
+
+%description licenses
+This package contains the license files from the source used
+to build the xen packages.
+
+
%prep
%setup -q
%patch1 -p1
@@ -265,6 +277,17 @@ cp %{SOURCE3} %{buildroot}%{_sysconfdir}
find %{buildroot} -print | xargs ls -ld | sed -e 's|.*%{buildroot}||' > f2.list
diff -u f1.list f2.list || true
+############ assemble license files ############
+
+mkdir licensedir
+# avoid licensedir to avoid recursion, also stubdom/ioemu and dist
+# which are copies of files elsewhere
+find . -path licensedir -prune -o -path stubdom/ioemu -prune -o \
+ -path dist -prune -o -name COPYING -o -name LICENSE | while read file; do
+ mkdir -p licensedir/`dirname $file`
+ install -m 644 $file licensedir/$file
+done
+
############ all done now ############
%post
@@ -480,7 +503,15 @@ rm -rf %{buildroot}
%{_includedir}/xen/*
%{_libdir}/*.so
+%files licenses
+%defattr(-,root,root)
+%doc licensedir/*
+
%changelog
+* Mon Jul 26 2010 Michael Young <m.a.young at durham.ac.uk> - 4.0.0-5
+- create a xen-licenses package to satisfy revised the Fedora
+ Licensing Guidelines
+
* Sun Jul 25 2010 Michael Young <m.a.young at durham.ac.uk> - 4.0.0-4
- fix gcc 4.5 compile problems
More information about the scm-commits
mailing list