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
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
16 BuildRequires: zlib-devel
17 Requires: %{name}-libs = %{version}-%{release}
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This tool computes (dis)similarity between two or more PNG images
22 using an algorithm approximating human vision.
24 Comparison is done using the SSIM algorithm at multiple weighed
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.
31 Porównywanie jest wykonywane algorytmem SSIM z wieloma ważonymi
35 Summary: DSSIM shared library
36 Summary(pl.UTF-8): Biblioteka współdzielona DSSIM
40 DSSIM shared library to compute (dis)similarity between two or more
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.
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}
54 Header file for DSSIM library.
56 %description devel -l pl.UTF-8
57 Plik nagłówkowy biblioteki DSSIM.
65 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
66 LDFLAGS="%{rpmldflags}" \
74 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT \
77 ninja -C build -v install
80 rm -rf $RPM_BUILD_ROOT
82 %post libs -p /sbin/ldconfig
83 %postun libs -p /sbin/ldconfig
86 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/dssim
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libdssim-lib.so.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libdssim-lib.so.1
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libdssim-lib.so
98 %{_includedir}/dssim.h
99 %{_pkgconfigdir}/dssim.pc