From: Jacek Bukarewicz Date: Thu, 17 Oct 2013 15:36:35 +0000 (+0200) Subject: Minor packaging-related changes and rpmlint fixes X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;p=platform%2Fupstream%2Fusleep.git Minor packaging-related changes and rpmlint fixes 1) LICENSE file is included using %license macro 2) Moved to valid group 3) Corrected license 4) Introduced docs subpackage 5) Removed spectacle comments Change-Id: I55e7c1fb037516d0b0ad43095fecce07e5a65c0a Signed-off-by: Jacek Bukarewicz --- diff --git a/packaging/usleep.changes b/packaging/usleep.changes new file mode 100644 index 0000000..16e55eb --- /dev/null +++ b/packaging/usleep.changes @@ -0,0 +1,4 @@ +* Mon Oct 21 2013 Jacek Bukarewicz accepted/tizen/20130913.063235@443e3cc +- Minor packaging-related changes and rpmlint fixes +- Add license file and NOTICE file into rpm package + diff --git a/packaging/usleep.spec b/packaging/usleep.spec index c35c847..79c4321 100644 --- a/packaging/usleep.spec +++ b/packaging/usleep.spec @@ -1,16 +1,9 @@ -# -# Do not Edit! Generated by: -# spectacle version 0.13 -# -# >> macros -# << macros - Name: usleep Summary: Sleeps for microseconds Version: 1 Release: 4.2 -Group: System/Base -License: GPLv2 +Group: Base/Utilities +License: GPL-2.0 URL: http://moblin.org/ Source0: %{name}-%{version}.tar.gz Source100: usleep.yaml @@ -25,44 +18,20 @@ A version of /bin/sleep that sleeps for microsecond intervals. %prep %setup -q -n %{name}-%{version} -# >> setup -# << setup - %build -# >> build pre -# << build pre cp %{SOURCE1001} . make %{?jobs:-j%jobs} -# >> build post -# << build post %install rm -rf %{buildroot} -# >> install pre -# << install pre %make_install -# license -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} - -# >> install post - - -# << install post - - - - - - %files %manifest %{name}.manifest %defattr(-,root,root,-) %manifest %{name}.manifest -# >> files -%{_mandir}/man*/* +%license LICENSE /bin/usleep -/usr/share/license/%{name} -# << files + +%docs_package