diff --git a/guvcview-src-2.0.8.tar.bz2 b/guvcview-src-2.0.8.tar.bz2 new file mode 100644 index 0000000000000000000000000000000000000000..2d887c065b5c34111d01d7098fd3b7c12934097d Binary files /dev/null and b/guvcview-src-2.0.8.tar.bz2 differ diff --git a/guvcview.spec b/guvcview.spec new file mode 100644 index 0000000000000000000000000000000000000000..1e4910f6f0f30b7fa040f8ec8f58930b8e746b5f --- /dev/null +++ b/guvcview.spec @@ -0,0 +1,119 @@ +%global somajor 2 + +Name: guvcview +Version: 2.0.8 +Release: 1 +Summary: GTK+ UVC Viewer and Capturer +License: GPL-2.0-or-later +URL: http://guvcview.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2 + +BuildRequires: autoconf automake libtool +BuildRequires: gettext-devel intltool +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(libv4l2) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(libusb-1.0) +BuildRequires: pkgconfig(libavcodec) +BuildRequires: pkgconfig(libpng) +BuildRequires: pkgconfig(sdl2) +BuildRequires: pkgconfig(gsl) +BuildRequires: pkgconfig(portaudio-2.0) +BuildRequires: pkgconfig(libpulse) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib + +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: hicolor-icon-theme + +%description +A simple GTK interface for capturing and viewing video from devices +supported by the Linux UVC driver, although it should also work with +any v4l2 compatible device. + + +%package libs +Summary: Libraries for %{name} + +%description libs +A simple GTK interface for capturing and viewing video from devices +supported by the Linux UVC driver, although it should also work with +any v4l2 compatible device. + +This package contains the libraries for applications to use %{name}. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} + +%description devel +A simple GTK interface for capturing and viewing video from devices +supported by the Linux UVC driver, although it should also work with +any v4l2 compatible device. + +This package contains development files for %{name}. + + +%prep +%autosetup -p1 -n %{name}-src-%{version} +find . \( -name '*.h' -o -name '*.c' \) -exec chmod -x {} \; + + +%build +./bootstrap.sh +%configure CC=gcc CXX=g++ --disable-debian-menu --disable-silent-rules --disable-static +%make_build + + +%install +%make_install doc_DATA= + +install -D -m0644 %{buildroot}%{_datadir}/pixmaps/%{name}/%{name}.png \ + %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png + +find %{buildroot} -name "*.la" -delete + +%find_lang %{name} --all-name + + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{name}.appdata.xml + + +%files -f %{name}.lang +%doc AUTHORS ChangeLog README.md +%license COPYING +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/*/%{name}.* +%{_datadir}/pixmaps/%{name}/ +%{_mandir}/man1/%{name}.1* +%{_metainfodir}/%{name}.appdata.xml + + +%files libs +%license COPYING +%{_libdir}/libgviewaudio-2.0.so.%{somajor}{,.*} +%{_libdir}/libgviewencoder-2.1.so.%{somajor}{,.*} +%{_libdir}/libgviewrender-2.1.so.%{somajor}{,.*} +%{_libdir}/libgviewv4l2core-2.1.so.%{somajor}{,.*} + + +%files devel +%{_includedir}/%{name}-%{somajor}/ +%{_libdir}/libgviewaudio.so +%{_libdir}/libgviewencoder.so +%{_libdir}/libgviewrender.so +%{_libdir}/libgviewv4l2core.so +%{_libdir}/pkgconfig/libgviewaudio.pc +%{_libdir}/pkgconfig/libgviewencoder.pc +%{_libdir}/pkgconfig/libgviewrender.pc +%{_libdir}/pkgconfig/libgviewv4l2core.pc + + +%changelog +* Mon Feb 12 2024 misaka00251 - 2.0.8-1 +- Init packag diff --git a/guvcview.yaml b/guvcview.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bcb8bcb07357b1cc6bfe2a77b2bb55dfbfcb3250 --- /dev/null +++ b/guvcview.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://sourceforge.net/projects/guvcview/ +tag_prefix: "^v" +separator: "."