commit
5e483daf67
12
Wformat-security.patch
Normal file
12
Wformat-security.patch
Normal file
@ -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);
|
||||
BIN
xfce-theme-manager-0.3.8.tar.gz
Normal file
BIN
xfce-theme-manager-0.3.8.tar.gz
Normal file
Binary file not shown.
63
xfce-theme-manager.spec
Normal file
63
xfce-theme-manager.spec
Normal file
@ -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 <dillon.chen@turbolinux.com.cn> - 0.3.8-1
|
||||
- Init package from fedora 33
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user