]>
Commit | Line | Data |
---|---|---|
d6dcd492 | 1 | |
b7677e2a | 2 | # TODO |
e9efba0b | 3 | # - some platform-independent left in %{_libdir} |
b7677e2a | 4 | |
9b44bde4 | 5 | %define _sname lives |
d6dcd492 | 6 | |
4a4619c2 | 7 | Summary: LiVES - the Linux Video Editing System |
c351d0e3 | 8 | Summary(pl.UTF-8): LiVES - Linuksowy System Edycji Video |
d6dcd492 | 9 | Name: LiVES |
3d5df68d | 10 | Version: 0.9.6 |
849a345a | 11 | Release: 1 |
d6dcd492 JW |
12 | License: GPL v2 |
13 | Group: X11/Applications/Multimedia | |
849a345a | 14 | Source0: http://www.xs4all.nl/%7Esalsaman/lives/current/%{name}-%{version}.tar.bz2 |
3d5df68d | 15 | # Source0-md5: 71bc3a29d0d37a8ca88370a3499741d4 |
d6dcd492 | 16 | Source1: %{name}.desktop |
3d5df68d | 17 | Patch0: %{name}-FHS.patch |
367a2a7a | 18 | URL: http://www.xs4all.nl/~salsaman/lives/ |
36301c5d | 19 | BuildRequires: SDL-devel |
f3036fec | 20 | BuildRequires: automake >= 1:1.7 |
4988e69e | 21 | BuildRequires: autoconf >= 2.57 |
f3036fec JB |
22 | BuildRequires: gettext-devel >= 0.14.1 |
23 | BuildRequires: gtk+2-devel >= 2.0.0 | |
24 | BuildRequires: libtheora-devel | |
239529e3 | 25 | BuildRequires: libtool |
f3036fec | 26 | BuildRequires: libvisual-devel |
36301c5d | 27 | BuildRequires: mjpegtools-devel |
bf72b26e | 28 | BuildRequires: pkgconfig |
e9efba0b | 29 | BuildRequires: sed >= 4.0 |
0149db1a | 30 | BuildRequires: xorg-util-imake |
f3036fec | 31 | Requires: %{name}-plugins = %{version}-%{release} |
4988e69e | 32 | Requires: ImageMagick >= 5 |
36301c5d | 33 | Requires: ffmpeg |
9b44bde4 | 34 | Requires: mplayer >= 0.90rc1 |
4988e69e | 35 | Requires: ogmtools |
4a4619c2 | 36 | Requires: perl-base |
b515bd9c | 37 | Requires: python >= 1:2.3 |
4988e69e | 38 | Requires: sox |
39 | Requires: transcode | |
d6dcd492 JW |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
0cfe8d85 | 42 | # workaround for the next change |
43 | %define _localedir %{_usr}/share/locale | |
e9efba0b JB |
44 | # platform-dependent plugins in %{_datadir} |
45 | %define _datadir %{_libdir} | |
4a4619c2 | 46 | %define _themesdir %{_datadir}/%{_sname}/themes |
e9efba0b JB |
47 | # shared objects without .so (e.g. SDL), which we don't want to provide |
48 | %define _noautoprovfiles ^%{_datadir}/%{_sname}/.* | |
4a4619c2 | 49 | |
d6dcd492 | 50 | %description |
367a2a7a AG |
51 | LiVES began as the Linux Video Editing System. Since it now runs on |
52 | more operating systems, LiVES is a Video Editing System. It is | |
53 | designed to be simple to use, yet powerful. It is small in size, yet | |
54 | it has many advanced features. | |
d6dcd492 | 55 | |
fd1e461e JR |
56 | %description -l pl.UTF-8 |
57 | LiVES zaczynał jako Linuksowy System Edycji Video. Obecnie można | |
58 | również uruchomić go na większej liczbie systemów operacyjnych. | |
59 | Zaprojektowany został tak, by być zarówno prostym w użyciu jak | |
60 | i mimo niewielkiego rozmiaru posiadać zaawansowane funkcje. | |
d6dcd492 JW |
61 | |
62 | %package plugins | |
367a2a7a | 63 | Summary: Plugins for LiVES |
c351d0e3 | 64 | Summary(pl.UTF-8): Wtyczki dla LiVES |
367a2a7a | 65 | Group: X11/Applications/Multimedia |
4a4619c2 | 66 | Requires: %{name} = %{version}-%{release} |
d6dcd492 JW |
67 | |
68 | %description plugins | |
073ebf76 | 69 | Plugins for LiVES. |
d6dcd492 | 70 | |
fd1e461e | 71 | %description plugins -l pl.UTF-8 |
073ebf76 | 72 | Wtyczki (plugins) dla LiVES. |
d6dcd492 | 73 | |
d6dcd492 | 74 | %package themes |
367a2a7a | 75 | Summary: Themes for LiVES |
c351d0e3 | 76 | Summary(pl.UTF-8): Motywy dla LiVES |
367a2a7a | 77 | Group: Themes/GTK+ |
4a4619c2 | 78 | Requires: %{name} = %{version}-%{release} |
d6dcd492 | 79 | |
367a2a7a | 80 | %description themes |
073ebf76 | 81 | Themes for LiVES. |
d6dcd492 | 82 | |
fd1e461e | 83 | %description themes -l pl.UTF-8 |
073ebf76 | 84 | Motywy dla LiVES. |
d6dcd492 | 85 | |
d6dcd492 | 86 | %prep |
849a345a | 87 | %setup -qn %{_sname}-%{version} |
d6dcd492 | 88 | %patch0 -p1 |
d6dcd492 | 89 | |
e9efba0b JB |
90 | # wrrr |
91 | sed -i -e 's,/share/,/%{_lib}/,' po/pxgettext po/make_rfx_builtin_list.pl | |
92 | ||
d6dcd492 | 93 | %build |
bb3cb93e KK |
94 | %{__aclocal} -I m4 |
95 | %{__autoconf} | |
96 | %{__automake} | |
e9efba0b JB |
97 | # hack: DATADIRNAME defined too late in configure |
98 | %configure \ | |
99 | DATADIRNAME=share | |
36301c5d | 100 | %{__make} \ |
101 | CFLAGS="%{rpmcflags} -fPIC" | |
d6dcd492 JW |
102 | |
103 | %install | |
104 | rm -rf $RPM_BUILD_ROOT | |
bb3cb93e KK |
105 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
106 | install -d $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered | |
107 | for i in lives-plugins/plugins/effects/RFXscripts/*.script ; do | |
108 | ./build-lives-rfx-plugin $i $RPM_BUILD_ROOT%{_datadir}/lives/plugins/effects/rendered | |
109 | done | |
d6dcd492 | 110 | |
e9efba0b | 111 | # hack: override localedir because of redefined datadir |
d6dcd492 | 112 | %{__make} install \ |
e9efba0b | 113 | DESTDIR=$RPM_BUILD_ROOT \ |
0cfe8d85 | 114 | localedir=%{_localedir} |
d6dcd492 | 115 | |
9b44bde4 | 116 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
849a345a | 117 | mv $RPM_BUILD_ROOT%{_docdir}/%{_sname}-%{version} \ |
535cfb99 | 118 | $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
d6dcd492 | 119 | |
0cfe8d85 | 120 | mv -f $RPM_BUILD_ROOT%{_localedir}/{cz,cs} |
121 | mv -f $RPM_BUILD_ROOT%{_localedir}/nl{_NL,} | |
b2d7a9a9 | 122 | |
535cfb99 | 123 | %find_lang %{_sname} |
bbbf5774 | 124 | |
d6dcd492 JW |
125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
535cfb99 | 128 | %files -f %{_sname}.lang |
d6dcd492 | 129 | %defattr(644,root,root,755) |
f3036fec | 130 | %doc AUTHORS BUGS CHANGELOG FEATURES GETTING.STARTED NEWS RFX OMC |
d6dcd492 | 131 | %attr(755,root,root) %{_bindir}/* |
4a4619c2 | 132 | %dir %{_datadir}/%{_sname} |
d6dcd492 JW |
133 | %{_datadir}/%{_sname}/icons |
134 | %{_desktopdir}/%{name}.desktop | |
4a4619c2 | 135 | %dir %{_themesdir} |
d6dcd492 JW |
136 | %{_themesdir}/default |
137 | ||
138 | %files themes | |
139 | %defattr(644,root,root,755) | |
140 | %{_themesdir}/camera | |
141 | %{_themesdir}/cutting_room | |
367a2a7a | 142 | %{_themesdir}/greenish |
d6dcd492 JW |
143 | %{_themesdir}/pinks |
144 | %{_themesdir}/sunburst | |
535cfb99 | 145 | %{_themesdir}/editor |
d6dcd492 JW |
146 | |
147 | %files plugins | |
148 | %defattr(644,root,root,755) | |
149 | %attr(755,root,root) %{_datadir}/%{_sname}/plugins |