[gengetopt] Use %license macro to handle license files.
Christopher Meng
cicku at fedoraproject.org
Tue Feb 17 05:12:25 UTC 2015
commit bbd183eb899fffd5aeca88bfe11995307e3b179d
Author: Christopher Meng <i at cicku.me>
Date: Tue Feb 17 13:11:56 2015 +0800
Use %license macro to handle license files.
gengetopt.spec | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gengetopt.spec b/gengetopt.spec
index 6a5f573..de7ab1d 100644
--- a/gengetopt.spec
+++ b/gengetopt.spec
@@ -45,10 +45,10 @@ find . -name '*.ggo' -exec chmod 644 {} ';'
make
%install
-make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}
-rm -rfv %{buildroot}%{_infodir}/dir
+%make_install INSTALL="%{__install} -p"
+rm -frv %{buildroot}%{_infodir}/dir
# Use %%doc macro to install instead.
-rm -rfv %{buildroot}%{_docdir}/%{name}
+rm -frv %{buildroot}%{_docdir}/%{name}
mkdir ./examples
pushd ./doc
@@ -69,13 +69,14 @@ if [ $1 = 0 ]; then
fi
%files
-%doc AUTHORS ChangeLog COPYING LICENSE NEWS README THANKS TODO
+%doc AUTHORS ChangeLog NEWS README THANKS TODO
%doc doc/index.html doc/%{name}.html
%doc examples/
-%{_infodir}/%{name}.info*
-%{_mandir}/man1/%{name}.1*
+%license COPYING LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/
+%{_infodir}/%{name}.info*
+%{_mandir}/man1/%{name}.1*
%changelog
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.22.6-3
More information about the scm-commits
mailing list