|
|
发表于 2006-11-11 09:52:02
|
显示全部楼层
新的spec
新的spec,支持自动加入系统菜单(应用程序->Internet->MultiGet)
[php]
Summary: This is the RPM package for MultiGet.
Name: multiget
Version: 1.0
Release: 1
License: GPL
Group: Applications/FileTransfer
Source: multiget-1.0.tar.gz
Url: http://multiget.sourceforge.net/
Packager: Matt
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: wxGTK-devel
Requires: wxGTK >= 2.6
%description
MultiGet is an easy-to-use GUI file downloader for Linux/Unix/BSDs/Windows*. It's programmed by C++ and GUI is based on wxWidgets. It supports http/ftp protocol which covers most user's requirement. It supports multi-task with multi-thread on multi-server. It supports resume download if server side have resume feature, and if you like, you can reconfig the thread number without stopping the going task. It's also support SOCKS 4,4a,5 proxy, ftp proxy, http proxy.
%prep
%setup -q
%build
%configure --with-wx-config=/usr/lib/wx/config/gtk2-unicode-release-2.6
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
--vendor="" \
MultiGet.desktop
# app icon
install -p -D -m644 MultiGet.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/MultiGet.png
%clean
rm -rf $RPM_BUILD_ROOT
%post
touch --no-create %{_datadir}/icons/hicolor ||:
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
%postun
touch --no-create %{_datadir}/icons/hicolor ||:
gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||:
%files
%defattr(-,root,root,-)
%{_bindir}/MultiGet
%{_datadir}/icons/*/*/*
%{_datadir}/applications/*.desktop
%changelog
* Sat Nov 11 2006 Matthew Gong <matthewzhenggong@gmail.com> 1.0
- Initial spec file.
[/php]
需要更新了的multiget-1.0.tar.gz。 |
|