2 Summary: System Libraries
4 Release: 1%{?release_flags}
6 Group: System/Libraries
7 Source: %{name}-%{version}.tar.gz
8 Source1001: %{name}.manifest
10 BuildRequires: autoconf
11 BuildRequires: automake
12 BuildRequires: libtool
13 BuildRequires: pkgconfig(dbus-1)
14 BuildRequires: pkgconfig(glib-2.0) >= 2.44
15 BuildRequires: pkgconfig(gio-2.0) >= 2.44
19 Requires(post): /sbin/ldconfig
20 Requires(postun): /sbin/ldconfig
23 System utility libraries.
26 Summary: Header files for System Libraries
28 Requires: %{name} = %{version}
29 Requires: pkgconfig(glib-2.0)
32 Development header files for System Libraries.
34 %package -n libsystem-sd
35 Summary: Utility libraries for systemd
37 Requires: libsystem = %{version}
39 %description -n libsystem-sd
40 A helper utility libraries for systemd.
42 %package -n libsystem-sd-devel
43 Summary: Header files for systemd util
45 Requires: libsystem-sd = %{version}
46 Requires: pkgconfig(libsystem) = %{version}
47 Requires: pkgconfig(gio-2.0)
48 Requires: pkgconfig(dbus-1)
50 %description -n libsystem-sd-devel
51 Development header files for systemd util.
60 export CFLAGS=$(echo $CFLAGS | sed -e 's/^-g / /g' | sed -e 's/ -g / /g')
61 export CFLAGS=$(echo $CFLAGS | sed -e 's/^-O[0-9] / /g' | sed -e 's/ $-O[0-9] / /g')
62 export CFLAGS=$(echo $CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2 / /g')
63 export CFLAGS="-O0 -g $CFLAGS"
74 # make sure debugsources.list exist, it used by rpm macro in %file
76 touch debugsources.list
84 %postun -p /sbin/ldconfig
89 %postun -n libsystem-sd
93 %defattr(-,root,root,-)
94 %manifest %{name}.manifest
95 %{_libdir}/libsystem.so.*
98 %defattr(-,root,root,-)
99 %manifest %{name}.manifest
100 %{_libdir}/libsystem.so
101 %{_includedir}/libsystem/config-parser.h
102 %{_includedir}/libsystem/dbus-util.h
103 %{_includedir}/libsystem/glib-util.h
104 %{_includedir}/libsystem/libsystem.h
105 %{_libdir}/pkgconfig/libsystem.pc
107 %files -n libsystem-sd
108 %defattr(-,root,root,-)
109 %manifest %{name}.manifest
110 %{_libdir}/libsystem-sd.so.*
112 %files -n libsystem-sd-devel
113 %defattr(-,root,root,-)
114 %manifest %{name}.manifest
115 %{_libdir}/libsystem-sd.so
116 %{_includedir}/libsystem-sd/systemd.h
117 %{_libdir}/pkgconfig/libsystem-sd.pc