File tif22pnm.spec of Package tiff22pnm
%if 0%{?fedora_version} >= 23
%define debug_package %{nil}
%endif
Name: tif22pnm
Version: 0.14
Release: 1
Summary: Converts between TIFF sampled images and PNM images
Group: Productivity/Graphics/Convertors
License: GPL-2.0
URL: http://www.inf.bme.hu/~pts/sam2p/
Source0: tif22pnm-0.14.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libjpeg-devel zlib-devel libtiff-devel libpng-devel gcc-c++
#Requires:
%description
tif22pnm is a command line utility that converts between TIFF sampled images
and PNM images (both directions), using the libtiff library, but not using
NetPBM. tif22pnm is similar to tifftopnm utility in the NetPBM distribution,
but tif22pnm handles a wider range of TIFF files and it is able to output
the alpha channel as a PBM or PGM file. png22pnm, a converter from PNG to
PNM is also bundled into the distribution.
%prep
%setup -q
%build
#%%configure
./configure --prefix=%{_prefix} --exec-prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --mandir=%{_mandir}
# Add -lm to the -lpng line
sed -i -e 's/lpng /lpng -lm/' cc_help.sh
make %{?_smp_mpflags} %{?rpm_opt_flags}
%install
rm -rf $RPM_BUILD_ROOT
#make install DESTDIR=$RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 tif22pnm $RPM_BUILD_ROOT%{_bindir}/tif22pnm
install -m 755 png22pnm $RPM_BUILD_ROOT%{_bindir}/png22pnm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_bindir}/png22pnm
%{_bindir}/tif22pnm
%changelog
* Fri Apr 3 2009 Rene van Paassen <repa@pascua.localdomain> - 0.12-1
- Initial version