]>
Commit | Line | Data |
---|---|---|
c08816ca JB |
1 | Summary: Common components for building D-Bus system services |
2 | Summary(pl.UTF-8): Wspólne komponenty do tworzenia usług systemowych D-Bus | |
3 | Name: libgsystemservice | |
4 | Version: 0.1.0 | |
5 | Release: 1 | |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgsystemservice/0.1/%{name}-%{version}.tar.xz | |
9 | # Source0-md5: eda4dbd96a3107d885e59750527d746b | |
10 | URL: https://gitlab.gnome.org/pwithnall/libgsystemservice | |
11 | BuildRequires: glib2-devel >= 1:2.54 | |
12 | BuildRequires: gtk-doc | |
13 | BuildRequires: meson >= 0.45.0 | |
14 | BuildRequires: ninja >= 1.5 | |
9274a028 | 15 | BuildRequires: rpmbuild(macros) >= 1.736 |
c08816ca JB |
16 | BuildRequires: systemd-devel >= 1:209 |
17 | BuildRequires: tar >= 1:1.22 | |
18 | BuildRequires: xz | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | libgsystemservice is a utility library providing common components | |
23 | needed for building system services to be exposed on the D-Bus system | |
24 | bus. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | libgsystemservice to biblioteka narzędziowa udostępniająca wspólne | |
28 | komponenty potrzebne do tworzenia usług systemowych, udostępnianych | |
29 | przez szynę systemową D-Bus. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libgsystemservice library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgsystemservice | |
34 | Group: Development/Libraries | |
35 | Requires: %{name} = %{version}-%{release} | |
36 | Requires: glib2-devel >= 1:2.54 | |
37 | Requires: systemd-devel >= 1:209 | |
38 | ||
39 | %description devel | |
40 | Header files for libgsystemservice library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki libgsystemservice. | |
44 | ||
45 | %package static | |
46 | Summary: Static libgsystemservice library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka libgsystemservice | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static libgsystemservice library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka libgsystemservice. | |
56 | ||
57 | %package apidocs | |
58 | Summary: API documentation for libgsystemservice library | |
59 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgsystemservice | |
60 | Group: Documentation | |
61 | %if "%{_rpmversion}" >= "4.6" | |
62 | BuildArch: noarch | |
63 | %endif | |
64 | ||
65 | %description apidocs | |
66 | API documentation for libgsystemservice library. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API biblioteki libgsystemservice. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %meson build | |
76 | ||
77 | %ninja_build -C build | |
78 | ||
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %ninja_install -C build | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc NEWS README | |
93 | %attr(755,root,root) %{_libdir}/libgsystemservice-0.so.*.*.* | |
94 | %attr(755,root,root) %ghost %{_libdir}/libgsystemservice-0.so.0 | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libgsystemservice-0.so | |
99 | %{_includedir}/gsystemservice-0 | |
100 | %{_pkgconfigdir}/gsystemservice-0.pc | |
101 | ||
102 | %files static | |
103 | %defattr(644,root,root,755) | |
104 | %{_libdir}/libgsystemservice-0.a | |
105 | ||
106 | %files apidocs | |
107 | %defattr(644,root,root,755) | |
108 | %{_gtkdocdir}/libgsystemservice |