[packages/libhinoko] - new
qboosh
qboosh at pld-linux.org
Wed Aug 30 07:56:21 CEST 2023
commit 348a1d39e8a9ac7266a363f7114e82334f77af0d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Aug 30 06:31:17 2023 +0200
- new
libhinoko.spec | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 126 insertions(+)
---
diff --git a/libhinoko.spec b/libhinoko.spec
new file mode 100644
index 0000000..4e91a4b
--- /dev/null
+++ b/libhinoko.spec
@@ -0,0 +1,126 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+#
+Summary: GObject introspection library for isochronous communication with devices connected to IEEE 1394 bus
+Summary(pl.UTF-8): Biblioteka GObject introspection do komunikacji izochronicznej z urządzeniami podłączonymi do szyny IEEE 1394
+Name: libhinoko
+Version: 0.9.0
+Release: 1
+License: LGPL v2.1+
+Group: Libraries
+#Source0Download: https://github.com/alsa-project/libhinoko/tags
+Source0: https://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.xz
+# Source0-md5: 44fdfc59f49d89b99f01db96adc41f34
+URL: https://alsa-project.github.io/gobject-introspection-docs/hinoko/
+BuildRequires: glib2-devel >= 1:2.44.0
+BuildRequires: gobject-introspection-devel >= 1.32.1
+%{?with_apidocs:BuildRequires: gi-docgen >= 2021.8}
+BuildRequires: libhinawa-devel >= 2.6.0
+BuildRequires: meson >= 0.46.0
+BuildRequires: ninja >= 1.5
+BuildRequires: pkgconfig
+BuildRequires: python3-pygobject3-devel
+BuildRequires: rpm-build >= 4.6
+BuildRequires: rpmbuild(macros) >= 1.736
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+Requires: glib2 >= 1:2.44.0
+Requires: libhinawa >= 2.6.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hinoko is an GObject introspection library to transfer/receive
+isochronous packets on IEEE 1394 bus.
+
+%description -l pl.UTF-8
+Hinoko to biblioteka GObject introspection do przesyłania/odbierania
+pakietów izochronicznych poprzez szynę IEEE 1394.
+
+%package devel
+Summary: Header files for hinoko library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki hinoko
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: glib2-devel >= 1:2.44.0
+Requires: libhinawa-devel >= 2.6.0
+
+%description devel
+Header files for hinoko library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki hinoko.
+
+%package static
+Summary: Static hinoko library
+Summary(pl.UTF-8): Statyczna biblioteka hinoko
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static hinoko library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka hinoko.
+
+%package apidocs
+Summary: API documentation for hinoko library
+Summary(pl.UTF-8): Dokumentacja API biblioteki hinoko
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for hinoko library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki hinoko.
+
+%prep
+%setup -q -n hinoko-%{version}
+
+%build
+%meson build \
+ %{?with_apidocs:-Ddoc=true}
+
+%ninja_build -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%ninja_install -C build
+
+%if %{with apidocs}
+# FIXME: where to package gi-docgen generated docs?
+install -d $RPM_BUILD_ROOT%{_gtkdocdir}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/hinoko $RPM_BUILD_ROOT%{_gtkdocdir}
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%attr(755,root,root) %{_libdir}/libhinoko.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhinoko.so.0
+%{_libdir}/girepository-1.0/Hinoko-0.0.typelib
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhinoko.so
+%{_includedir}/hinoko
+%{_datadir}/gir-1.0/Hinoko-0.0.gir
+%{_pkgconfigdir}/hinoko.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libhinoko.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/hinoko
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libhinoko.git/commitdiff/348a1d39e8a9ac7266a363f7114e82334f77af0d
More information about the pld-cvs-commit
mailing list