]> git.pld-linux.org Git - packages/fax2png.git/blob - fax2png.spec
bcea10f4a6c3ee9edd053ec65136da2fb04fe03d
[packages/fax2png.git] / fax2png.spec
1 Summary:        fax2png - 1-bit multipage TIFF (fax or scan) to PNG image converter
2 Summary(pl.UTF-8):   fax2png - konwerter 1-bitowych, wielostronnych obrazów TIFF (faksów lub skanów) do PNG
3 Name:           fax2png
4 Version:        1.0
5 Release:        1
6 License:        GPL v2+
7 Group:          Applications/Graphics
8 Source0:        http://www.boutell.com/fax2png/%{name}.tar.gz
9 # Source0-md5:  c7af8429ae707ee4fc9b461f059d9887
10 URL:            http://www.boutell.com/fax2png/
11 BuildRequires:  libpng-devel
12 BuildRequires:  libtiff-devel
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 Extracts a specified page from a 1-bit black and white TIFF image,
17 such as a fax, and efficiently converts it to PNG format without the
18 performance overhead of netpbm-based solutions. Antialiasing is
19 supported to produce attractive reductions to typical web browser
20 widths. 90-degree-interval rotations and flips are also supported.
21
22 %description -l pl.UTF-8
23 fax2png wyciąga podaną stronę z 1-bitowego, czarno-białego obrazu TIFF
24 (jak fax) i wydajnie konwertuje go do formatu PNG bez wydajnościowego
25 narzutu jak w przypadku użycia netpbm. Obsługiwany jest antyaliasing w
26 celu tworzenia ładniejszych pomniejszeń do rozdzielczości typowych dla
27 przeglądarki WWW. Obsługiwane są także obroty co 90 stopni.
28
29 %prep
30 %setup -q -n %{name}
31
32 %build
33 %{__cc} %{rpmldflags} %{rpmcflags} -o fax2png fax2png.c -lpng -ltiff
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
38
39 install fax2png $RPM_BUILD_ROOT%{_bindir}
40 install fax2png.1 $RPM_BUILD_ROOT%{_mandir}/man1
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc readme.txt fax2png.pl
48 %attr(755,root,root) %{_bindir}/fax2png
49 %{_mandir}/man1/fax2png.1*
This page took 0.047316 seconds and 2 git commands to generate.