michael@115: ## michael@115: ## yamdi.spec -- OpenPKG RPM Specification michael@115: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@115: ## michael@115: ## Permission to use, copy, modify, and distribute this software for michael@115: ## any purpose with or without fee is hereby granted, provided that michael@115: ## the above copyright notice and this permission notice appear in all michael@115: ## copies. michael@115: ## michael@115: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@115: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@115: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@115: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@115: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@115: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@115: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@115: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@115: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@115: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@115: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@115: ## SUCH DAMAGE. michael@115: ## michael@115: michael@115: michael@115: # package information michael@115: Name: yamdi michael@115: Summary: FLV metaData injector michael@115: URL: http://yamdi.sourceforge.net/ michael@115: Vendor: Ingo Oppermann michael@115: Packager: Michael Schloh von Bennewitz michael@387: Distribution: Europalab Networks Production michael@115: Class: EVAL michael@115: Group: Flash michael@115: License: BSD michael@115: Version: 1.4 michael@115: Release: 20090106 michael@115: michael@115: # list of sources michael@115: Source0: http://switch.dl.sourceforge.net/yamdi/yamdi-%{version}.tar.gz michael@115: michael@115: # build information michael@115: Prefix: %{l_prefix} michael@115: BuildRoot: %{l_buildroot} michael@115: BuildPreReq: OpenPKG, openpkg >= 20040130 michael@115: PreReq: OpenPKG, openpkg >= 20040130 michael@115: AutoReq: no michael@115: AutoReqProv: no michael@115: michael@115: %description michael@115: Yamdi is a metadata injector. It adds the following metadata michael@115: into FLV files: creator, metadatacreator, hasKeyframes, michael@115: hasVideo, hasAudio, hasMetaData, canSeekToEnd, duration, michael@115: datasize, videosize, videocodecid, audiosize, audiocodecid, michael@115: audiosamplerate, audiosamplesize, stereo, filesize, michael@115: lasttimestamp, lastkeyframetimestamp, lastkeyframelocation, michael@115: keyframes (filepositions, times), width, height, framerate, michael@115: videodatarate, and audiodatarate. michael@115: michael@115: Additionally, yamdi will inject the onLastSecond event into michael@115: FLV files when directed to do so with a command line option. michael@115: michael@115: %track michael@115: prog yamdi = { michael@115: version = %{version} michael@115: url = http://prdownloads.sourceforge.net/yamdi/ michael@115: regex = yamdi-(__VER__)\.tar\.gz michael@115: } michael@115: michael@115: %prep michael@115: # unpack sources michael@115: %setup -q michael@115: michael@115: # correct build configuration michael@115: %{l_shtool} subst \ michael@115: -e 's;-m 4755;-m 755;' \ michael@115: -e 's;\ \ *-o root;;' \ michael@115: -e "s;\(\$(DESTDIR)\)/usr/bin;\1%{l_prefix}/bin/;" \ michael@115: Makefile michael@115: michael@115: %build michael@115: # build using parallel make michael@115: CC="%{l_cc}" CFLAGS="%{l_cflags -O}" %{l_make} %{l_mflags -O} michael@115: michael@115: %install michael@115: # remove previously existing installations michael@115: rm -rf $RPM_BUILD_ROOT michael@115: michael@115: # create installation paths michael@115: %{l_shtool} mkdir -f -p -m 755 \ michael@115: $RPM_BUILD_ROOT%{l_prefix}/bin michael@115: michael@115: # run the native installation logic michael@115: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@115: michael@115: # determine installation files michael@115: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@115: michael@115: %files -f files michael@115: michael@115: %clean michael@115: rm -rf $RPM_BUILD_ROOT michael@115: