2010-03-21 15:59:27 +00:00
|
|
|
# Review: https://bugzilla.redhat.com/show_bug.cgi?id=567257
|
|
|
|
|
2010-05-11 19:37:49 +00:00
|
|
|
# Upstream git:
|
|
|
|
# git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/libfm
|
|
|
|
|
2011-08-29 15:15:33 +00:00
|
|
|
%global usegit 0
|
|
|
|
%global mainrel 1
|
2010-12-04 19:42:44 +00:00
|
|
|
|
2011-08-07 14:04:23 +00:00
|
|
|
%global githash d22b41fd2f738164c2cc89f6ae5d08c8bea6c65c
|
2010-12-04 19:42:44 +00:00
|
|
|
%global shorthash %(TMP=%githash ; echo ${TMP:0:10})
|
2011-08-07 14:04:23 +00:00
|
|
|
%global gitdate Sun Aug 7 19:27:20 2011 +0800
|
|
|
|
%global gitdate_num 20110807
|
2010-12-04 19:42:44 +00:00
|
|
|
|
|
|
|
%if 0%{?usegit} >= 1
|
2011-04-23 16:22:40 +00:00
|
|
|
%global fedorarel %{mainrel}.D%{gitdate_num}git%{shorthash}
|
2010-12-04 19:42:44 +00:00
|
|
|
%else
|
|
|
|
%global fedorarel %{mainrel}
|
|
|
|
%endif
|
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
Name: libfm
|
2011-08-29 15:15:33 +00:00
|
|
|
Version: 0.1.16
|
2011-02-19 20:24:53 +00:00
|
|
|
Release: %{fedorarel}%{?dist}
|
2010-03-21 15:54:44 +00:00
|
|
|
Summary: GIO-based library for file manager-like programs
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: GPLv2+
|
|
|
|
URL: http://pcmanfm.sourceforge.net/
|
2010-12-04 19:42:44 +00:00
|
|
|
%if 0%{?usegit} >= 1
|
2011-04-23 16:22:40 +00:00
|
|
|
Source0: %{name}-%{version}-D%{gitdate_num}git%{shorthash}.tar.gz
|
2010-12-04 19:42:44 +00:00
|
|
|
%else
|
2010-04-28 18:23:56 +00:00
|
|
|
Source0: http://downloads.sourceforge.net/pcmanfm/%{name}-%{version}.tar.gz
|
2010-12-04 19:42:44 +00:00
|
|
|
%endif
|
2010-05-25 14:32:11 +00:00
|
|
|
# Fedora specific patches
|
2010-03-21 15:54:44 +00:00
|
|
|
Patch0: libfm-0.1.9-pref-apps.patch
|
|
|
|
|
|
|
|
BuildRequires: gtk2-devel >= 2.16.0
|
|
|
|
BuildRequires: menu-cache-devel >= 0.3.2
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: intltool
|
2010-03-21 15:59:27 +00:00
|
|
|
BuildRequires: desktop-file-utils
|
2010-10-12 21:50:49 +00:00
|
|
|
# For Patch1
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: gtk-doc
|
2010-05-07 09:11:11 +00:00
|
|
|
|
2010-12-04 19:42:44 +00:00
|
|
|
# For now, -devel-docs does not seem to be generated...
|
|
|
|
Obsoletes: %{name}-devel-docs < 0.1.15
|
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(postun): /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
LibFM is a GIO-based library used to develop file manager-like programs. It is
|
|
|
|
developed as the core of next generation PCManFM and takes care of all file-
|
|
|
|
related operations such as copy & paste, drag & drop, file associations or
|
|
|
|
thumbnails support. By utilizing glib/gio and gvfs, libfm can access remote
|
|
|
|
file systems supported by gvfs.
|
|
|
|
|
|
|
|
This package contains the generic non-gui functions of libfm.
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk
|
|
|
|
Summary: File manager-related GTK+ widgets of %{name}
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: gvfs
|
|
|
|
|
|
|
|
%description gtk
|
|
|
|
libfm is a GIO-based library used to develop file manager-like programs. It is
|
|
|
|
developed as the core of next generation PCManFM and takes care of all file-
|
|
|
|
related operations such as copy & paste, drag & drop, file associations or
|
|
|
|
thumbnail support. By utilizing glib/gio and gvfs, libfm can access remote
|
|
|
|
file systems supported by gvfs.
|
|
|
|
|
|
|
|
This package provides useful file manager-related GTK+ widgets.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package gtk-devel
|
|
|
|
Summary: Development files for %{name}-gtk
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}-gtk = %{version}-%{release}
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
%description gtk-devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}-gtk.
|
|
|
|
|
2010-10-12 21:50:49 +00:00
|
|
|
%package devel-docs
|
|
|
|
Summary: Development documation for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description devel-docs
|
|
|
|
This package containg development documentation files for %{name}.
|
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
|
|
|
|
%prep
|
2010-05-29 11:12:03 +00:00
|
|
|
%setup -q
|
2010-03-21 15:54:44 +00:00
|
|
|
%patch0 -p1 -b .orig
|
2010-10-12 21:50:49 +00:00
|
|
|
|
2010-12-04 19:42:44 +00:00
|
|
|
# Remove -DG_DISABLE_DEPRECATED for G_DESKTOP_APP_INFO_LOOKUP_EXTENSION_POINT_NAME
|
2011-02-19 20:24:53 +00:00
|
|
|
# on GLib <= 2.27
|
|
|
|
%if 0%{?fedora} < 15
|
2010-12-04 19:42:44 +00:00
|
|
|
sed -i.deprecated \
|
|
|
|
-e '\@-DG_DISABLE_DEPRECATED@d' \
|
|
|
|
src/Makefile.am
|
2011-02-19 20:24:53 +00:00
|
|
|
%endif
|
2010-12-04 19:42:44 +00:00
|
|
|
|
2011-08-07 14:04:23 +00:00
|
|
|
# ???
|
2011-08-29 15:15:33 +00:00
|
|
|
#mkdir m4 || :
|
|
|
|
#sh autogen.sh
|
|
|
|
|
|
|
|
# ???
|
|
|
|
mkdir -p docs/reference/libfm
|
|
|
|
touch docs/{reference{/libfm/,},}/Makefile.in
|
2010-03-21 15:54:44 +00:00
|
|
|
|
2010-05-07 09:11:11 +00:00
|
|
|
# treak rpath
|
2010-12-04 19:42:44 +00:00
|
|
|
sed -i.libdir_syssearch \
|
|
|
|
-e '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \
|
2010-05-07 09:11:11 +00:00
|
|
|
configure
|
2010-04-28 18:54:05 +00:00
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
%build
|
2010-12-04 19:42:44 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static
|
2010-05-11 19:37:49 +00:00
|
|
|
# To show translation status
|
|
|
|
make -C po -j1 GMSGFMT="msgfmt --statistics"
|
2010-12-04 19:42:44 +00:00
|
|
|
make %{?_smp_mflags} -k
|
2010-03-21 15:54:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
echo '%%defattr(-,root,root,-)' > base-header.files
|
|
|
|
echo '%%defattr(-,root,root,-)' > gtk-header.files
|
2010-10-12 21:50:49 +00:00
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
for f in $RPM_BUILD_ROOT%_includedir/%name/%name/*.h
|
|
|
|
do
|
|
|
|
bf=$(basename $f)
|
|
|
|
for dir in base job
|
|
|
|
do
|
|
|
|
if [ -f src/$dir/$bf ]
|
|
|
|
then
|
|
|
|
echo %_includedir/%name/%name/$bf >> base-header.files
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
for dir in gtk
|
|
|
|
do
|
|
|
|
if [ -f src/$dir/$bf ]
|
|
|
|
then
|
|
|
|
echo %_includedir/%name/%name/$bf >> gtk-header.files
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|
|
|
|
|
2010-05-07 09:11:11 +00:00
|
|
|
/usr/lib/rpm/check-rpaths
|
2010-03-21 15:54:44 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
%post gtk -p /sbin/ldconfig
|
|
|
|
%postun gtk -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
# FIXME: Add ChangeLog and NEWS if not empty
|
|
|
|
%doc AUTHORS COPYING README
|
|
|
|
%dir %{_sysconfdir}/xdg/libfm/
|
|
|
|
%config(noreplace) %{_sysconfdir}/xdg/libfm/pref-apps.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/xdg/libfm/libfm.conf
|
|
|
|
%{_libdir}/%{name}.so.*
|
2011-02-19 20:24:53 +00:00
|
|
|
%if 0%{?fedora} < 15
|
2010-03-21 15:54:44 +00:00
|
|
|
%{_libdir}/gio/modules/libgiofm.so
|
2011-02-19 20:24:53 +00:00
|
|
|
%endif
|
2010-03-21 15:54:44 +00:00
|
|
|
%{_datadir}/mime/packages/libfm.xml
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/libfm-pref-apps
|
|
|
|
%{_libdir}/%{name}-gtk.so.*
|
2010-12-04 19:42:44 +00:00
|
|
|
#%%dir %{_libdir}/libfm/
|
|
|
|
#%%{_libdir}/libfm/gnome-terminal
|
2010-03-21 15:54:44 +00:00
|
|
|
%{_datadir}/libfm/
|
|
|
|
%{_datadir}/applications/libfm-pref-apps.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f base-header.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc TODO
|
|
|
|
%dir %{_includedir}/libfm/
|
|
|
|
%dir %{_includedir}/libfm/libfm/
|
|
|
|
%{_includedir}/libfm/libfm/fm.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/libfm.pc
|
|
|
|
|
|
|
|
|
|
|
|
%files gtk-devel -f gtk-header.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/libfm/libfm/fm-gtk.h
|
|
|
|
%{_libdir}/%{name}-gtk.so
|
|
|
|
%{_libdir}/pkgconfig/libfm-gtk.pc
|
|
|
|
|
2010-12-04 19:42:44 +00:00
|
|
|
%if 0
|
2010-10-12 21:50:49 +00:00
|
|
|
%files devel-docs
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%dir %{_datadir}/gtk-doc
|
|
|
|
%dir %{_datadir}/gtk-doc/html
|
|
|
|
%{_datadir}/gtk-doc/html/%{name}
|
2010-12-04 19:42:44 +00:00
|
|
|
%endif
|
2010-03-21 15:54:44 +00:00
|
|
|
|
|
|
|
%changelog
|
2011-08-29 15:15:33 +00:00
|
|
|
* Sun Aug 28 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.16-1
|
|
|
|
- 0.1.16 release
|
|
|
|
|
2011-08-07 14:04:23 +00:00
|
|
|
* Sun Aug 7 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-7
|
|
|
|
- Update to the latest git
|
|
|
|
|
2011-05-29 15:47:51 +00:00
|
|
|
* Sun May 29 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-6
|
|
|
|
- Update to the latest git, to support treeview on pcmanfm
|
|
|
|
|
2011-05-03 14:41:29 +00:00
|
|
|
* Tue May 03 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-5
|
|
|
|
- Update to the latest git
|
|
|
|
|
2011-04-23 16:22:40 +00:00
|
|
|
* Sun Apr 24 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-4
|
|
|
|
- Update to the latest git
|
|
|
|
|
2011-04-08 18:34:39 +00:00
|
|
|
* Sat Apr 09 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-3
|
|
|
|
- Update to the latest git
|
|
|
|
|
2011-02-19 20:24:53 +00:00
|
|
|
* Sun Feb 20 2011 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.1.15-2
|
|
|
|
- Update to the latest git
|
|
|
|
|
2011-02-08 05:43:32 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.15-1.git3ec0a717ad.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-04 19:42:44 +00:00
|
|
|
* Sun Dec 5 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp>
|
|
|
|
- Update to the latest git
|
|
|
|
|
2010-10-12 21:50:49 +00:00
|
|
|
* Wed Oct 13 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.14-1
|
|
|
|
- Update to 0.1.14, drop patches
|
|
|
|
|
2010-06-24 17:57:51 +00:00
|
|
|
* Fri Jun 25 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.12-4
|
|
|
|
- Fix crash with --desktop mode when clicking volume icon
|
|
|
|
(bug 607069)
|
|
|
|
|
2010-06-09 17:53:38 +00:00
|
|
|
* Thu Jun 10 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.12-3
|
|
|
|
- Fix an issue that pcmanfm // crashes (upstream bug 3012747)
|
|
|
|
|
|
|
|
* Fri Jun 4 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.12-2
|
2010-06-03 20:38:55 +00:00
|
|
|
- Fix an issue in sorting by name in cs_CZ.UTF-8 (upstream bug 3009374)
|
|
|
|
|
2010-05-29 11:12:03 +00:00
|
|
|
* Sat May 29 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.12-1
|
|
|
|
- Update to 0.1.12, drop upstreamed patches
|
|
|
|
|
2010-05-29 06:18:53 +00:00
|
|
|
* Sat May 29 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-7
|
2010-05-28 17:51:49 +00:00
|
|
|
- Fix crash of gnome-terminal wrapper with certain path settings
|
|
|
|
(bug 596598, 597270)
|
|
|
|
|
2010-05-25 14:32:11 +00:00
|
|
|
* Tue May 25 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-5
|
|
|
|
- Translation update from git
|
|
|
|
- Fix an issue in sorting by name in ja_JP.UTF-8 (upstream bug 3002788)
|
|
|
|
|
2010-05-11 19:37:49 +00:00
|
|
|
* Sun May 9 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-4
|
|
|
|
- Translation update from git
|
|
|
|
|
2010-05-07 09:11:11 +00:00
|
|
|
* Fri May 7 2010 Mamrou Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-3
|
|
|
|
- Remove runpath_var=... trick on libtool which causes internal
|
|
|
|
linkage error,
|
|
|
|
and treak sys_lib_dlsearch_path_spec instead for rpath issue on x86_64
|
|
|
|
|
2010-05-07 08:21:35 +00:00
|
|
|
* Fri May 7 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-2
|
2010-05-28 17:51:49 +00:00
|
|
|
- Fix crash of wrapper of gnome-terminal when libfm.conf doesn't exist or so
|
2010-05-07 08:21:35 +00:00
|
|
|
(bug 589730)
|
|
|
|
|
2010-04-28 18:23:56 +00:00
|
|
|
* Thu Apr 29 2010 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.1.11-1
|
|
|
|
- Update to 0.1.11
|
|
|
|
|
2010-04-18 19:26:36 +00:00
|
|
|
* Sun Apr 18 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.10-1
|
|
|
|
- Update to 0.1.10
|
|
|
|
|
2010-03-21 15:54:44 +00:00
|
|
|
* Sun Mar 21 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.9-2
|
|
|
|
- Own %%{_libdir}/libfm
|
|
|
|
- Validate desktop file
|
|
|
|
|
|
|
|
* Fri Mar 19 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.9-1
|
|
|
|
- Update to 0.1.9 (Beta 1)
|
|
|
|
|
|
|
|
* Sat Mar 13 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.5-1
|
|
|
|
- Update to 0.1.5 (Alpha 2)
|
|
|
|
|
|
|
|
* Fri Mar 05 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.1-1
|
|
|
|
- Update to 0.1.1 (Alpha 1)
|
|
|
|
|
|
|
|
* Mon Feb 22 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.1-1
|
|
|
|
- Initial packaging
|
|
|
|
|