License: Apache-2.0
Group: System/Libraries
Source: %{name}-%{version}.tar.gz
+%if 0%{?_with_tizen}
Source1001: %{name}.manifest
+%endif
BuildRequires: autoconf
BuildRequires: automake
%setup -q
%build
+%if 0%{?_with_tizen}
cp %{SOURCE1001} .
+%endif
%if 0%{?debug_enable}
export CFLAGS=$(echo $CFLAGS | sed -e 's/^-g / /g' | sed -e 's/ -g / /g')
export CFLAGS="-O0 -g $CFLAGS"
%endif
-%autogen
-%reconfigure
+./autogen.sh
+%configure
make %{?_smp_mflags}
%install
%make_install
+rm -f %{buildroot}%{_libdir}/*.la
+
# make sure debugsources.list exist, it used by rpm macro in %file
# section.
touch debugsources.list
%files
%defattr(-,root,root,-)
+%if 0%{?_with_tizen}
%manifest %{name}.manifest
+%endif
%{_libdir}/libsystem.so.*
%files devel
%defattr(-,root,root,-)
+%if 0%{?_with_tizen}
%manifest %{name}.manifest
+%endif
%{_libdir}/libsystem.so
%{_includedir}/libsystem/config-parser.h
%{_includedir}/libsystem/dbus-util.h
%files -n libsystem-sd
%defattr(-,root,root,-)
+%if 0%{?_with_tizen}
%manifest %{name}.manifest
+%endif
%{_libdir}/libsystem-sd.so.*
%files -n libsystem-sd-devel
%defattr(-,root,root,-)
+%if 0%{?_with_tizen}
%manifest %{name}.manifest
+%endif
%{_libdir}/libsystem-sd.so
%{_includedir}/libsystem-sd/systemd.h
%{_libdir}/pkgconfig/libsystem-sd.pc