]> git.pld-linux.org Git - packages/ustreamer.git/blob - ustreamer.spec
new
[packages/ustreamer.git] / ustreamer.spec
1 Summary:        Lightweight and fast MJPEG-HTTP streamer
2 Name:           ustreamer
3 Version:        5.31
4 Release:        1
5 License:        GPL v3
6 Group:          Applications/Multimedia
7 Source0:        https://github.com/pikvm/ustreamer/archive/v%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  ef8230570a937c1d3a69431461f0faa4
9 URL:            https://github.com/pikvm/ustreamer
10 BuildRequires:  libbsd-devel
11 BuildRequires:  libevent-devel
12 BuildRequires:  libgpiod-devel
13 BuildRequires:  libjpeg-devel
14 BuildRequires:  systemd-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 µStreamer is a lightweight and very quick server to stream MJPEG video
19 from any V4L2 device to the net.
20
21 %prep
22 %setup -q
23
24 %build
25 %{__make} \
26         CC="%{__cc}" \
27         CFLAGS="%{rpmcppflags} %{rpmcflags}" \
28         LDFLAGS="%{rpmldflags}" \
29         WITH_GPIO=1 \
30         WITH_SYSTEMD=1
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34
35 %{__make} install \
36         DESTDIR=$RPM_BUILD_ROOT \
37         PREFIX="%{_prefix}" \
38         MANPREFIX="%{_mandir}"
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %files
44 %defattr(644,root,root,755)
45 %doc README.md docs/*.md
46 %lang(ru) %doc README.ru.md
47 %attr(755,root,root) %{_bindir}/ustreamer
48 %attr(755,root,root) %{_bindir}/ustreamer-dump
49 %{_mandir}/man1/ustreamer.1*
50 %{_mandir}/man1/ustreamer-dump.1*
This page took 0.108642 seconds and 3 git commands to generate.