michael@115: ## michael@115: ## flvtool.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: flvtool michael@115: Summary: Flash video and meta data manipulation michael@115: URL: http://www.inlet-media.de/flvtool2/ michael@115: Vendor: Norman Timmler michael@115: Packager: Michael Schloh von Bennewitz michael@115: Distribution: Michael Schloh von Bennewitz michael@115: Class: EVAL michael@115: Group: Flash michael@115: License: BSD michael@115: Version: 1.0.6 michael@115: Release: 20090106 michael@115: michael@115: # list of sources michael@115: Source0: http://rubyforge.org/frs/download.php/17497/flvtool2-%{version}.tgz michael@115: michael@115: # build information michael@115: Prefix: %{l_prefix} michael@115: BuildRoot: %{l_buildroot} michael@115: BuildPreReq: OpenPKG, openpkg >= 20040130, ruby michael@115: PreReq: OpenPKG, openpkg >= 20040130, ruby michael@115: AutoReq: no michael@115: AutoReqProv: no michael@115: michael@115: %description michael@115: FLVTool2 is a manipulation tool for Macromedia Flash Video files michael@115: (FLV). It can calculate a lot of meta data and insert a onMetaData michael@115: tag. It can cut FLV files and add cue Points (onCuePoint). A debug michael@115: command lets you see inside our FLV and the print command gives you michael@115: meta data information in XML or YAML format. michael@115: michael@115: %track michael@115: prog flvtool = { michael@115: version = %{version} michael@115: url = http://rubyforge.org/frs/download.php/17497/ michael@115: regex = flvtool2-(__VER__)\.tgz michael@115: } michael@115: michael@115: %prep michael@115: # unpack sources michael@115: %setup -q -n flvtool2-%{version} michael@115: michael@115: # correct build configuration michael@115: %{l_shtool} subst \ michael@115: -e 's;\(File.open(path\));\1, :encoding => "ISO-8859-1");g' \ michael@115: setup.rb michael@115: michael@115: %build michael@115: ruby setup.rb config michael@115: ruby setup.rb setup michael@115: ruby setup.rb test michael@115: michael@115: %install michael@115: # remove previously existing installations michael@115: rm -rf $RPM_BUILD_ROOT michael@115: michael@115: # run the native installation logic michael@115: ruby setup.rb install --prefix=$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: