bcd285ac9240513af2f4254196e42d5e9f735a66
[goodguy/cinelerra.git] / cinelerra-5.1 / blds / cinelerra.spec
1 %define ver 20180930
2 %define cin cinelerra
3 Summary: Multimedia Editing and construction
4
5 %if 0%{?hidepth}
6 %define xbit 10bit
7 %define xcfg --enable-x265_hidepth --with-exec-name=cinx
8 %endif
9
10 Name: %{cin}%{?xbit}
11 Version: 5.1
12 Release: %{ver}
13 License: GPL
14 Group: Applications/Multimedia
15 URL: http://cinelerra-cv.org/
16
17 # Obtained from :
18 # git clone git://git.cinelerra.org/goodguy/cinelerra.git cinelerra5
19 Source0: %{cin}-%{version}-%{ver}.tar.bz2
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
21
22 %if 0%{?fedora}%{?centos}
23 %define rhat 1
24 %endif
25
26 BuildRequires: autoconf
27 BuildRequires: automake
28 BuildRequires: cmake
29 BuildRequires: binutils
30 BuildRequires: ctags
31 BuildRequires: flac-devel
32 BuildRequires: freetype-devel
33 BuildRequires: gcc-c++
34 BuildRequires: gettext-devel
35 BuildRequires: git
36 BuildRequires: inkscape
37 BuildRequires: libpng-devel
38 BuildRequires: libXft-devel
39 BuildRequires: libXinerama-devel
40 BuildRequires: libXv-devel
41 BuildRequires: nasm
42 BuildRequires: ncurses-devel
43 BuildRequires: texinfo
44 BuildRequires: udftools
45 BuildRequires: gtk2-devel
46 %{?rhat:BuildRequires: alsa-lib-devel}
47 %{?rhat:BuildRequires: bzip2-devel}
48 %{?rhat:BuildRequires: xorg-x11-fonts-cyrillic}
49 %{?rhat:BuildRequires: xorg-x11-fonts-cyrillic}
50 %{?rhat:BuildRequires: xorg-x11-fonts-ISO8859-1-100dpi}
51 %{?rhat:BuildRequires: xorg-x11-fonts-ISO8859-1-75dpi}
52 %{?rhat:BuildRequires: xorg-x11-fonts-misc}
53 %{?rhat:BuildRequires: xorg-x11-fonts-Type1}
54 %{?suse:BuildRequires: alsa-devel}
55 %{?suse:BuildRequires: libbz2-devel}
56 %{?suse:BuildRequires: bitstream-vera-fonts}
57 %{?suse:BuildRequires: xorg-x11-fonts-core}
58 %{?suse:BuildRequires: xorg-x11-fonts}
59 %{?suse:BuildRequires: dejavu-fonts}
60 %{?suse:BuildRequires: libnuma-devel}
61 BuildRequires: xz-devel
62 BuildRequires: yasm
63 BuildRequires: zlib-devel
64
65 %description
66 Multimedia editing and construction
67
68 %prep
69 %define _buildsubdir %{cin}-%{version}
70 %setup -q -n %{cin}-%{version}
71 %build
72 ./autogen.sh
73 %configure %{?xcfg}
74 %{__make}
75
76 %install
77 %make_install
78
79 %clean
80 %{__rm} -rf %{buildroot}
81
82 %files
83 %defattr(-, root, root, -)
84 %{_bindir}/*
85 %{_libdir}/*
86 %{_datadir}/*
87
88 %exclude /usr/src/debug
89 %exclude /usr/lib/debug
90
91 %changelog
92