]>
Commit | Line | Data |
---|---|---|
d5b56556 JB |
1 | Summary: Tool to compute (dis)similarity between two or more images |
2 | Summary(pl.UTF-8): Narzędzie do obliczania (nie)podobieństwa dwóch lub większej liczby obrazów | |
3 | Name: dssim | |
4 | Version: 1.3.2 | |
5 | Release: 1 | |
6 | License: AGPL v3+ | |
7 | Group: Applications/Graphics | |
8 | #Source0Download: https://github.com/pornel/dssim/releases | |
9 | Source0: https://github.com/pornel/dssim/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: 20072b430c94edb8c665ba87be00af3e | |
11 | Patch0: %{name}-meson.patch | |
12 | URL: https://kornel.ski/dssim | |
13 | BuildRequires: libpng-devel | |
14 | BuildRequires: meson | |
15 | BuildRequires: ninja | |
16 | BuildRequires: zlib-devel | |
17 | Requires: %{name}-libs = %{version}-%{release} | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This tool computes (dis)similarity between two or more PNG images | |
22 | using an algorithm approximating human vision. | |
23 | ||
24 | Comparison is done using the SSIM algorithm at multiple weighed | |
25 | resolutions. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | To narzędzie oblicza (nie)podobieństwo dwóch lub większej liczby | |
29 | obrazów PNG przy użyciu algorytmu przybliżającego ludzkie widzenie. | |
30 | ||
31 | Porównywanie jest wykonywane algorytmem SSIM z wieloma ważonymi | |
32 | rozdzielczościami. | |
33 | ||
34 | %package libs | |
35 | Summary: DSSIM shared library | |
36 | Summary(pl.UTF-8): Biblioteka współdzielona DSSIM | |
37 | Group: Libraries | |
38 | ||
39 | %description libs | |
40 | DSSIM shared library to compute (dis)similarity between two or more | |
41 | images. | |
42 | ||
43 | %description libs -l pl.UTF-8 | |
44 | Biblioteka współdzielona DSSIM do obliczania (nie)podobieństwa dwóch | |
45 | lub większej liczby obrazów. | |
46 | ||
47 | %package devel | |
48 | Summary: Header file for DSSIM library | |
49 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki DSSIM | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-libs = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | Header file for DSSIM library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Plik nagłówkowy biblioteki DSSIM. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
61 | %patch0 -p1 | |
62 | ||
63 | %build | |
64 | CC="%{__cc}" \ | |
65 | CFLAGS="%{rpmcflags} %{rpmcppflags}" \ | |
66 | LDFLAGS="%{rpmldflags}" \ | |
67 | meson build \ | |
68 | --buildtype=plain \ | |
b6b0bebc JB |
69 | --prefix=%{_prefix} \ |
70 | --libdir=%{_libdir} | |
d5b56556 JB |
71 | |
72 | ninja -C build -v | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | DESTDIR=$RPM_BUILD_ROOT \ | |
78 | ninja -C build -v install | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post libs -p /sbin/ldconfig | |
84 | %postun libs -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc README.md | |
89 | %attr(755,root,root) %{_bindir}/dssim | |
90 | ||
91 | %files libs | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_libdir}/libdssim-lib.so.*.* | |
94 | %attr(755,root,root) %ghost %{_libdir}/libdssim-lib.so.1 | |
95 | ||
96 | %files devel | |
97 | %defattr(644,root,root,755) | |
98 | %attr(755,root,root) %{_libdir}/libdssim-lib.so | |
99 | %{_includedir}/dssim.h | |
100 | %{_pkgconfigdir}/dssim.pc |