| 1 | Name: jhead
|
|---|
| 2 | Version: 3.06.0.1
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Tool for displaying EXIF data embedded in JPEG images
|
|---|
| 5 | License: Public Domain
|
|---|
| 6 | Vendor: TeLLie
|
|---|
| 7 | URL: http://www.sentex.net/~mwandel/jhead/
|
|---|
| 8 | %if !0%{?os2_version}
|
|---|
| 9 | Source0: https://codeload.github.com/Matthias-Wandel/jhead/tar.gz/refs/tags/%{version}#/jhead-%{version}.tar.gz
|
|---|
| 10 | %else
|
|---|
| 11 | %scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2
|
|---|
| 12 | %endif
|
|---|
| 13 |
|
|---|
| 14 | %if 0%{?rhel} == 6 || 0%{?os2_version}
|
|---|
| 15 | Requires: libjpeg-turbo
|
|---|
| 16 | %else
|
|---|
| 17 | Requires: libjpeg-turbo-utils
|
|---|
| 18 | %endif
|
|---|
| 19 | BuildRequires: gcc
|
|---|
| 20 | BuildRequires: make
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | Jhead displays and manipulates the non-image portions of EXIF formatted
|
|---|
| 24 | JPEG images, such as the images produced by most digital cameras.
|
|---|
| 25 |
|
|---|
| 26 | %prep
|
|---|
| 27 | %if !0%{?os2_version}
|
|---|
| 28 | %setup -q
|
|---|
| 29 | %else
|
|---|
| 30 | %scm_setup
|
|---|
| 31 | rm -r make.bat
|
|---|
| 32 | %endif
|
|---|
| 33 |
|
|---|
| 34 | %build
|
|---|
| 35 | export EXEEXT='.exe'
|
|---|
| 36 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 37 | export LIBS="-lcx"
|
|---|
| 38 | make -f makefile.os2 %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 39 |
|
|---|
| 40 | %install
|
|---|
| 41 | %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_bindir}
|
|---|
| 42 | %if !0%{?os2_version}
|
|---|
| 43 | cp -p jhead ${RPM_BUILD_ROOT}/%{_bindir}
|
|---|
| 44 | %else
|
|---|
| 45 | cp -p jhead.exe ${RPM_BUILD_ROOT}/%{_bindir}
|
|---|
| 46 | %endif
|
|---|
| 47 | %{__mkdir_p} ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|---|
| 48 | cp -p jhead.1 ${RPM_BUILD_ROOT}/%{_mandir}/man1/
|
|---|
| 49 |
|
|---|
| 50 | %files
|
|---|
| 51 | %doc readme.txt usage.html changes.txt
|
|---|
| 52 | %if !0%{?os2_version}
|
|---|
| 53 | %attr(0755,root,root) %{_bindir}/*
|
|---|
| 54 | %else
|
|---|
| 55 | %attr(0755,root,root) %{_bindir}/*.exe
|
|---|
| 56 | %endif
|
|---|
| 57 | %{_mandir}/man?/*
|
|---|
| 58 |
|
|---|
| 59 | %changelog
|
|---|
| 60 | * Fri Feb 18 2022 Elbert Pol <elbert.pol@gmail.com> - 3.06.01-1
|
|---|
| 61 | - Updated source to latest version
|
|---|
| 62 |
|
|---|
| 63 | * Tue Nov 26 2019 Elbert Pol <elbert.pol@gmail.com> - 3.04-1
|
|---|
| 64 | - Updated to latest source
|
|---|
| 65 |
|
|---|
| 66 | * Sun Jan 01 2019 Elbert Pol <elbert.pol@gmail.com> - 3.02-1
|
|---|
| 67 | - Updated to latest source
|
|---|
| 68 |
|
|---|
| 69 | * Wed Dec 12 2018 Elbert Pol <elbert.pol@gmail.com> - 3.02-1
|
|---|
| 70 | - Updated to latest source
|
|---|
| 71 |
|
|---|
| 72 | * Thu Jan 17 2017 Elbert Pol <elbert.pol@gmail.com> - 3.00-1
|
|---|
| 73 | - Initial package for version 3.00
|
|---|