-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvideo-mixer.spec
88 lines (70 loc) · 2.37 KB
/
video-mixer.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name: video-mixer
Provides: video-mixer
Version: 1.0.0
Release: 1%{?dist}
License: LGPL-2.1+
Source: %{name}.tar.gz
URL: http://softus.org/products/beryllium
Vendor: Softus Inc. <[email protected]>
Packager: Softus Inc. <[email protected]>
Summary: Video mixer
%description
Video mixer.
Combines multiple video streams into one.
%global debug_package %{nil}
Requires(pre): /usr/sbin/useradd
Requires(postun): /usr/sbin/userdel
BuildRequires: make, gcc-c++, systemd
%{?fedora:BuildRequires: gstreamer1-devel, qt5-qtbase-devel, qt5-gstreamer-devel}
%{?fedora:Requires: gstreamer1-plugins-base, gstreamer1-plugins-good, gstreamer1-plugins-bad-free}
%{?rhel:BuildRequires: gstreamer1-devel, qt5-qtbase-devel}
%{?rhel:Requires: gstreamer1-plugins-base, gstreamer1-plugins-good, gstreamer1-plugins-bad-free}
%{?suse_version:BuildRequires: libqt5-linguist, libqt5-qtbase-devel, gstreamer-plugins-qt5-devel}
%{?suse_version:Requires: gstreamer-plugins-base, gstreamer-plugins-good, gstreamer-plugins-bad}
%if 0%{?mageia}
%define qmake qmake
%define lrelease lrelease
BuildRequires: qttools5
%ifarch x86_64 amd64
BuildRequires: lib64qt5-gstreamer-devel, lib64boost-devel, lib64gstreamer1.0-devel, lib64gstreamer-plugins-base1.0-devel, lib64qt5base5-devel
Requires: lib64gstreamer-plugins-base1.0_0
%else
BuildRequires: libqt5-gstreamer-devel, libboost-devel, libgstreamer1.0-devel, libgstreamer-plugins-base1.0-devel, libqt5base5-devel
Requires: libgstreamer-plugins-base1.0_0
%endif
%else
%define qmake qmake-qt5
%define lrelease lrelease-qt5
%endif
%prep
%setup -c %{name}
%build
%{qmake} PREFIX=%{_prefix} QMAKE_CFLAGS+="%optflags" QMAKE_CXXFLAGS+="%optflags";
make %{?_smp_mflags};
%install
make install INSTALL_ROOT="%buildroot"
%files
%defattr(-,root,root)
%doc docs/*
%config(noreplace) %{_sysconfdir}/xdg/softus.org/%{name}.conf
%config(noreplace) %{_sysconfdir}/rsyslog.d/99-%{name}.conf
%{_mandir}/man1/%{name}.1.*
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%pre
/usr/sbin/groupadd -r %{name} || :
/usr/sbin/useradd -rmb /var/lib -s /sbin/nologin -g %{name} %{name} || :
chown %{name}:%{name} /var/lib/%{name}
chmod 775 /var/lib/%{name}
%post
systemctl enable %{name}
service %{name} start || :
%preun
service %{name} stop || :
%postun
/usr/sbin/userdel %{name} || :
/usr/sbin/groupdel %{name} || :
%changelog
* Mon Jul 20 2015 Pavel Bludov <[email protected]>
+ Version 0.0.1
- Initial version.