]> git.pld-linux.org Git - packages/pngquant.git/blob - pngquant.spec
- updated to 2.12.0
[packages/pngquant.git] / pngquant.spec
1 #
2 # Conditional build:
3 %bcond_without  openmp          # OpenMP support
4 %bcond_without  lcms            # LCMS support
5 %bcond_with     sse             # SSE instructions
6 #
7 %ifarch pentium3 pentium4 %{x8664} x32
8 %define with_sse        1
9 %endif
10 Summary:        PNG converter and lossy image compressor
11 Summary(pl.UTF-8):      Konwerter i stratny kompresor dla plików PNG
12 Name:           pngquant
13 Version:        2.12.0
14 Release:        1
15 # some original code was on MIT-like license
16 License:        GPL v3+ with MIT parts or commercial
17 Group:          Libraries
18 #Source0Download: https://pngquant.org/releases.html
19 Source0:        https://pngquant.org/%{name}-%{version}-src.tar.gz
20 # Source0-md5:  6b041c05ad987049ee0e5660a9926e24
21 URL:            https://pngquant.org/
22 %{?with_openmp:BuildRequires:   gcc >= 6:4.2}
23 %{?with_openmp:BuildRequires:   libgomp-devel}
24 %{?with_lcms:BuildRequires:     lcms2-devel >= 2}
25 BuildRequires:  libimagequant-devel >= 2.12
26 BuildRequires:  libpng-devel
27 BuildRequires:  pkgconfig
28 BuildRequires:  zlib-devel
29 Requires:       libimagequant >= 2.12
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 PNG converter and lossy image compressor.
34
35 %description -l pl.UTF-8
36 Konwerter i stratny kompresor dla plików PNG.
37
38 %prep
39 %setup -q
40
41 %build
42 # not autoconf configure
43 ./configure \
44         CC="%{__cc}" \
45         CFLAGS="%{rpmcflags} %{rpmcppflags}" \
46         LDFLAGS="%{rpmldflags}" \
47         --prefix=%{_prefix} \
48         %{__enable_disable sse} \
49         %{?with_lcms:--with-lcms2} \
50         --with-libimagequant \
51         %{?with_openmp:--with-openmp}
52
53 %{__make}
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc CHANGELOG COPYRIGHT README.md
67 %attr(755,root,root) %{_bindir}/pngquant
68 %{_mandir}/man1/pngquant.1*
This page took 0.087857 seconds and 3 git commands to generate.