|
@@ -1,81 +1,71 @@
|
|
|
-%define enable_inotify 0
|
|
|
-%define enable_hal 0
|
|
|
-
|
|
|
-Name: pcmanfm
|
|
|
-Version: 0.5.2
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Name: pcmanfm
|
|
|
+Version: 0.9.10
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: Extremly fast and lightweight file manager
|
|
|
-Summary(ja): とても高速で軽量なファイルマネージャ
|
|
|
+Summary(ja): とても高速で軽量なファイルマネージャー
|
|
|
|
|
|
Group: Applications/System
|
|
|
License: GPLv2+
|
|
|
URL: http://pcmanfm.sourceforge.net
|
|
|
-Source0: http://osdn.dl.sourceforge.net/sourceforge/pcmanfm/%{name}-%{version}.tar.bz2
|
|
|
-Patch0: pcmanfm-0.5-kill-find-immediately.patch
|
|
|
-Patch1: pcmanfm-0.5-fix-str-fmt.patch
|
|
|
-Patch2: ca_po.patch
|
|
|
-Patch3: pcmanfm-0.5.2-makefile.patch
|
|
|
+Source0: http://osdn.dl.sourceforge.net/sourceforge/pcmanfm/pcmanfm-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
BuildRequires: automake >= 1.9
|
|
|
-BuildRequires: gtk2-devel >= 2.14
|
|
|
-BuildRequires: gamin-devel
|
|
|
BuildRequires: desktop-file-utils
|
|
|
+BuildRequires: gtk2-devel >= 2.16.0
|
|
|
+BuildRequires: glib2-devel >= 2.18.0
|
|
|
BuildRequires: gettext
|
|
|
-BuildRequires: intltool
|
|
|
-BuildRequires: startup-notification-devel
|
|
|
-BuildRequires: dbus-devel
|
|
|
-BuildRequires: dbus-glib-devel
|
|
|
-BuildRequires: cairo-devel
|
|
|
-
|
|
|
-Requires: gtk2 >= 2.14, gamin, dbus-glib
|
|
|
+BuildRequires: intltool >= 0.40
|
|
|
+BuildRequires: libfm-gtk-devel >= 0.1.15
|
|
|
+BuildRequires: libtool
|
|
|
+BuildRequires: libX11-devel
|
|
|
+BuildRequires: menu-cache-devel >= 0.3.2
|
|
|
+BuildRequires: pango-devel
|
|
|
+BuildRequires: perl-XML-Parser
|
|
|
+BuildRequires: pkgconfig
|
|
|
+
|
|
|
+Requires: libfm >= 0.1.15
|
|
|
+Requires: shared-mime-info
|
|
|
Requires(post): desktop-file-utils
|
|
|
Requires(postun): desktop-file-utils
|
|
|
|
|
|
-
|
|
|
%description
|
|
|
PCMan File Manager is an extremly fast and lightweight file manager
|
|
|
which features tabbed browsing and user-friendly interface.
|
|
|
|
|
|
%description -l ja
|
|
|
PCMan File Manager はタブブラウズとユーザーフレンドリーな
|
|
|
-インターフェイスを特色とするとても高速で軽量なファイルマネージャです。
|
|
|
+インターフェイスを特色とするとても高速で軽量なファイルマネージャーです。
|
|
|
|
|
|
%prep
|
|
|
-%setup -q
|
|
|
-%patch0 -p1 -b .search_hang
|
|
|
-%patch1 -p0
|
|
|
-%patch2 -p1
|
|
|
-%patch3 -p1
|
|
|
-chmod 644 INSTALL COPYING
|
|
|
+%setup -q -n %{name}-%{version}
|
|
|
|
|
|
-%build
|
|
|
-autoreconf -if
|
|
|
-%configure \
|
|
|
-%if %{enable_hal} >= 1
|
|
|
- --enable-hal \
|
|
|
-%else
|
|
|
- --disable-hal \
|
|
|
-%endif
|
|
|
-%if %{enable_inotify} >= 1
|
|
|
- --enable-inotify
|
|
|
-%else
|
|
|
- --disable-inotify
|
|
|
-%endif
|
|
|
-
|
|
|
-%{__make} %{?_smp_mflags} -k
|
|
|
+# permission fix
|
|
|
+chmod 0644 [A-Z]*
|
|
|
+sed -i 's/MimeType=x-directory\/normal;inode\/directory/MimeType=inode\/directory/g' \
|
|
|
+ data/pcmanfm.desktop
|
|
|
|
|
|
+%build
|
|
|
+%configure --sysconfdir=/etc --enable-static=no
|
|
|
+%{__make} %{?_smp_mflag}
|
|
|
|
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
|
|
+
|
|
|
%find_lang %{name}
|
|
|
+
|
|
|
desktop-file-install \
|
|
|
- --delete-original \
|
|
|
- --vendor vine \
|
|
|
- --dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \
|
|
|
- ${RPM_BUILD_ROOT}/%{_datadir}/applications/pcmanfm.desktop
|
|
|
+ --delete-original \
|
|
|
+ --vendor "" \
|
|
|
+ --remove-category 'Application' \
|
|
|
+ --remove-category 'FileManager' \
|
|
|
+ --add-category 'System;FileTools' \
|
|
|
+ --dir ${RPM_BUILD_ROOT}/%{_datadir}/applications \
|
|
|
+ ${RPM_BUILD_ROOT}/%{_datadir}/applications/pcmanfm.desktop
|
|
|
+
|
|
|
+%{_prefix}/lib/rpm/check-rpaths
|
|
|
|
|
|
%clean
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -91,14 +81,20 @@ update-desktop-database %{_datadir}/applications >/dev/null 2>&1 || :
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc AUTHORS COPYING README TODO
|
|
|
+%doc AUTHORS COPYING README
|
|
|
+%{_sysconfdir}/xdg/pcmanfm/default/pcmanfm.conf
|
|
|
%{_bindir}/pcmanfm
|
|
|
%{_datadir}/%{name}/*
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
-%{_datadir}/mime/packages/*.xml
|
|
|
-%{_datadir}/pixmaps/*
|
|
|
|
|
|
%changelog
|
|
|
+* Sun Feb 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.9.10-1
|
|
|
+- new upstream release
|
|
|
+- dropt all patches
|
|
|
+- rewrote whole spec
|
|
|
+ - redifined BuildRequires and Requires
|
|
|
+ - fixed summary(ja) and desciprition -l ja a little
|
|
|
+
|
|
|
* Sat Jan 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.5.2-2
|
|
|
- remove BuildRequires: hal-devel
|
|
|
- remove Requires: hal
|