]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: fixed license file packaging
authorHarald Hoyer <harald@redhat.com>
Thu, 24 Jul 2014 12:47:14 +0000 (14:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 24 Jul 2014 12:47:14 +0000 (14:47 +0200)
dracut.spec

index cb27f37c09bbfff3b368c263975e33a797c85956..8912938a7730566395f20932ceba647a11dcab72 100644 (file)
@@ -30,6 +30,8 @@ URL: https://dracut.wiki.kernel.org/
 # Source can be generated by
 # http://git.kernel.org/?p=boot/dracut/dracut.git;a=snapshot;h=%{version};sf=tgz
 Source0: http://www.kernel.org/pub/linux/utils/boot/dracut/dracut-%{version}.tar.xz
+Source1: https://www.gnu.org/licenses/lgpl-2.1.txt
+
 
 BuildRequires: bash git
 
@@ -194,6 +196,7 @@ This package contains tools to assemble the local initrd and host configuration.
 
 %prep
 %setup -q -n %{name}-%{version}
+cp %{SOURCE1} .
 
 %if %{defined PATCH1}
 git init
@@ -293,8 +296,10 @@ rm -rf -- $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,0755)
 %if %{with doc}
-%doc README HACKING TODO COPYING AUTHORS NEWS dracut.html dracut.png dracut.svg
+%doc README HACKING TODO AUTHORS NEWS dracut.html dracut.png dracut.svg
 %endif
+%{!?_licensedir:%global license %%doc}
+%license COPYING lgpl-2.1.txt
 %{_bindir}/dracut
 # compat symlink
 %{_sbindir}/dracut
@@ -441,11 +446,6 @@ rm -rf -- $RPM_BUILD_ROOT
 
 %files fips-aesni
 %defattr(-,root,root,0755)
-
-%if %{with doc}
-%doc COPYING
-%endif
-
 %{dracutlibdir}/modules.d/02fips-aesni
 
 %files caps