Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/libunicap.git#0141aca1b78ccabec3b8ff30466a162bd7efd9d4
This commit is contained in:
DistroBaker 2020-12-31 13:56:39 +00:00
parent 21d2f3904e
commit d421aff092
3 changed files with 32 additions and 42 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
libunicap-0.9.12.tar.gz /libunicap-*.tar.gz

View File

@ -9,8 +9,8 @@ Name: libunicap
Version: 0.9.12 Version: 0.9.12
Release: 27%{?dist} Release: 27%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.unicap-imaging.org/ URL: https://www.unicap-imaging.org/
Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz Source0: https://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
Source1: %{name}-filter.sh Source1: %{name}-filter.sh
Patch0: libunicap-0.9.12-includes.patch Patch0: libunicap-0.9.12-includes.patch
Patch1: libunicap-0.9.12-memerrs.patch Patch1: libunicap-0.9.12-memerrs.patch
@ -21,15 +21,12 @@ Patch5: libunicap-bz642118.patch
Patch6: libunicap-0.9.12-videodev.patch Patch6: libunicap-0.9.12-videodev.patch
Patch7: libunicap-0.9.12-datadirname.patch Patch7: libunicap-0.9.12-datadirname.patch
Patch8: libunicap-0.9.12-gcc10.patch Patch8: libunicap-0.9.12-gcc10.patch
BuildRequires: intltool, /usr/bin/perl, perl(XML::Parser), gettext, gtk-doc >= 1.4 BuildRequires: gcc, make, systemd, glib2-devel >= 2.10.0
BuildRequires: glib2-devel >= 2.10.0 BuildRequires: intltool, %{_bindir}/perl, perl(XML::Parser), gettext, gtk-doc >= 1.4
%ifnarch s390 s390x %ifnarch s390 s390x
BuildRequires: libraw1394-devel >= 1.1.0 BuildRequires: libraw1394-devel >= 1.1.0
%endif %endif
BuildRequires: libv4l-devel >= 0.8.3-1, libtool, automake, autoconf BuildRequires: libv4l-devel >= 0.8.3-1, libtool, automake, autoconf
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
BuildRequires: systemd
%endif
Obsoletes: unicap <= 0.9.7-1 Obsoletes: unicap <= 0.9.7-1
%description %description
@ -42,7 +39,7 @@ CPU usage even on low-speed architectures.
%package devel %package devel
Summary: Development files for the unicap library Summary: Development files for the unicap library
Requires: %{name} = %{version}-%{release}, pkgconfig Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig
Obsoletes: unicap-devel <= 0.9.7-1 Obsoletes: unicap-devel <= 0.9.7-1
%description devel %description devel
@ -58,9 +55,7 @@ API documentation of the library, too.
%patch3 -p1 %patch3 -p1
%patch4 -p1 %patch4 -p1
%patch5 -p1 %patch5 -p1
%if 0%{?rhel}%{?fedora} >= 7
%patch6 -p1 %patch6 -p1
%endif
%patch7 -p1 %patch7 -p1
%patch8 -p1 %patch8 -p1
@ -86,30 +81,25 @@ sed -e 's/\(SYSFS\|ATTRS\)/ATTRS/g' -i $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.
touch -c -r {data,$RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d}/50-euvccam.rules touch -c -r {data,$RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d}/50-euvccam.rules
# Move udev rules file to appropriate rules directory # Move udev rules file to appropriate rules directory
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7
mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir}/ mkdir -p $RPM_BUILD_ROOT%{_udevrulesdir}/
mv -f $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/50-euvccam.rules $RPM_BUILD_ROOT%{_udevrulesdir}/ mv -f $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/50-euvccam.rules $RPM_BUILD_ROOT%{_udevrulesdir}/
%endif
%find_lang unicap %find_lang unicap
%ldconfig_scriptlets %ldconfig_scriptlets
%files -f unicap.lang %files -f unicap.lang
%doc AUTHORS ChangeLog COPYING README %license COPYING
%if 0%{?fedora} >= 17 || 0%{?rhel} >= 7 %doc AUTHORS ChangeLog README
%{_udevrulesdir}/50-euvccam.rules %{_udevrulesdir}/50-euvccam.rules
%else
%config %{_sysconfdir}/udev/rules.d/50-euvccam.rules
%endif
%{_libdir}/%{name}.so.* %{_libdir}/%{name}.so.*
%{_libdir}/unicap2 %{_libdir}/unicap2/
%files devel %files devel
%{_libdir}/%{name}.so %{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/unicap %{_includedir}/unicap/
%{_datadir}/gtk-doc/html/%{name} %{_datadir}/gtk-doc/html/%{name}/
%changelog %changelog
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-27 * Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-27

View File

@ -1 +1 @@
353657b4da519251d4cc6dee5a232391 libunicap-0.9.12.tar.gz SHA512 (libunicap-0.9.12.tar.gz) = 9111ddf196b3a6087a6b94a6c5e4bd841e416e4d0079b6481f770f361963db95e1d463b62d58ef599242ab15e4a58ef840932ab5c73df735ef5821f873db14fb