Clean spec file for Yocto compatibility
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 19 Aug 2014 15:25:40 +0000 (17:25 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 20 Aug 2014 08:14:35 +0000 (10:14 +0200)
Also set a valid group tag.

Change-Id: I138ab1463db6209d62ed82b603f2dec5fad1e74b
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
packaging/libhangul.spec

index 8a4b7c5..8cf5c2d 100644 (file)
@@ -2,7 +2,7 @@ Name:           libhangul
 Version:        0.1.0
 Release:        0
 License:        LGPL-2.1
-Group:          System/I18n/Korean
+Group:          System/Utilities
 AutoReqProv:    on
 Url:            http://code.google.com/p/libhangul
 Source0:        %{name}-%{version}.tar.gz
@@ -25,7 +25,7 @@ Hangul input library used by scim-hangul and ibus-hangul
 
 %package devel
 Summary:        Include Files and Libraries mandatory for Development
-Group:          System/I18n/Korean
+Group:          System/Utilities
 Requires:       %{name} = %{version}-%{release}
 
 %description devel
@@ -39,13 +39,12 @@ cp %{SOURCE1001} .
 
 %build
 [ ! -x autogen.sh ] || rm -f configure
-%autogen
-%configure --disable-static --with-pic
-%{__make} %{?jobs:-j%jobs}
+%reconfigure --disable-static --with-pic
+%__make %{?_smp_mflags}
 
 %install
 make DESTDIR=${RPM_BUILD_ROOT} install
-%{__rm} -f %{buildroot}%{_libdir}/*.la
+rm -f %{buildroot}%{_libdir}/*.la
 
 %clean
 rm -rf %{buildroot}
@@ -62,7 +61,6 @@ rm -rf %{buildroot}
 %license COPYING
 %doc AUTHORS NEWS README ChangeLog
 %{_libdir}/lib*.so.*
-%dir %{_datadir}/libhangul/
 %dir %{_datadir}/libhangul/hanja/
 %{_datadir}/libhangul/hanja/hanja.txt
 %{_bindir}/hangul