]>
Commit | Line | Data |
---|---|---|
348a1d39 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | # | |
5 | Summary: GObject introspection library for isochronous communication with devices connected to IEEE 1394 bus | |
6 | Summary(pl.UTF-8): Biblioteka GObject introspection do komunikacji izochronicznej z urządzeniami podłączonymi do szyny IEEE 1394 | |
7 | Name: libhinoko | |
8 | Version: 0.9.0 | |
9 | Release: 1 | |
10 | License: LGPL v2.1+ | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/alsa-project/libhinoko/tags | |
13 | Source0: https://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 44fdfc59f49d89b99f01db96adc41f34 | |
15 | URL: https://alsa-project.github.io/gobject-introspection-docs/hinoko/ | |
16 | BuildRequires: glib2-devel >= 1:2.44.0 | |
17 | BuildRequires: gobject-introspection-devel >= 1.32.1 | |
18 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.8} | |
19 | BuildRequires: libhinawa-devel >= 2.6.0 | |
20 | BuildRequires: meson >= 0.46.0 | |
21 | BuildRequires: ninja >= 1.5 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: python3-pygobject3-devel | |
24 | BuildRequires: rpm-build >= 4.6 | |
462c5e99 | 25 | BuildRequires: rpmbuild(macros) >= 2.029 |
348a1d39 JB |
26 | BuildRequires: tar >= 1:1.22 |
27 | BuildRequires: xz | |
28 | Requires: glib2 >= 1:2.44.0 | |
29 | Requires: libhinawa >= 2.6.0 | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Hinoko is an GObject introspection library to transfer/receive | |
34 | isochronous packets on IEEE 1394 bus. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Hinoko to biblioteka GObject introspection do przesyłania/odbierania | |
38 | pakietów izochronicznych poprzez szynę IEEE 1394. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for hinoko library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hinoko | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: glib2-devel >= 1:2.44.0 | |
46 | Requires: libhinawa-devel >= 2.6.0 | |
47 | ||
48 | %description devel | |
49 | Header files for hinoko library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki hinoko. | |
53 | ||
54 | %package static | |
55 | Summary: Static hinoko library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka hinoko | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static hinoko library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka hinoko. | |
65 | ||
66 | %package apidocs | |
67 | Summary: API documentation for hinoko library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki hinoko | |
69 | Group: Documentation | |
70 | BuildArch: noarch | |
71 | ||
72 | %description apidocs | |
73 | API documentation for hinoko library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki hinoko. | |
77 | ||
78 | %prep | |
79 | %setup -q -n hinoko-%{version} | |
80 | ||
81 | %build | |
82 | %meson build \ | |
83 | %{?with_apidocs:-Ddoc=true} | |
84 | ||
85 | %ninja_build -C build | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %ninja_install -C build | |
91 | ||
92 | %if %{with apidocs} | |
462c5e99 JB |
93 | install -d $RPM_BUILD_ROOT%{_gidocdir} |
94 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/hinoko $RPM_BUILD_ROOT%{_gidocdir} | |
348a1d39 JB |
95 | %endif |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
105 | %doc README.rst | |
106 | %attr(755,root,root) %{_libdir}/libhinoko.so.*.*.* | |
107 | %attr(755,root,root) %ghost %{_libdir}/libhinoko.so.0 | |
108 | %{_libdir}/girepository-1.0/Hinoko-0.0.typelib | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libhinoko.so | |
113 | %{_includedir}/hinoko | |
114 | %{_datadir}/gir-1.0/Hinoko-0.0.gir | |
115 | %{_pkgconfigdir}/hinoko.pc | |
116 | ||
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libhinoko.a | |
120 | ||
121 | %if %{with apidocs} | |
122 | %files apidocs | |
123 | %defattr(644,root,root,755) | |
462c5e99 | 124 | %{_gidocdir}/hinoko |
348a1d39 | 125 | %endif |