libiec61883/libiec61883.spec
wangbowen 74892ca065 Added 'Buildarch: noarch' to the help subpackage
(cherry picked from commit b02db7c3ac1a7ebc8e382228d68bf5f08eae52ff)
2025-02-21 14:45:45 +08:00

73 lines
1.9 KiB
RPMSpec

Name: libiec61883
Version: 1.2.0
Release: 24
Summary: Streaming library for IEEE1394
License: LGPLv2+
URL: http://ieee1394.wiki.kernel.org/index.php/Libraries#libiec61883
Source: https://mirrors.edge.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.gz
Patch0001: libiec61883-channel-allocation-without-local-node-rw.patch
Recommends: %{name}-help = %{version}-%{release}
BuildRequires: gcc libraw1394-devel
Provides: libiec61883-utils
Obsoletes: libiec61883-utils
%description
libiec61883 is an implementation of IEC 61883.This library provides
a higher level API for streaming DV, MPEG-2 and audio over Linux
IEEE 1394. This includes both reception and transmission.
%package devel
Summary: Development files for libiec61883
Requires: %{name} = %{version}-%{release}
%description devel
Libiec61883-devel contains development files for libiec61883.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build
%install
%make_install
%delete_la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc AUTHORS COPYING
%{_bindir}/*
%{_libdir}/libiec61883.so.*
%files devel
%{_includedir}/libiec61883/*.h
%dir %{_includedir}/libiec61883
%{_libdir}/libiec61883.so
%{_libdir}/pkgconfig/libiec61883.pc
%files help
%doc NEWS README
%{_mandir}/man1/*.1*
%changelog
* Mon Aug 19 2024 wangbowen <wangbowen@cqsoftware.com.cn> - 1.2.0-24
- Replace declaration of help subpackage with the 'package_help' macro
* Thu Nov 12 2020 xinghe <xinghe1@huawei.com> - 1.2.0-23
- add help for Recommends
* Sun Jan 19 2020 yangjian<yangjian79@huawei.com> - 1.2.0-22
- Change the Source to valid address
* Wed Oct 23 2019 yanzhihua <yanzhihua4@huawei.com> - 1.2.0-21
- Package init