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