0508204
Name:           waifu2x-converter-cpp
0508204
Version:        5.2
0508204
Release:        1%{?dist}
0508204
Summary:        Image Super-Resolution for Anime-style art using OpenCL and OpenCV
0508204
0508204
License:        BSD and MIT
0508204
URL:            https://github.com/DeadSix27/waifu2x-converter-cpp
0508204
Source0:        %url/archive/v%{version}/%{name}-%{version}.tar.gz
0508204
0508204
# Add soname versioning
0508204
Patch0:         waifu2x-converter-cpp-5.2-set_soversion.patch
0508204
0508204
BuildRequires:  gcc
0508204
BuildRequires:  gcc-c++
0508204
BuildRequires:  cmake
0508204
BuildRequires:  opencl-headers
0508204
BuildRequires:  opencv-devel
0508204
Recommends:     beignet
0508204
Recommends:     mesa-libOpenCL
0508204
0508204
Provides:       bundled(picojson)
0508204
Provides:       bundled(tclap)
0508204
0508204
0508204
%description
0508204
Image Super-Resolution for Anime-style art using OpenCL and OpenCV.
0508204
0508204
This is a reimplementation of waifu2x (original) converter function, 
0508204
in C++, using OpenCV.
0508204
0508204
0508204
%package        devel
0508204
Summary:        Development files for waifu2x-converter-cpp
0508204
Requires:       %{name}%{?_isa} = %{version}-%{release}
0508204
0508204
%description    devel
0508204
Development files for waifu2x-converter-cpp.
0508204
0508204
0508204
%prep
0508204
%autosetup -p1
0508204
0508204
0508204
%build
0508204
mkdir _build && cd _build
0508204
%cmake3 -DINSTALL_MODELS=true ..
0508204
%make_build
0508204
0508204
0508204
%install
0508204
cd _build
0508204
%make_install
0508204
0508204
0508204
%files
0508204
%license LICENSE include/picojson_LICENSE.txt include/tclap/tclap_LICEENSE.txt
0508204
%doc README.md
0508204
%{_bindir}/waifu2x-converter-cpp
0508204
%{_libdir}/libw2xc.so.1*
0508204
%{_datadir}/waifu2x-converter-cpp
0508204
0508204
0508204
%files devel
0508204
%{_includedir}/w2xconv.h
0508204
%{_libdir}/libw2xc.so
0508204
0508204
0508204
%changelog
0508204
* Sat Oct 13 2018 Robert-André Mauchin <zebob.m@gmail.com> - 5.2-1
0508204
- Initial release