File fswebcam.spec of Package fswebcam
#
# spec file for package fswebcam
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: fswebcam
Version: 20240816
Release: %mkrel 1
Summary: Tiny and flexible webcam program
License: GPL-2.0+
Group: Productivity/Multimedia/Other
Url: http://www.firestorm.cx/fswebcam/
Source0: %{name}-%{version}.tar.gz
BuildRequires: lib64fontconfig-devel
BuildRequires: lib64freetype2-devel
BuildRequires: lib64gd-devel > 2
BuildRequires: lib64jpeg-devel
Requires: lib64gd3 > 2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
fswebcam is a neat and simple webcam app. It captures images from a V4L1/V4L2 compatible device or file,
averages them to reduce noise and draws a caption using the GD Graphics Library which also handles compressing
the image to PNG or JPEG. The resulting image is saved to a file or sent to stdio where it can be piped to
something like ncftpput or scp.
%global debug_package %{nil}
%prep
%setup -q
%build
%configure --prefix=%{_prefix} --enable-32bit-buffer
make %{?_smp_mflags}
%install
install -D -s -m 755 %{name} %{buildroot}/%{_bindir}/%{name}
install -D -m 644 %{name}.1.gz %{buildroot}/%{_mandir}/man1/%{name}.1.gz
install -D -m 644 example.conf %{buildroot}/%{_sysconfdir}/%{name}.conf
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%doc CHANGELOG LICENSE README
%changelog