commit
1971d0222c
25
0001-Some-fixes-for-the-desktop-file.patch
Normal file
25
0001-Some-fixes-for-the-desktop-file.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From: Julien Lavergne <julien.lavergne@gmail.com>
|
||||
Date: Sat, 5 Mar 2011 00:07:05 +0100
|
||||
Subject: [PATCH] Some fixes for the desktop file :
|
||||
|
||||
- Pass validation (xfce bug 6691)
|
||||
- Allows one to open blank CD and Audio CD
|
||||
|
||||
This patch has been slightly updated for Xubuntu to handle po/POTFILES.skip.
|
||||
---
|
||||
xfburn.desktop.in | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/xfburn.desktop.in b/xfburn.desktop.in
|
||||
index 256dc9b..833e8d4 100644
|
||||
--- a/xfburn.desktop.in
|
||||
+++ b/xfburn.desktop.in
|
||||
@@ -7,7 +7,7 @@ _Comment=CD and DVD burning application
|
||||
Exec=xfburn
|
||||
TryExec=xfburn
|
||||
Icon=stock_xfburn
|
||||
-MimeType=application/x-cd-image;
|
||||
+MimeType=application/x-cd-image;x-content/audio-cdda;x-content/blank-cd;
|
||||
Terminal=false
|
||||
Categories=X-XFCE;GTK;DiscBurning;Archiving;AudioVideo;Utility;
|
||||
StartupNotify=true
|
||||
51
xfburn-0.5.4-tmpdir.patch
Normal file
51
xfburn-0.5.4-tmpdir.patch
Normal file
@ -0,0 +1,51 @@
|
||||
--- a/xfburn/xfburn-copy-cd-dialog.c
|
||||
+++ b/xfburn/xfburn-copy-cd-dialog.c
|
||||
@@ -170,7 +170,7 @@ xfburn_copy_cd_dialog_init (XfburnCopyCd
|
||||
|
||||
priv->entry_path_iso = gtk_entry_new ();
|
||||
gtk_widget_show (priv->entry_path_iso);
|
||||
- tmp_dir = xfburn_settings_get_string ("temporary-dir", "/tmp");
|
||||
+ tmp_dir = xfburn_settings_get_string ("temporary-dir", "/var/tmp");
|
||||
default_path = g_build_filename (tmp_dir, "xfburn.iso", NULL);
|
||||
gtk_entry_set_text (GTK_ENTRY (priv->entry_path_iso), default_path);
|
||||
g_free (default_path);
|
||||
@@ -281,7 +281,7 @@ cb_dialog_response (XfburnCopyCdDialog *
|
||||
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_eject)) ? " --eject" : "",
|
||||
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_dummy)) ? " --simulate" : "",
|
||||
device_burn != device_read && gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_onthefly)) ? " --on-the-fly" : "",
|
||||
- " --datafile /tmp/xfburn.bin", NULL);
|
||||
+ " --datafile /var/tmp/xfburn.bin", NULL);
|
||||
g_free (source_device);
|
||||
g_free (speed);
|
||||
|
||||
--- a/xfburn/xfburn-copy-dvd-dialog.c
|
||||
+++ b/xfburn/xfburn-copy-dvd-dialog.c
|
||||
@@ -170,7 +170,7 @@ xfburn_copy_dvd_dialog_init (XfburnCopyD
|
||||
|
||||
priv->entry_path_iso = gtk_entry_new ();
|
||||
gtk_widget_show (priv->entry_path_iso);
|
||||
- tmp_dir = xfburn_settings_get_string ("temporary-dir", "/tmp");
|
||||
+ tmp_dir = xfburn_settings_get_string ("temporary-dir", "/var/tmp");
|
||||
default_path = g_build_filename (tmp_dir, "xfburn.iso", NULL);
|
||||
gtk_entry_set_text (GTK_ENTRY (priv->entry_path_iso), default_path);
|
||||
g_free (default_path);
|
||||
@@ -281,7 +281,7 @@ cb_dialog_response (XfburnCopyDvdDialog
|
||||
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_eject)) ? " --eject" : "",
|
||||
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_dummy)) ? " --simulate" : "",
|
||||
device_burn != device_read && gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (priv->check_onthefly)) ? " --on-the-fly" : "",
|
||||
- " --datafile /tmp/xfburn.bin", NULL);
|
||||
+ " --datafile /var/tmp/xfburn.bin", NULL);
|
||||
g_free (source_device);
|
||||
|
||||
// dialog_progress = xfburn_copy_cd_progress_dialog_new ();
|
||||
--- a/xfburn/xfburn-preferences-dialog.c
|
||||
+++ b/xfburn/xfburn-preferences-dialog.c
|
||||
@@ -369,7 +369,7 @@ xfburn_preferences_dialog_load_settings
|
||||
|
||||
gchar *temp_dir;
|
||||
|
||||
- temp_dir = xfburn_settings_get_string ("temporary-dir", "/tmp");
|
||||
+ temp_dir = xfburn_settings_get_string ("temporary-dir", "/var/tmp");
|
||||
gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (priv->chooser_button), temp_dir);
|
||||
g_free (temp_dir);
|
||||
|
||||
BIN
xfburn-0.6.2.tar.bz2
Normal file
BIN
xfburn-0.6.2.tar.bz2
Normal file
Binary file not shown.
74
xfburn.spec
Normal file
74
xfburn.spec
Normal file
@ -0,0 +1,74 @@
|
||||
%global majorversion 0.6
|
||||
|
||||
Name: xfburn
|
||||
Version: 0.6.2
|
||||
Release: 1
|
||||
Summary: CD-burner application for Xfce Desktop Environment
|
||||
License: GPLv2+
|
||||
#Group: Development/Libraries
|
||||
URL: http://goodies.xfce.org/projects/applications/%{name}
|
||||
Source0: http://archive.xfce.org/src/apps/%{name}/0.6/%{name}-%{version}.tar.bz2
|
||||
Patch1: 0001-Some-fixes-for-the-desktop-file.patch
|
||||
Patch2: xfburn-0.5.4-tmpdir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
#BuildArch: noarch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: exo-devel
|
||||
BuildRequires: dbus-glib-devel >= 0.34
|
||||
BuildRequires: gstreamer1-devel >= 0.10.2
|
||||
BuildRequires: gstreamer1-plugins-base-devel
|
||||
BuildRequires: gtk2-devel >= 2.10.0
|
||||
BuildRequires: libxfce4ui-devel >= 4.12.0
|
||||
BuildRequires: libburn-devel >= 0.4.2
|
||||
BuildRequires: libisofs-devel >= 0.6.2
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libgudev1-devel
|
||||
BuildRequires: libappstream-glib
|
||||
Requires: hicolor-icon-theme
|
||||
|
||||
%description
|
||||
Xfburn is a simple CD/DVD burning tool based on libburnia libraries. It can
|
||||
blank CD-RWs, burn and create iso images, as well as burn personal
|
||||
compositions of data to either CD or DVD.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
|
||||
# fix appdata installation location
|
||||
sed -i 's/\$(datadir)\/appdata/\$(datadir)\/metainfo/' Makefile.in
|
||||
|
||||
%build
|
||||
%configure
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install INSTALL='install -p'
|
||||
|
||||
%find_lang %{name}
|
||||
|
||||
desktop-file-install --vendor "" \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
--delete-original \
|
||||
--add-category=Utility \
|
||||
${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.xfce.%{name}.appdata.xml
|
||||
|
||||
%files -f %{name}.lang
|
||||
%doc AUTHORS ChangeLog NEWS TODO
|
||||
%license COPYING
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/Thunar/sendto/*.desktop
|
||||
%{_datadir}/icons/hicolor/*/stock/media/stock_%{name}*.png
|
||||
%{_datadir}/icons/hicolor/scalable/stock/media/stock_%{name}*.svg
|
||||
%{_datadir}/metainfo/org.xfce.%{name}.appdata.xml
|
||||
%dir %{_datadir}/%{name}/
|
||||
%{_datadir}/%{name}/*.ui
|
||||
%{_mandir}/man1/%{name}.*
|
||||
|
||||
%changelog
|
||||
* Mon Jul 27 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - Update to 0.6.1
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user