From 4b01dbfcae7fa0cb8e8f2b17ab46589605c7e9a5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:53:25 +0100 Subject: [PATCH] package created (overrides old smile package from tuxfamily.org) [release 1.5.6-1mamba;Sat May 07 2022] --- README.md | 8 +- smile-0.8.1-lang.patch | 11 -- smile-0.8.6-helpfrm.patch | 11 -- smile.spec | 209 ++++++-------------------------------- 4 files changed, 34 insertions(+), 205 deletions(-) delete mode 100644 smile-0.8.1-lang.patch delete mode 100644 smile-0.8.6-helpfrm.patch diff --git a/README.md b/README.md index 212b421..00e2b1e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,3 @@ # smile -SMILE means Slideshow Maker In Linux Environnement. -SMILE is a slideshow creating tool (developed with qt4), for GNU/Linux, -although it also works on Mac OS/X and maybe one day on Microsoft Windows. -It allows, from images, to create a video slideshow, that can be played on almost all medias. -The numerous features and the simplicity of use make it possible to create dynamic and rich slideshows in just a few clicks, -without having to worry about technical issues or complicated settings. - +An emoji picker with custom tags support. diff --git a/smile-0.8.1-lang.patch b/smile-0.8.1-lang.patch deleted file mode 100644 index 1f4436a..0000000 --- a/smile-0.8.1-lang.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- smile/mainfrm.cpp 2008-09-14 16:38:43.000000000 +0200 -+++ smile/mainfrm.cpp-gil 2008-09-30 22:58:26.000000000 +0200 -@@ -180,7 +180,7 @@ - QString wlpack = QLocale::system().name(); - qDebug() << "LOADING LANGUAGE ... smile_" + wlpack.left(2); - QTranslator *qtTranslator = new QTranslator(this); -- if (qtTranslator->load("smile_" + wlpack.left(2), qApp->applicationDirPath()) == true ) -+ if (qtTranslator->load("/usr/share/smile/smile_" + wlpack.left(2), qApp->applicationDirPath()) == true ) - { - qApp->installTranslator(qtTranslator); - } diff --git a/smile-0.8.6-helpfrm.patch b/smile-0.8.6-helpfrm.patch deleted file mode 100644 index 4f3a6cb..0000000 --- a/smile-0.8.6-helpfrm.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- smile/helpfrm.cpp 2008-10-25 15:50:04.000000000 +0200 -+++ smile/helpfrm.cpp-gil 2008-10-31 19:00:10.000000000 +0100 -@@ -32,7 +32,7 @@ - { - if ( wlpack.left(2) == "it" ) - { -- webhelp->load(QUrl(wg_tmp_002 + "/BIB_ManSlide/Help/doc_it.html")); -+ webhelp->load(QUrl(wg_tmp_002 + "/BIB_ManSlide/Help/doc_en.html")); - } - else - { diff --git a/smile.spec b/smile.spec index 7c371c7..05acce7 100644 --- a/smile.spec +++ b/smile.spec @@ -1,130 +1,38 @@ Name: smile -Version: 1.0 -Release: 3mamba -Summary: SMILE - Slideshow Maker In Linux Environement -Group: Graphical Desktop/Applications/Publishing +Version: 1.5.6 +Release: 1mamba +Summary: An emoji picker with custom tags support +Group: Graphical Desktop/Applications/Utilities Vendor: openmamba Distribution: openmamba -Packager: Automatic Build System -URL: http://smile.tuxfamily.org/ -Source: http://download.tuxfamily.org/smiletool/smile-%{version}.tar.gz -Patch0: smile-0.8.1-lang.patch -Patch1: smile-0.8.6-helpfrm.patch +Packager: Silvan Calarco +URL: https://github.com/mijorus/smile +Source: https://github.com/mijorus/smile.git/%{version}/smile-%{version}.tar.bz2 License: GPL -Requires: mplayer -Requires: mencoder -Requires: ImageMagick -Requires: sox ## AUTOBUILDREQ-BEGIN -BuildRequires: glibc-devel -BuildRequires: ImageMagick-devel -BuildRequires: libfontconfig-devel -BuildRequires: libfreetype-devel -BuildRequires: libgcc -BuildRequires: libGL-devel -BuildRequires: libglib-devel -BuildRequires: libGLU-devel -BuildRequires: libICE-devel -BuildRequires: libpng-devel -BuildRequires: libqt4-devel -BuildRequires: libSM-devel -BuildRequires: libsqlite-devel -BuildRequires: libstdc++6-devel -BuildRequires: libX11-devel -BuildRequires: libXext-devel -BuildRequires: libXfixes-devel -BuildRequires: libXinerama-devel -BuildRequires: libXrandr-devel -BuildRequires: libXrender-devel -BuildRequires: libz-devel -BuildRequires: mencoder -BuildRequires: mplayer -BuildRequires: sox-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description -SMILE means Slideshow Maker In Linux Environnement. -SMILE is a slideshow creating tool (developed with qt4), for GNU/Linux, -although it also works on Mac OS/X and maybe one day on Microsoft Windows. -It allows, from images, to create a video slideshow, that can be played on almost all medias. -The numerous features and the simplicity of use make it possible to create dynamic and rich slideshows in just a few clicks, -without having to worry about technical issues or complicated settings. +An emoji picker with custom tags support. + +#% debug_package %prep +%setup -q +sed -i 's/MESON_INSTALL_PREFIX/MESON_INSTALL_DESTDIR_PREFIX/g' \ + build-aux/meson/emoji_list/generate_emoji_dict.py -%setup -q -n %{name} -%patch0 -p1 -#%patch1 -p1 +sed -i 's/MESON_INSTALL_PREFIX/MESON_INSTALL_DESTDIR_PREFIX/g' \ + build-aux/meson/postinstall.py + %build -export QTDIR=%{_qt4_prefix} QTLIB=%{_qt4_libdir} -%{_bindir}/qmake-qt4 -o Makefile smile.pro -%make +%meson + +%meson_build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - -mkdir -p %{buildroot}%{_datadir}/applications -#mkdir -p %{buildroot}%{_datadir}/pixmaps -mkdir -p %{buildroot}%{_bindir} -mkdir -p %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Eff_sup -mkdir -p %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images -mkdir -p %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images_en -mkdir -p %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images_fr -mkdir -p %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Luma -mkdir -p %{buildroot}%{_datadir}/%{name}/Interface/Origine -mkdir -p %{buildroot}%{_datadir}/%{name}/Interface/Theme - -install -m 644 Interface/Theme/*.png %{buildroot}%{_datadir}/%{name}/Interface/Theme -install -m 644 Interface/Theme/*.gif %{buildroot}%{_datadir}/%{name}/Interface/Theme - -#install -m 644 Interface/Theme/Origine/*.xcf %{buildroot}%{_datadir}/%{name}/Interface/Origine - -install -m 644 BIB_ManSlide/Eff_sup/*.png %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Eff_sup -install -m 644 BIB_ManSlide/Eff_sup/*.gif %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Eff_sup -install -m 644 BIB_ManSlide/Eff_sup/*.txt %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Eff_sup - -install -m 644 BIB_ManSlide/Help/images/*.png %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images -install -m 644 BIB_ManSlide/Help/images/*.jpg %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images - -install -m 644 BIB_ManSlide/Help/images_en/*.png %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images_en - -install -m 644 BIB_ManSlide/Help/images_fr/*.png %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help/images_fr - -install -m 644 BIB_ManSlide/Help/*.html %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help -install -m 644 BIB_ManSlide/Help/*.txt %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help -install -m 644 BIB_ManSlide/Help/*.css %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Help - -install -m 644 BIB_ManSlide/Luma/*.png %{buildroot}%{_datadir}/%{name}/BIB_ManSlide/Luma - -install -m 644 smile_*.qm %{buildroot}%{_datadir}/%{name} -install -m 644 interface.qrc %{buildroot}%{_datadir}/%{name} -install -m 644 *.ui %{buildroot}%{_datadir}/%{name} -install -m 755 %{name} %{buildroot}%{_bindir} - -#install -m 644 Interface/Theme/%{name}.png \ -#%{buildroot}%{_datadir}/pixmaps/%{name}.png - - -cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF -[Desktop Entry] -Type=Application -Version=1.0 -Encoding=UTF-8 -Name=Smile -Name[it]=Smile -Name[tr]=Smile -GenericName=Slideshow creation software -GenericName[de]=Slideshow Schaffung Software -GenericName[fr]=Logiciel de création de diaporama -GenericName[it]=Software per la creazione di slideshow -GenericName[tr]=Slayt Programı -Icon=/usr/share/smile/Interface/Theme/smile.png -Exec=/usr/bin/smile -Terminal=false -StartupNotify=false -Categories=Qt;KDE;Application;Graphics; -EOF +%meson_install %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -132,70 +40,19 @@ EOF %files %defattr(-,root,root) %{_bindir}/smile -%{_datadir}/applications/%{name}.desktop -#%{_datadir}/pixmaps/smile.png +%{_datadir}/appdata/it.mijorus.smile.appdata.xml +%{_datadir}/applications/it.mijorus.smile.desktop +%{_datadir}/glib-2.0/schemas/it.mijorus.smile.gschema.xml +%{_datadir}/icons/hicolor/scalable/apps/it.mijorus.smile.svg +%{_datadir}/icons/hicolor/symbolic/apps/it.mijorus.smile-symbolic.svg %dir %{_datadir}/smile -%{_datadir}/smile/smile_*.qm -%{_datadir}/smile/*.ui -%{_datadir}/smile/interface.qrc -%dir %{_datadir}/smile/BIB_ManSlide -%{_datadir}/smile/BIB_ManSlide/Eff_sup -%{_datadir}/smile/BIB_ManSlide/Help -%{_datadir}/smile/BIB_ManSlide/Luma -%dir %{_datadir}/smile/Interface -%{_datadir}/smile/Interface/Origine -%{_datadir}/smile/Interface/Theme -%doc copying +%dir %{_datadir}/smile/assets +%{_datadir}/smile/assets/* +%{_datadir}/smile/smile.gresource +%dir %{_datadir}/smile/smile +%{_datadir}/smile/smile/* +%doc COPYING %changelog -* Mon Aug 24 2015 Automatic Build System 1.0-3mamba -- automatic rebuild by autodist - -* Mon Aug 24 2015 Automatic Build System 1.0-2mamba -- automatic rebuild by autodist - -* Fri Oct 23 2009 Automatic Build System 1.0-1mamba -- automatic update by autodist - -* Fri Oct 02 2009 Automatic Build System 0.9.14-1mamba -- automatic update by autodist - -* Sun Aug 23 2009 Automatic Build System 0.9.11-1mamba -- automatic update by autodist - -* Sat Jun 13 2009 Automatic Build System 0.9.10-1mamba -- automatic update by autodist - -* Tue May 19 2009 Automatic Build System 0.9.9-1mamba -- automatic update by autodist - -* Mon May 04 2009 Automatic Build System 0.9.7-1mamba -- automatic update by autodist - -* Thu Apr 23 2009 Automatic Build System 0.9.3-1mamba -- automatic update by autodist - -* Sat Apr 11 2009 Silvan Calarco 0.9.1-1mamba -- automatic update by autodist - -* Fri Jan 02 2009 Silvan Calarco 0.8.9-1mamba -- automatic update by autodist - -* Fri Nov 14 2008 gil 0.8.8-1mamba -- update to 0.8.8 - -* Fri Oct 31 2008 gil 0.8.6-1mamba -- update to 0.8.6 - -* Sat Oct 18 2008 gil 0.8.5-1mamba -- update to 0.8.5 - -* Tue Sep 30 2008 gil 0.8.3-1mamba -- update to 0.8.3 -- added lang patch - -* Wed Sep 24 2008 gil 0.8.1-1mamba -- update to 0.8.1 - -* Fri Aug 22 2008 gil 0.7.2-1mamba -- added desktop file +* Sat May 07 2022 Silvan Calarco 1.5.6-1mamba +- package created (overrides old smile package from tuxfamily.org)