Clean spec file for yocto compliance. 54/24954/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20140724.165335 accepted/tizen/ivi/20140730.095127 submit/tizen/20140724.111348 submit/tizen_ivi/20140729.000000 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorRonan Le Martret <ronan@fridu.net>
Thu, 24 Jul 2014 10:25:33 +0000 (12:25 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 24 Jul 2014 10:25:33 +0000 (12:25 +0200)
Change-Id: I882d6fd5bd4aca6349be85aefb7517e3a20da788
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/ibus.spec

index 2b329ea..017771c 100644 (file)
@@ -1,7 +1,6 @@
-# Build flags
 Name:       ibus
 Version:    1.5.4
-Release:    2
+Release:    0
 Summary:    Intelligent Input Bus for Linux OS
 License:    LGPL-2.0+
 Group:      System/Libraries
@@ -51,53 +50,40 @@ Requires:   dbus-devel
 %description devel
 The ibus-devel package contains the header files for IBus
 
-%package devel-docs
-Summary:    Developer documents for IBus
-Group:      Development/Libraries
-Requires:   %{name} = %{version}-%{release}
-Requires:   gtk-doc
-
-%description devel-docs
-The ibus-devel-docs package contains developer documentation for IBus
-
-
 %prep
 %setup -q
 cp %{SOURCE1001} .
 
-
 %build
-
-OPTIONS="--disable-static \
-         --disable-tests \
-         --disable-gtk2 \
-         --disable-gtk3 \
-         --disable-xim \
-         --enable-wayland \
-         --disable-vala \
-         --disable-gtk-doc \
-         --disable-gconf \
-         --disable-setup \
-         --disable-dconf \
-         --enable-python-library \
-         --disable-ui \
-         --disable-libnotify \
-         --enable-introspection"
-
-%configure $OPTIONS
-
-# make -C po update-gmo
-make %{?_smp_mflags}
+%configure --disable-static \
+           --disable-tests \
+           --disable-gtk2 \
+           --disable-gtk3 \
+           --disable-xim \
+           --enable-wayland \
+           --disable-vala \
+           --disable-gtk-doc \
+           --disable-gconf \
+           --disable-setup \
+           --disable-dconf \
+           --enable-python-library \
+           --disable-ui \
+           --disable-libnotify \
+           --enable-introspection
+
+%__make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
-rm -f $RPM_BUILD_ROOT%{_libdir}/libibus-1.0.la
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+rm -f %{buildroot}%{_libdir}/libibus-1.0.la
+
+rm -fr %{buildroot}%{_datadir}/gtk-doc
 
 %find_lang %{name}10
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %post
 # recreate icon cache
@@ -139,7 +125,6 @@ touch --no-create %{_datadir}/icons/hicolor || :
 %{_datadir}/bash-completion/completions/ibus.bash
 %{_datadir}/man/man1/*
 
-
 %files libs
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
@@ -153,7 +138,3 @@ touch --no-create %{_datadir}/icons/hicolor || :
 %{_libdir}/pkgconfig/*
 %{_includedir}/*
 %{_datadir}/gir-1.0/IBus-1.0.gir
-
-%files devel-docs
-%defattr(-,root,root,-)
-%{_datadir}/gtk-doc/html/*