Wed, 25 Feb 2009 19:23:10 +0100
Import new package specs for introduction into repository.
The purpose of these packages are for flash video manipulation,
something seemingly missing from the current mtasc, haxe, sswf,
swftools, and adobeflex packages.
1 ##
2 ## yamdi.spec -- OpenPKG RPM Specification
3 ## Copyright (c) 2009 Michael Schloh von Bennewitz <michael@schloh.com>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
25 # package information
26 Name: yamdi
27 Summary: FLV metaData injector
28 URL: http://yamdi.sourceforge.net/
29 Vendor: Ingo Oppermann
30 Packager: Michael Schloh von Bennewitz
31 Distribution: Michael Schloh von Bennewitz
32 Class: EVAL
33 Group: Flash
34 License: BSD
35 Version: 1.4
36 Release: 20090106
38 # list of sources
39 Source0: http://switch.dl.sourceforge.net/yamdi/yamdi-%{version}.tar.gz
41 # build information
42 Prefix: %{l_prefix}
43 BuildRoot: %{l_buildroot}
44 BuildPreReq: OpenPKG, openpkg >= 20040130
45 PreReq: OpenPKG, openpkg >= 20040130
46 AutoReq: no
47 AutoReqProv: no
49 %description
50 Yamdi is a metadata injector. It adds the following metadata
51 into FLV files: creator, metadatacreator, hasKeyframes,
52 hasVideo, hasAudio, hasMetaData, canSeekToEnd, duration,
53 datasize, videosize, videocodecid, audiosize, audiocodecid,
54 audiosamplerate, audiosamplesize, stereo, filesize,
55 lasttimestamp, lastkeyframetimestamp, lastkeyframelocation,
56 keyframes (filepositions, times), width, height, framerate,
57 videodatarate, and audiodatarate.
59 Additionally, yamdi will inject the onLastSecond event into
60 FLV files when directed to do so with a command line option.
62 %track
63 prog yamdi = {
64 version = %{version}
65 url = http://prdownloads.sourceforge.net/yamdi/
66 regex = yamdi-(__VER__)\.tar\.gz
67 }
69 %prep
70 # unpack sources
71 %setup -q
73 # correct build configuration
74 %{l_shtool} subst \
75 -e 's;-m 4755;-m 755;' \
76 -e 's;\ \ *-o root;;' \
77 -e "s;\(\$(DESTDIR)\)/usr/bin;\1%{l_prefix}/bin/;" \
78 Makefile
80 %build
81 # build using parallel make
82 CC="%{l_cc}" CFLAGS="%{l_cflags -O}" %{l_make} %{l_mflags -O}
84 %install
85 # remove previously existing installations
86 rm -rf $RPM_BUILD_ROOT
88 # create installation paths
89 %{l_shtool} mkdir -f -p -m 755 \
90 $RPM_BUILD_ROOT%{l_prefix}/bin
92 # run the native installation logic
93 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
95 # determine installation files
96 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
98 %files -f files
100 %clean
101 rm -rf $RPM_BUILD_ROOT