This repository has been archived by the owner on Dec 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cinecutie-current.spec.in
125 lines (102 loc) · 3.21 KB
/
cinecutie-current.spec.in
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# This is not relocatable
%define prefix /usr
# macros
%define with_OPENGL 1
%{?_with_opengl: %{expand: %%global with_OPENGL 1}}
Summary: Cinecutie
Name: cinecutie
Version: @[email protected]
%if %{with_OPENGL}
##Version: @VERSION@.%{build_nick}.opengl
Release: %{build_nick}.%(date '+%Y%m%d').opengl
%else
##Version: @VERSION@.%{build_nick}
Release: %{build_nick}.%(date '+%Y%m%d')
%endif
##Release: %(date '+%Y%m%d')
License: GPL
Group: Productivity/Multimedia/Video/Editors and Convertors
URL: http://www.akiradproject.net
Source0: %{name}-@[email protected]
BuildRoot: %{_tmppath}/%{name}-@VERSION@-%{release}-buildroot
Requires: mjpegtools >= 1.6.3
%if %suse_version > 1000
BuildRequires: xorg-x11 xorg-x11-devel mjpegtools >= 1.6.3 mjpegtools-devel
BuildRequires: alsa-devel libogg-devel
BuildRequires: libvorbis-devel libtheora-devel OpenEXR-devel libdv-devel
BuildRequires: libpng-devel libjpeg-devel mjpegtools-devel fftw3-devel a52dec
BuildRequires: faad2-devel faac libiec61883-devel esound-devel lame
BuildRequires: e2fsprogs-devel libsndfile-devel nasm gcc gcc-c++ libtiff-devel
BuildRequires: libopenjpeg-devel libspeex-devel
# libpng-devel-32bit libjpeg-devel-32bit e2fsprogs-devel-32bit
# libtiff-devel-32bit
# non-suse repo
BuildRequires: x264-devel
%endif
Provides: cinecutie
%description
%if %{with_OPENGL}
Cinecutie package
build options: --with opengl
%else
Cinecutie package
without OpenGL support
build options: [none]
%endif
%prep
%setup -n %{name}-@VERSION@
%build
%if %{with_OPENGL}
./configure --prefix=%{prefix} --libdir=%_libdir --with-plugindir=%{_libdir}/cinecutie --enable-freetype2 --enable-xft --with-buildinfo=cust/"1.0.0 r005 SUSE" --enable-opengl
%else
./configure --prefix=%{prefix} --libdir=%_libdir --with-plugindir=%{_libdir}/cinecutie --enable-freetype2 --enable-xft --with-buildinfo=cust/"1.0.0 r005 SUSE"
%endif
%{__make} %{?_smp_mflags} %{?mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# rename the mpeg3 utils so they can be installed alongside SuSE native versions
( cd $RPM_BUILD_ROOT%{prefix}/bin
mv mpeg3toc mpeg3toc.cc
mv mpeg3cat mpeg3cat.cc
mv mpeg3dump mpeg3dump.cc
ln -s /usr/bin/mpeg2enc $RPM_BUILD_ROOT%{_libdir}/cinecutie/mpeg2enc
)
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc
#%{prefix}/bin/*
%{prefix}/bin/cinecutie
# missing in the 2.0 build?
#%{prefix}/bin/mplexhi
%{prefix}/bin/mplexlo
#%exclude %{prefix}/bin/mpeg3dump
#%exclude %{prefix}/bin/mpeg3toc
#%exclude %{prefix}/bin/mpeg3cat
%{prefix}/bin/mpeg3dump.cc
%{prefix}/bin/mpeg3toc.cc
%{prefix}/bin/mpeg3cat.cc
%{prefix}/bin/cinecutie-rawc-convert
%{prefix}/share/locale/*
%exclude %{prefix}/include/*
%{_libdir}/cinecutie/*.so
%{_libdir}/cinecutie/mpeg2enc.plugin
%{_libdir}/cinecutie/shapewipe/*
# remove below for no static libs
# %exclude %{_libdir}/lib/cinecutie/*.a
%exclude %{_libdir}/cinecutie/*.la
%{_libdir}/cinecutie/fonts/*
%{_libdir}/libcinecutie*
%{_libdir}/libmpeg3cc*
%{_libdir}/libquicktimecc*
# missing in 2.0
#%{prefix}/lib/libsndfilehv*
#%{prefix}/lib/pkgconfig*
%{prefix}/share/applications/cinecutie.desktop
%{prefix}/share/pixmaps/cinecutie.png
%changelog
* Fri Feb 26 2010 Brosius <[email protected]> - 1.0.0-cobra-date
- 005rc
- Cinecutie now open more video/audio format