!1 Init package

Merge pull request !1 from 陈棋德/master
This commit is contained in:
openeuler-ci-bot 2020-08-03 12:03:30 +08:00 committed by Gitee
commit 5e483daf67
3 changed files with 75 additions and 0 deletions

12
Wformat-security.patch Normal file
View 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);

Binary file not shown.

63
xfce-theme-manager.spec Normal file
View 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