[5578] | 1 | Name: libfm |
---|
| 2 | Summary: A glib/gio-based lib used to develop file managers |
---|
| 3 | Summary(ja): ファイルマネージャー開発に用いられる glib/gio ベースのライブラリー |
---|
[10188] | 4 | Version: 1.2.4 |
---|
[7800] | 5 | Release: 1%{?_dist_release} |
---|
[5578] | 6 | License: GPLv2+ |
---|
| 7 | Group: System Environment/Libraries |
---|
| 8 | URL: http://sourceforge.net/projects/pcmanfm/ |
---|
[8980] | 9 | Source0: %{name}-%{version}.tar.xz |
---|
[5578] | 10 | Patch0: libfm_customize.patch |
---|
| 11 | |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 13 | BuildRequires: autoconf automake |
---|
[6716] | 14 | BuildRequires: dbus-glib-devel |
---|
[5578] | 15 | BuildRequires: desktop-file-utils |
---|
| 16 | BuildRequires: fdupes |
---|
| 17 | BuildRequires: gettext |
---|
| 18 | BuildRequires: gvfs-devel |
---|
| 19 | BuildRequires: gtk-doc |
---|
| 20 | BuildRequires: gtk2-devel >= 2.16.0 |
---|
[6716] | 21 | BuildRequires: glib2-devel >= 2.26.0 |
---|
[5578] | 22 | BuildRequires: intltool >= 0.40 |
---|
| 23 | BuildRequires: menu-cache-devel >= 0.3.2 |
---|
| 24 | BuildRequires: pango-devel |
---|
| 25 | BuildRequires: perl-XML-Parser |
---|
| 26 | BuildRequires: pkgconfig |
---|
[6716] | 27 | BuildRequires: udisks-devel |
---|
[6845] | 28 | BuildRequires: vala |
---|
[5578] | 29 | |
---|
| 30 | Requires(post): /sbin/ldconfig |
---|
| 31 | Requires(postun): /sbin/ldconfig |
---|
| 32 | |
---|
| 33 | Vendor: Project Vine |
---|
| 34 | Distribution: Vine Linux |
---|
| 35 | Packager: kudoh |
---|
| 36 | |
---|
[7104] | 37 | |
---|
[5578] | 38 | %description |
---|
| 39 | A glib/gio-based lib used to develop file managers providing some |
---|
| 40 | file management utilities and related-widgets missing in gtk+/glib. |
---|
| 41 | |
---|
| 42 | %package gtk |
---|
| 43 | Summary: File manager-related GTK+ widgets of %{name} |
---|
| 44 | Summary(ja): ファイルマネージャーに関連する %{name} の GTK+ ウィジェット |
---|
| 45 | Group: System Environment/Libraries |
---|
| 46 | Requires: %{name} = %{version}-%{release} |
---|
| 47 | Requires: gvfs |
---|
| 48 | |
---|
| 49 | %description gtk |
---|
| 50 | libfm is a GIO-based library used to develop file manager-like programs. It is |
---|
| 51 | developed as the core of next generation PCManFM and takes care of all file- |
---|
| 52 | related operations such as copy & paste, drag & drop, file associations or |
---|
| 53 | thumbnail support. By utilizing glib/gio and gvfs, libfm can access remote |
---|
| 54 | file systems supported by gvfs. |
---|
| 55 | |
---|
| 56 | This package provides useful file manager-related GTK+ widgets. |
---|
| 57 | |
---|
[8980] | 58 | |
---|
| 59 | %package gtk-utils |
---|
| 60 | Summary: GTK+ related utility package for %{name} |
---|
| 61 | Group: User Interface/Desktops |
---|
| 62 | Requires: %{name}-gtk%{?isa} = %{version}-%{release} |
---|
| 63 | Obsoletes: lxshortcut < 0.1.3 |
---|
| 64 | Provides: lxshortcut = %{version}-%{release} |
---|
| 65 | Provides: lxshortcut%{?_isa} = %{version}-%{release} |
---|
| 66 | |
---|
| 67 | %description gtk-utils |
---|
| 68 | This package contains some GTK+ related utility files for |
---|
| 69 | %{name}. |
---|
| 70 | |
---|
| 71 | |
---|
[5578] | 72 | %package devel |
---|
| 73 | Summary: Development files for %{name} |
---|
| 74 | Summary(ja): %{name} の開発ファイル |
---|
| 75 | Group: Development/Libraries |
---|
| 76 | Requires: %{name} = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | %description devel |
---|
| 79 | The %{name}-devel package contains libraries and header files for |
---|
| 80 | developing applications that use %{name}. |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %package gtk-devel |
---|
| 84 | Summary: Development files for %{name}-gtk |
---|
| 85 | Summary(ja): %{name}-gtk の開発ファイル |
---|
| 86 | Group: Development/Libraries |
---|
| 87 | Requires: %{name}-gtk = %{version}-%{release} |
---|
| 88 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 89 | |
---|
| 90 | %description gtk-devel |
---|
| 91 | The %{name}-devel package contains libraries and header files for |
---|
| 92 | developing applications that use %{name}-gtk. |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %package devel-docs |
---|
| 96 | Summary: Development documation for %{name} |
---|
| 97 | Summary(ja): %{name} の開発ドキュメント |
---|
| 98 | Group: Development/Libraries |
---|
| 99 | |
---|
| 100 | %description devel-docs |
---|
| 101 | This package containg development documentation files for %{name}. |
---|
| 102 | |
---|
| 103 | %prep |
---|
[6845] | 104 | %setup -qn libfm-%{version} |
---|
[5578] | 105 | %patch0 -p1 |
---|
| 106 | |
---|
| 107 | # treak rpath |
---|
| 108 | sed -i.libdir_syssearch -e \ |
---|
| 109 | '/sys_lib_dlsearch_path_spec/s|/usr/lib |/usr/lib /usr/lib64 /lib /lib64 |' \ |
---|
| 110 | configure |
---|
| 111 | |
---|
| 112 | %build |
---|
[7104] | 113 | %configure --enable-static=no --enable-udisks --enable-gtk-doc |
---|
[5578] | 114 | make -C po -j1 GMSGFMT="msgfmt --statistics" |
---|
| 115 | make %{?_smp_mflags} |
---|
| 116 | |
---|
| 117 | |
---|
| 118 | %install |
---|
| 119 | rm -rf $RPM_BUILD_ROOT |
---|
| 120 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
| 121 | |
---|
| 122 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
---|
[7104] | 123 | rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/libfm-gtk3.pc |
---|
[5578] | 124 | |
---|
| 125 | %find_lang %{name} |
---|
| 126 | |
---|
| 127 | echo '%%defattr(-,root,root,-)' > base-header.files |
---|
| 128 | echo '%%defattr(-,root,root,-)' > gtk-header.files |
---|
| 129 | for f in $RPM_BUILD_ROOT%{_includedir}/%name/%name/*.h |
---|
| 130 | do |
---|
| 131 | bf=$(basename $f) |
---|
| 132 | for dir in base job |
---|
| 133 | do |
---|
| 134 | if [ -f src/$dir/$bf ] |
---|
| 135 | then |
---|
| 136 | echo %_includedir/%name/%name/$bf >> base-header.files |
---|
| 137 | fi |
---|
| 138 | done |
---|
| 139 | for dir in gtk |
---|
| 140 | do |
---|
| 141 | if [ -f src/$dir/$bf ] |
---|
| 142 | then |
---|
| 143 | echo %_includedir/%name/%name/$bf >> gtk-header.files |
---|
| 144 | fi |
---|
| 145 | done |
---|
| 146 | done |
---|
| 147 | |
---|
| 148 | /usr/lib/rpm/check-rpaths |
---|
| 149 | |
---|
[7104] | 150 | %check |
---|
| 151 | desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop |
---|
| 152 | |
---|
[5578] | 153 | %clean |
---|
| 154 | rm -fr %{buildroot} |
---|
| 155 | |
---|
[7104] | 156 | %pre devel |
---|
| 157 | # Directory -> symlink |
---|
| 158 | if [ -d %{_includedir}/libfm ] ; then |
---|
| 159 | rm -rf %{_includedir}/libfm |
---|
| 160 | fi |
---|
| 161 | |
---|
[5578] | 162 | %post |
---|
| 163 | /sbin/ldconfig |
---|
| 164 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 165 | |
---|
| 166 | |
---|
| 167 | %postun |
---|
| 168 | /sbin/ldconfig |
---|
| 169 | update-mime-database %{_datadir}/mime &> /dev/null || : |
---|
| 170 | |
---|
| 171 | |
---|
| 172 | %post gtk -p /sbin/ldconfig |
---|
| 173 | %postun gtk -p /sbin/ldconfig |
---|
| 174 | |
---|
| 175 | %files -f %{name}.lang |
---|
| 176 | %defattr(-,root,root,-) |
---|
| 177 | %doc AUTHORS ChangeLog COPYING NEWS README |
---|
| 178 | %dir %{_sysconfdir}/xdg/libfm/ |
---|
| 179 | %config(noreplace) %{_sysconfdir}/xdg/libfm/libfm.conf |
---|
[8980] | 180 | %{_libdir}/%{name}.so.4* |
---|
| 181 | %{_libdir}/%{name}-extra.so.4* |
---|
| 182 | %dir %{_libdir}/libfm |
---|
| 183 | %dir %{_libdir}/libfm/modules |
---|
| 184 | %{_libdir}/libfm/modules/* |
---|
[5578] | 185 | %{_datadir}/mime/packages/libfm.xml |
---|
| 186 | |
---|
| 187 | |
---|
| 188 | %files gtk |
---|
| 189 | %defattr(-,root,root,-) |
---|
| 190 | %{_libdir}/%{name}-gtk.so.* |
---|
| 191 | %{_datadir}/libfm/ |
---|
| 192 | %{_datadir}/applications/libfm-pref-apps.desktop |
---|
[6548] | 193 | %{_mandir}/man1/libfm-pref-apps.1.gz |
---|
[5578] | 194 | |
---|
| 195 | |
---|
[8980] | 196 | %files gtk-utils |
---|
| 197 | %defattr(-,root,root,-) |
---|
| 198 | %{_mandir}/man1/libfm-pref-apps.1.* |
---|
| 199 | %{_mandir}/man1/lxshortcut.1.* |
---|
| 200 | %{_bindir}/libfm-pref-apps |
---|
| 201 | %{_bindir}/lxshortcut |
---|
| 202 | %{_datadir}/applications/libfm-pref-apps.desktop |
---|
| 203 | %{_datadir}/applications/lxshortcut.desktop |
---|
| 204 | |
---|
| 205 | |
---|
[5578] | 206 | %files devel -f base-header.files |
---|
| 207 | %defattr(-,root,root,-) |
---|
| 208 | %doc TODO |
---|
[8980] | 209 | %{_includedir}/libfm |
---|
| 210 | %dir %{_includedir}/libfm-1.0/ |
---|
| 211 | %{_includedir}/libfm-1.0/* |
---|
[5578] | 212 | %{_libdir}/%{name}.so |
---|
[8980] | 213 | %{_libdir}/%{name}-extra.so |
---|
[5578] | 214 | %{_libdir}/pkgconfig/libfm.pc |
---|
[8980] | 215 | %{_libdir}/pkgconfig/libfm-extra.pc |
---|
[5578] | 216 | |
---|
| 217 | |
---|
| 218 | %files gtk-devel -f gtk-header.files |
---|
| 219 | %defattr(-,root,root,-) |
---|
[8980] | 220 | %{_includedir}/libfm-1.0/fm-gtk.h |
---|
[5578] | 221 | %{_libdir}/%{name}-gtk.so |
---|
| 222 | %{_libdir}/pkgconfig/libfm-gtk.pc |
---|
| 223 | |
---|
| 224 | |
---|
| 225 | %files devel-docs |
---|
| 226 | %defattr(-,root,root,-) |
---|
| 227 | %dir %{_datadir}/gtk-doc |
---|
| 228 | %dir %{_datadir}/gtk-doc/html |
---|
| 229 | %{_datadir}/gtk-doc/html/%{name} |
---|
| 230 | |
---|
| 231 | %changelog |
---|
[10188] | 232 | * Wed Apr 20 2016 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.4-1 |
---|
| 233 | - new upstream release |
---|
| 234 | |
---|
[8980] | 235 | * Sat Sep 27 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.2.1-1 |
---|
| 236 | - new upstream release |
---|
| 237 | - changed archive type gz to xz |
---|
| 238 | - added subpackage -gtk-utils |
---|
| 239 | - added Obsoletes: lxshortcut < 0.1.3, Provides: lxshortcut |
---|
| 240 | |
---|
[7800] | 241 | * Sun Sep 15 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.2.2-1 |
---|
| 242 | - new upstream release |
---|
| 243 | |
---|
[7129] | 244 | * Sat Nov 17 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.0-2 |
---|
| 245 | - rebuilt with menu-cache-0.4.1 |
---|
| 246 | |
---|
[7104] | 247 | * Sat Nov 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1 |
---|
| 248 | - new upstream release |
---|
| 249 | - recreated patch0 |
---|
| 250 | - stopped autoreconf --force --install and intltoolize --force |
---|
| 251 | - added %%configure option --enable-gtk-doc |
---|
| 252 | - runnning desktop-file-validate in %%check |
---|
| 253 | |
---|
[6845] | 254 | * Sat Sep 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.1-1 |
---|
| 255 | - new upstream release |
---|
| 256 | - run autoreconf --force --install and intltoolize --force |
---|
| 257 | - aded BuildRequires: vala |
---|
| 258 | |
---|
[6716] | 259 | * Tue Aug 14 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0-2 |
---|
| 260 | - new upstream release |
---|
| 261 | - added BuildRequires: dbus-glib-devel |
---|
| 262 | - changed BuildRequires: glib2-devel >= 2.24.0 to 2.26.0 |
---|
| 263 | - fixed BuildRequires: udisks to udisks-devel |
---|
| 264 | - added %%configure option --enable-udisks (experimental) |
---|
| 265 | |
---|
[6548] | 266 | * Tue Jul 10 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0rc1-1 |
---|
| 267 | - new upstream release |
---|
| 268 | |
---|
[5578] | 269 | * Sun Feb 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.1.17 |
---|
| 270 | - initial build for VineSeed |
---|
| 271 | |
---|
| 272 | * Sat Jan 30 2010 Oliver Burger <rpm@mandrivauser.de> 1.2-0.1git20100129.1mud2010.0 |
---|
| 273 | - initial package for Mandriva Linux |
---|