Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@70 | 1 | ## |
michael@70 | 2 | ## jhead.spec -- OpenPKG RPM Specification |
michael@633 | 3 | ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@70 | 4 | ## |
michael@70 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@70 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@70 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@70 | 8 | ## copies. |
michael@70 | 9 | ## |
michael@70 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@70 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@70 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@70 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@70 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@70 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@70 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@70 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@70 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@70 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@70 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@70 | 21 | ## SUCH DAMAGE. |
michael@70 | 22 | ## |
michael@70 | 23 | |
michael@70 | 24 | |
michael@70 | 25 | # package information |
michael@70 | 26 | Name: jhead |
michael@70 | 27 | Summary: JPEG Header Manipulation Utility |
michael@70 | 28 | URL: http://www.sentex.net/~mwandel/jhead/ |
michael@70 | 29 | Vendor: Matthias Wandel |
michael@70 | 30 | Packager: Michael Schloh von Bennewitz |
michael@387 | 31 | Distribution: Europalab Networks Production |
michael@70 | 32 | Class: EVAL |
michael@70 | 33 | Group: Graphics |
michael@70 | 34 | License: Public Domain |
michael@633 | 35 | Version: 2.96 |
michael@633 | 36 | Release: 20120800 |
michael@70 | 37 | |
michael@70 | 38 | # list of sources |
michael@70 | 39 | Source0: http://www.sentex.net/~mwandel/jhead/jhead-%{version}.tar.gz |
michael@70 | 40 | |
michael@70 | 41 | # build information |
michael@633 | 42 | BuildPreReq: OpenPKG, openpkg >= 20100101, make |
michael@633 | 43 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@70 | 44 | |
michael@70 | 45 | %description |
michael@70 | 46 | Jhead is a command line driven program for manipulating the |
michael@70 | 47 | non-image parts of Exif flavour JPEG files that most digital |
michael@70 | 48 | cameras produce. |
michael@70 | 49 | |
michael@70 | 50 | %track |
michael@70 | 51 | prog jhead = { |
michael@70 | 52 | version = %{version} |
michael@70 | 53 | url = http://www.sentex.net/~mwandel/jhead/ |
michael@70 | 54 | regex = jhead-(__VER__)\.tar\.gz |
michael@70 | 55 | } |
michael@70 | 56 | |
michael@70 | 57 | %prep |
michael@70 | 58 | # unpack distribution |
michael@70 | 59 | %setup -q |
michael@70 | 60 | |
michael@70 | 61 | %build |
michael@70 | 62 | # build program |
michael@70 | 63 | %{l_make} %{l_mflags -O} |
michael@70 | 64 | |
michael@70 | 65 | %install |
michael@70 | 66 | # create directory structure |
michael@70 | 67 | %{l_shtool} mkdir -f -p -m 755 \ |
michael@70 | 68 | $RPM_BUILD_ROOT%{l_prefix}/bin |
michael@70 | 69 | |
michael@70 | 70 | # install program binary |
michael@70 | 71 | %{l_shtool} install -c -s -m 755 \ |
michael@70 | 72 | jhead $RPM_BUILD_ROOT%{l_prefix}/bin/ |
michael@70 | 73 | |
michael@70 | 74 | # determine installation files |
michael@70 | 75 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@70 | 76 | |
michael@70 | 77 | %files -f files |
michael@70 | 78 | |
michael@70 | 79 | %clean |
michael@70 | 80 |