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 <j.bukarewicz@samsung.com>
--- /dev/null
+* Mon Oct 21 2013 Jacek Bukarewicz <j.bukarewicz@samsung.com> accepted/tizen/20130913.063235@443e3cc
+- Minor packaging-related changes and rpmlint fixes
+- Add license file and NOTICE file into rpm package
+
-#
-# 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
%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