rpms/d4x/devel d4x-2.5.7.1-desktop.patch, NONE, 1.1 d4x-2.5.7.1-man.patch, NONE, 1.1 d4x.spec, 1.15, 1.16
Matthias Saou (thias)
fedora-extras-commits at redhat.com
Wed Jun 20 10:06:00 UTC 2007
- Previous message: rpms/nexuiz-data/devel .cvsignore, 1.9, 1.10 nexuiz-data.spec, 1.10, 1.11 sources, 1.10, 1.11
- Next message: rpms/k3b/F-7 k3b-1.0.1-hidden.patch,NONE,1.1 k3b.spec,1.41,1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: thias
Update of /cvs/extras/rpms/d4x/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29807
Modified Files:
d4x.spec
Added Files:
d4x-2.5.7.1-desktop.patch d4x-2.5.7.1-man.patch
Log Message:
Moderate cleanups.
d4x-2.5.7.1-desktop.patch:
--- NEW FILE d4x-2.5.7.1-desktop.patch ---
diff -Naupr d4x-2.5.7.1.orig/share/nt.desktop d4x-2.5.7.1/share/nt.desktop
--- d4x-2.5.7.1.orig/share/nt.desktop 2005-08-31 15:32:13.000000000 +0200
+++ d4x-2.5.7.1/share/nt.desktop 2007-06-20 11:50:09.000000000 +0200
@@ -1,19 +1,19 @@
[Desktop Entry]
Name=Downloader for X
Name[cs]=Downloader pro X
-Name[fr]=Downloader for X
+Name[fr]=Downloader pour X
Name[es]=Downloader para X
Name[de]=Downloader für X
Name[pl]=Downloader dla X
Name[ru]=ÐаÑалка Ð´Ð»Ñ ÐкÑов
-Comment=downloading program
+Comment=Downloading Program
Comment[cs]=Program pro stahovánà souborů
Comment[fr]=Programme de téléchargement de fichiers
-Comment[es]=Una herramienta para descagar ficheros
+Comment[es]=Herramienta de descaga de ficheros
Comment[de]=Programm zum Downloaden von Dateien
Comment[pl]=Program do pobierania plików z Internetu.
Comment[ru]=пÑогÑамма Ð´Ð»Ñ ÑкаÑÐ¸Ð²Ð°Ð½Ð¸Ñ Ñайлов
-Icon=nt.png
+Icon=d4x
Exec=d4x
TryExec=d4x
Terminal=false
d4x-2.5.7.1-man.patch:
--- NEW FILE d4x-2.5.7.1-man.patch ---
diff -Naupr d4x-2.5.7.1.orig/DOC/nt.1 d4x-2.5.7.1/DOC/nt.1
--- d4x-2.5.7.1.orig/DOC/nt.1 2004-07-01 17:42:44.000000000 +0200
+++ d4x-2.5.7.1/DOC/nt.1 2007-06-20 11:45:02.000000000 +0200
@@ -1,13 +1,13 @@
.TH NT 1 "March 7th, 2001"
.SH NAME
-nt - A download manager for X
+d4x - A download manager for X
.SH SYNOPSYS
-\fBnt\fP [OPTIONS] ... [URL]
+\fBd4x\fP [OPTIONS] ... [URL]
.SH DESCRIPTION
-\fBnt\fP (also known as Downloader for X) is a Linux GUI program for
+\fBd4x\fP (also known as Downloader for X) is a Linux GUI program for
downloading files from the Internet. It supports FTP and HTTP (not completly
yet but the current implementation is quite enough for downloading). The
-program will resume interupted downloads if the server supports it too. nt
+program will resume interupted downloads if the server supports it too. d4x
is like kget for Linux and ReGet or GetRight
for Microsoft Windows (tm).
.SH OPTIONS
@@ -15,7 +15,7 @@ Options are distinguished from URLs in t
One may specify any number of options and URLs.
Many of the options can be used to control a pre-existing
-instance of \fBnt\fP. When \fBnt\fP finds an instance of itself already
+instance of \fBd4x\fP. When \fBd4x\fP finds an instance of itself already
running, it will forward the command to the already running instance for
execution. If there no pre-existing instance is found, then it will perform
the requested operations itself.
@@ -23,12 +23,12 @@ the requested operations itself.
The command line will be parsed from left to right. This means that the
requested operations will be performed in that order.
.TP
-\fBnt\fP accepts the following options:
+\fBd4x\fP accepts the following options:
.TP
\fBURL\fP
Add the indicated file to the download queue. A dialog box will appear in
which you can indicate where the file should be saved and set other options.
-If \fBnt\fP is already running, then the new instance will simply ask the
+If \fBd4x\fP is already running, then the new instance will simply ask the
existing instance to add the file and then it will exit. If existing instance
already have this \fBURL\fP in queue in inactive state than it will be
moved to *wait* state.
@@ -65,7 +65,7 @@ Disable speed limit.
.TP
\fB-d, --directory PATH\fP
Set directory for saving downloaded files. This applies only to files
-added to an pre-existing instance by running the \fBnt\fP command with URLs
+added to an pre-existing instance by running the \fBd4x\fP command with URLs
on the command line.
.TP
\fB-c, --delete-completed\fP
@@ -77,7 +77,7 @@ Rerun all failed downloads.
\fB-w, --without-face\fP
Start Downloader without X interface. (It will display the log on stdout but
there will be no user interface of any kind. The only way to control it is by
-running \fBnt\fP with appropriate options.)
+running \fBd4x\fP with appropriate options.)
.TP
\fB-m, --max-running integer\fP
Set the maximum total number of active downloads for current queue.
Index: d4x.spec
===================================================================
RCS file: /cvs/extras/rpms/d4x/devel/d4x.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- d4x.spec 23 Nov 2006 13:36:16 -0000 1.15
+++ d4x.spec 20 Jun 2007 10:05:19 -0000 1.16
@@ -1,21 +1,17 @@
-#define pre rc4
-#define final final
-
Summary: Downloader for X that supports resuming and many other features
Name: d4x
Version: 2.5.7.1
-Release: 3%{?pre:.%{pre}}%{?dist}
+Release: 4%{?dist}
Group: Applications/Internet
License: Artistic
URL: http://www.krasu.ru/soft/chuchelo/
-Source: http://d4x.krasu.ru/files/d4x-%{version}%{?pre}%{?final}.tar.bz2
+Source: http://d4x.krasu.ru/files/d4x-%{version}.tar.bz2
+Patch0: d4x-2.5.7.1-man.patch
+Patch1: d4x-2.5.7.1-desktop.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gtk2-devel, libao-devel, openssl-devel
BuildRequires: desktop-file-utils, boost-devel
-# Use modular X for FC5+ and non-Fedora
-%if %{!?fedora:6}%{?fedora} >= 5
BuildRequires: libXt-devel
-%endif
%description
This program lets you download files from the internet using either the ftp
@@ -27,7 +23,12 @@
%prep
-%setup -n %{name}-%{version}%{?pre}%{?final}
+%setup -q
+%patch0 -p1 -b .man
+%patch1 -p1 -b .desktop
+# Move the desktop file we just patched to the proper name
+%{__mv} share/nt.desktop share/d4x.desktop
+
%build
%configure --enable-libao
@@ -36,39 +37,61 @@
%install
%{__rm} -rf %{buildroot}
-%makeinstall
+%{__make} install DESTDIR=%{buildroot}
%find_lang %{name}
+# Install the menu entry icon
+%{__install} -D -p -m 0644 share/nt.png \
+ %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/d4x.png
+
# Now the menu entry
-%{__install} -m 0644 -D share/nt.png %{buildroot}%{_datadir}/pixmaps/nt.png
%{__mkdir_p} %{buildroot}%{_datadir}/applications
-desktop-file-install --vendor fedora \
- --dir %{buildroot}%{_datadir}/applications \
- --add-category Application \
- --add-category Network \
- share/nt.desktop
+desktop-file-install \
+ --vendor "" \
+ --dir %{buildroot}%{_datadir}/applications \
+ --add-category Network \
+ share/d4x.desktop
# Rename the man page to match the binary name
rename nt.1 d4x.1 %{buildroot}%{_mandir}/man1/nt.1*
+# Rename the main binary too, overwriting the "d4x" symlink
+%{__mv} -f %{buildroot}%{_bindir}/nt %{buildroot}%{_bindir}/d4x
+
%clean
%{__rm} -rf %{buildroot}
+%post
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%postun
+touch --no-create %{_datadir}/icons/hicolor || :
+%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+
%files -f %{name}.lang
-%defattr(-, root, root, 0755)
-%doc AUTHORS ChangeLog* COPYING NEWS PLANS README TODO
+%defattr(-,root,root,-)
+%doc AUTHORS ChangeLog COPYING NEWS PLANS README TODO
%doc DOC/FAQ* DOC/THANKS DOC/TROUBLES
%{_bindir}/d4x
-%{_bindir}/nt
-%{_datadir}/applications/fedora-nt.desktop
+%{_datadir}/applications/d4x.desktop
%{_datadir}/d4x/
-%{_datadir}/pixmaps/nt.png
+%{_datadir}/icons/hicolor/48x48/apps/d4x.png
%{_mandir}/man1/d4x.1*
%changelog
+* Wed Jun 20 2007 Matthias Saou <http://freshrpms.net/> 2.5.7.1-4
+- Switch to using the DESTDIR install method.
+- Remove old X build requirement conditional.
+- Remove vendor prefix and useless Application category from desktop file.
+- Patch the man page to s/nt/d4x/.
+- Add patch for the desktop entry, minor fixes and search the icon as "d4x".
+- Don't include old ChangeLog files.
+
* Tue Nov 21 2006 VÃctor Daniel <bombayvdmo at yahoo.com.mx> 2.5.7.1-3
- Change man page rename to work when compression is set in /etc/man.config.
- Previous message: rpms/nexuiz-data/devel .cvsignore, 1.9, 1.10 nexuiz-data.spec, 1.10, 1.11 sources, 1.10, 1.11
- Next message: rpms/k3b/F-7 k3b-1.0.1-hidden.patch,NONE,1.1 k3b.spec,1.41,1.42
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list