From e83044d82e9772c3ec094a5d162cacffe4d7b9a1 Mon Sep 17 00:00:00 2001 From: WaLyong Cho Date: Mon, 19 Sep 2016 15:27:25 +0900 Subject: initial files upload Signed-off-by: WaLyong Cho --- packaging/libsystem.spec | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 packaging/libsystem.spec (limited to 'packaging') diff --git a/packaging/libsystem.spec b/packaging/libsystem.spec new file mode 100644 index 0000000..7172d32 --- /dev/null +++ b/packaging/libsystem.spec @@ -0,0 +1,91 @@ +Name: libsystem +Summary: System Libraries +Version: 3.6 +Release: 5 +License: Apache License v2 +Group: System/Base +Source: %{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) + +Requires: /bin/cp + +%description +System libraries. + +%package devel +Summary: Development header files for System Libraries +License: Apache License v2 +Requires: pkgconfig(glib-2.0) + +%description devel +Development headers and auxiliary files. + +%package -n libsystem-sd +Summary: systemd utility libraries +License: Apache License v2 + +%description -n libsystem-sd +systemd utility libraries. + +%package -n libsystem-sd-devel +Summary: Development header files for systemd util +License: Apache License v2 +Requires: pkgconfig(gio-2.0) +Requires: pkgconfig(dbus-1) +Requires: pkgconfig(libsystem) + +%description -n libsystem-sd-devel +Development header files for systemd util. + +%prep +%setup -q + +%build +%if 0%{?debug_enable} +export CFLAGS=$(echo $CFLAGS | sed -e 's/^-g / /g' | sed -e 's/ -g / /g') +export CFLAGS=$(echo $CFLAGS | sed -e 's/^-O[0-9] / /g' | sed -e 's/ $-O[0-9] / /g') +export CFLAGS=$(echo $CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g') +export CFLAGS="-O0 -g $CFLAGS" +%endif + +./autogen.sh +%configure \ + --disable-static \ + --prefix=%{_prefix} \ + +make %{?_smp_mflags} + +%install +%make_install + +# Remove local archives +rm -f %{buildroot}%{_libdir}/*.la + +%files +%defattr(-,root,root,-) +%{_libdir}/libsystem.so.* + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libsystem.so +%{_includedir}/libsystem/config-parser.h +%{_includedir}/libsystem/dbus-util.h +%{_includedir}/libsystem/glib-util.h +%{_includedir}/libsystem/libsystem.h +%{_libdir}/pkgconfig/libsystem.pc + +%files -n libsystem-sd +%defattr(-,root,root,-) +%{_libdir}/libsystem-sd.so.* + +%files -n libsystem-sd-devel +%defattr(-,root,root,-) +%{_libdir}/libsystem-sd.so +%{_includedir}/libsystem-sd/systemd.h +%{_libdir}/pkgconfig/libsystem-sd.pc -- cgit v1.2.3