%set_verify_elf_method no
%add_strip_skiplist %_libdir/*
%set_findreq_skiplist %_libdir/* /opt/MainActor_V5/libraries/*

Name: MainActor
Version: 5.2.12
Release: alt1

Summary: Complete production environment for audio and video.
License: Commercial, 1999-2004 by MainConcept AG
Vendor: MainConcept AG
Group: Video
URL: http://www.mainconcept.com/mainactor_v5.shtml

Source: mainactorv5.2.12-1.i686.rpm
Source1: %name-16x16.xpm
Source2: %name-32x32.xpm
Source3: %name-48x48.xpm

%description
MainActor V5 is the successor of the popular MainActor 3.65.The new version of the
video-editing software contains a lot of improved features of the old edition as well as
numerous new functions which make it easy to edit your videos in professional quality.

The powerful MainActor v5 allows you to capture, edit and export your videos with your
computer. Our new software offers innumerable audio and video tracks for working on a
project. You can add transitions and effects to the clips in order to produce professional
videos. The MainConcept product offers the time-saving backround rendering as well as
fast rendering and smartrendering for enhancing the productivity. The windows-based
interface helps you to have all the important functions within easy reach. You can arrange
the differnt windows according to your wishes, i.e you can create your individual interface.

%prep

%build

%install
%__mkdir_p $RPM_BUILD_ROOT
pushd $RPM_BUILD_ROOT
rpm2cpio %SOURCE0 > mainactor.cpio
%__cpio -idm < mainactor.cpio
%__rm mainactor.cpio
popd

# Install icons
install -D -m 644 %SOURCE1 $RPM_BUILD_ROOT%_miconsdir/%name.xpm
install -D -m 644 %SOURCE2 $RPM_BUILD_ROOT%_iconsdir/%name.xpm
install -D -m 644 %SOURCE3 $RPM_BUILD_ROOT%_liconsdir/%name.xpm

# menu support
install -d $RPM_BUILD_ROOT%_menudir
cat << EOF > $RPM_BUILD_ROOT%_menudir/%name
?package(%name): longtitle="%summary" \
command="%_bindir/mactor" title="%name"  needs="x11" \
section="Multimedia/Video" \
icon="%name.xpm"
EOF


%post
%update_menus

%postun
%clean_menus


%files
/opt/MainActor_V5/*
%_bindir/*
%_libdir/*
%_miconsdir/%name.xpm
%_iconsdir/%name.xpm
%_liconsdir/%name.xpm
%_menudir/%name

%changelog
* Thu Dec 23 2004 Alexander Belov <asbel@altlinux.ru> 5.2.12-alt1
- Init build for ALT
