diff --git a/Wformat-security.patch b/Wformat-security.patch new file mode 100644 index 0000000..f0eeaf6 --- /dev/null +++ b/Wformat-security.patch @@ -0,0 +1,12 @@ +diff -urN Xfce-Theme-Manager-xfce-theme-manager-0.3.8-orig/Xfce-Theme-Manager/src/database.cpp Xfce-Theme-Manager-xfce-theme-manager-0.3.8/Xfce-Theme-Manager/src/database.cpp +--- Xfce-Theme-Manager-xfce-theme-manager-0.3.8-orig/Xfce-Theme-Manager/src/database.cpp 2018-08-06 16:23:49.000000000 -0300 ++++ Xfce-Theme-Manager-xfce-theme-manager-0.3.8/Xfce-Theme-Manager/src/database.cpp 2019-07-16 17:40:06.046723248 -0300 +@@ -527,7 +527,7 @@ + if(g_key_file_load_from_file(keyfile,indexfile,G_KEY_FILE_NONE,NULL)) + displayname=g_key_file_get_string(keyfile,"Icon Theme","Name",NULL); + else +- asprintf(&displayname,entry); ++ asprintf(&displayname,"%s",entry); + + asprintf(&thumbfile,"%s/%s.png",cursorsFolder,entry); + makecursor((char*)entry,thumbfile); diff --git a/xfce-theme-manager-0.3.8.tar.gz b/xfce-theme-manager-0.3.8.tar.gz new file mode 100644 index 0000000..10e2fdc Binary files /dev/null and b/xfce-theme-manager-0.3.8.tar.gz differ diff --git a/xfce-theme-manager.spec b/xfce-theme-manager.spec new file mode 100644 index 0000000..0dd8110 --- /dev/null +++ b/xfce-theme-manager.spec @@ -0,0 +1,63 @@ +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} +%global pkgname Xfce-Theme-Manager + +Name: xfce-theme-manager +Version: 0.3.8 +Release: 1 +Summary: A theme manager for Xfce +License: GPLv3 +#Group: Development/Libraries +URL: https://github.com/KeithDHedger/Xfce-Theme-Manager +Source0: https://github.com/KeithDHedger/Xfce-Theme-Manager/archive/%{name}-%{version}.tar.gz +# https://github.com/KeithDHedger/Xfce-Theme-Manager/pull/4 +Patch0: Wformat-security.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +#BuildArch: noarch +BuildRequires: gcc-c++ +BuildRequires: autoconf +BuildRequires: cairo-devel +BuildRequires: desktop-file-utils +BuildRequires: pkgconfig(gdk-2.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(libxfce4ui-1) + +%description +A theme manager allowing easy configuration of themes, +window borders, controls, icons and cursors for Xfce + +%prep +%autosetup -n %{pkgname}-%{name}-%{version} -p1 + +%build +%configure +make %{?_smp_mflags} xfcethememanager_CFLAGS="%{optflags} -export-dynamic" xfcethememanager_CXXFLAGS="%{optflags} -export-dynamic -Wunused -Wunused-function -Wno-unused-result -fPIC" + +%install +make install DESTDIR=%{buildroot} docfilesdir="%{_pkgdocdir}" +desktop-file-install \ +--delete-original \ +--dir=%{buildroot}%{_datadir}/applications \ +--remove-key=Categories \ +--add-category=GTK \ +--add-category=Settings \ +--add-category=DesktopSettings \ +--add-category=X-XFCE-SettingsDialog \ +--add-category=X-XFCE-PersonalSettings \ +--add-category=X-XFCE \ +--set-name="Xfce Theme Manager" \ +%{buildroot}/%{_datadir}/applications/%{pkgname}.desktop + +%files +%doc ChangeLog* Xfce-Theme-Manager/resources/docs/gpl-3.0.txt +%{_bindir}/%{name} +%{_datadir}/applications/%{pkgname}.desktop +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/Xfce-Theme-Manager/scripts +%{_mandir}/man1/%{name}.1.* +%{_mandir}/*/man1/%{name}.1.* + +%changelog +* Mon Jul 27 2020 Dillon Chen - 0.3.8-1 +- Init package from fedora 33 +