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