%global debug_package %{nil} Name: crosti Summary: Tool to create cross stitch scheme from custom image Version: 1.14 Release: 1 License: GPLv3+ Group: Applications/Editors URL: https://sites.google.com/site/crostiapp/ #Source0: http://downloads.sourceforge.net/project/crosti/%{name}-%{version}-source.zip %scm_source github https://sourceforge.net/projects/crosti/files/latest/download crosti-1.14.0-source BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: dos2unix BuildRequires: unzip BuildRequires: gcc %description This tool allows you to make your own unique cross stitch scheme from custom image. You can resize and rotate image, reduce the number of colors, change image palette, make cross stitch scheme, preview it, save and print. Cross stitch scheme edition available: colors and icons changing, new color addition, color fill, scheme pixel draw, lines and half-stitches. Features: * Convert custom image to cross stitch scheme. * Edit cross stitch scheme. * Save and print the scheme that you created. * Input images: BMP, GIF, ICO, JPEG, JPG, MNG, PBM, PGM, PNG, PPM, SVG, TIF, TIFF, XBM, XPM. * Output cross stitch scheme: BMP, ICO, JPEG, JPG, PNG, PPM, TIF, TIFF, XBM, XPM, PDF, CST (crosti scheme text file). %prep %scm_setup %build export QMAKE_SH=$SHELL # do a fast qt build, as runmapsym and wmapsym is not needed here export FAST_BUILD=1 LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" qmake-qt5 -r crosti.pro make %{?_smp_mflags} %install rm -rf %{buildroot} make install INSTALL_ROOT=%{buildroot} #make INSTALL_ROOT=%{buildroot} install mkdir -p %{buildroot}%{_bindir}/system/clpics mkdir -p %{buildroot}%{_bindir}/system/image mkdir -p %{buildroot}%{_bindir}/system/palette mkdir -p %{buildroot}%{_bindir}/system/theme/theme1 mkdir -p %{buildroot}%{_bindir}/system/translations %__install -Dm 0644 ./release/crosti.exe %{buildroot}%{_bindir}/crosti.exe %__install -Dm 0644 ./src/crosti.desktop %{buildroot}/%{_datadir}/applications/crosti.desktop %__install -Dm 0644 ./src/crosti.xml %{buildroot}/%{_datadir}/mime/packages/crosti.xml %__install -Dm 0644 ./src/icons/16x16/* %{buildroot}/%{_datadir}/icons/hicolor/16x16/crosti.png %__install -Dm 0644 ./src/icons/32x32/crosti* %{buildroot}/%{_datadir}/icons/hicolor/32x32/crosti.png %__install -Dm 0644 ./src/icons/32x32/text* %{buildroot}/%{_datadir}/icons/hicolor/32x32/text-x-cst.png %__install -Dm 0644 ./src/icons/48x48/crosti.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/crosti.png cp -p ./system/clpics/*.bmp %{buildroot}%{_bindir}/system/clpics/. cp -p ./system/image/* %{buildroot}%{_bindir}/system/image cp -p ./system/palette/* %{buildroot}%{_bindir}/system/palette cp -p ./system/theme/theme1/* %{buildroot}%{_bindir}/system/theme/theme1 cp -p ./system/translations/* %{buildroot}%{_bindir}/system/translations %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc *.txt %{_bindir}/%{name}.exe %{_bindir}/system %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/%{name}.xml %{_datadir}/icons/hicolor/16x16/*.png %{_datadir}/icons/hicolor/32x32/*.png %{_datadir}/icons/hicolor/48x48/*.png %changelog * Sun May 26 2019 Elbert Pol 1.14-1 - First OS2 RPM release - Add Dutch translation