diff --git a/README.md b/README.md index 7305f96..599d363 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libfm +Library used by the PCMan File Manager. + diff --git a/libfm.spec b/libfm.spec new file mode 100644 index 0000000..2a8b02c --- /dev/null +++ b/libfm.spec @@ -0,0 +1,151 @@ +Name: libfm +Version: 1.1.2.2 +Release: 1mamba +Summary: A library used by the PCMan File Manager +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sourceforge.net/projects/pcmanfm +# dist tarball 0.1.15 created from git: +# git clone git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/libfm +# ./configure --sysconfdir=/etc --with-gtk-doc +# make +# make dist +Source: http://downloads.sourceforge.net/project/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/libfm%20%28required%20by%20PCManFM%29/libfm-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libdbus-devel +BuildRequires: libdbus-glib-devel +BuildRequires: libexif-devel +BuildRequires: libffi-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgtk2-devel +BuildRequires: libgtk-devel +BuildRequires: libmenu-cache-devel +BuildRequires: libpango-devel +BuildRequires: libselinux-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: gtk-doc +BuildRequires: libmenu-cache-devel >= 0.4 +BuildRequires: libpthread-stubs-devel +BuildRequires: libXdamage-devel +BuildRequires: libXxf86vm-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libgraphite2-devel +BuildRequires: libexpat-devel +Requires: udisks +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Library used by the PCMan File Manager. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Library used by the PCMan File Manager. + +This package contains static libraries and header files need for development. + +%prep +%setup -q + +%build +%configure \ + --enable-udisks + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%pre +if [ $1 -ge 1 ]; then + [ -d %{_includedir}/libfm -a ! -L %{_includedir}/libfm ] && mv %{_includedir}/libfm %{_includedir}/libfm.old + ln -sf libfm-1.0 %{_includedir}/libfm +fi +: + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_sysconfdir}/xdg/libfm/libfm.conf +%{_sysconfdir}/xdg/libfm/pref-apps.conf +%{_bindir}/libfm-pref-apps +#%{_libdir}/gio/modules/libgiofm.* +%{_libdir}/libfm.so.* +%{_libdir}/libfm-gtk.so.* +#%{_libdir}/libfm/gnome-terminal +%{_datadir}/applications/libfm-pref-apps.desktop +%dir %{_datadir}/libfm +%{_datadir}/libfm/archivers.list +%{_datadir}/libfm/ui/*.ui +%{_datadir}/mime/packages/libfm.xml +%{_mandir}/man1/libfm-pref-apps.1.gz +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/libfm +%dir %{_includedir}/libfm-1.0 +%{_includedir}/libfm-1.0/*.h +%{_libdir}/libfm.a +%{_libdir}/libfm.la +%{_libdir}/libfm.so +%{_libdir}/libfm-gtk.a +%{_libdir}/libfm-gtk.la +%{_libdir}/libfm-gtk.so +%{_libdir}/pkgconfig/*.pc +#%{_datadir}/gtk-doc/html/libfm +%doc README TODO + +%changelog +* Tue Sep 10 2013 Automatic Build System 1.1.2.2-1mamba +- automatic version update by autodist + +* Mon Aug 12 2013 Automatic Build System 1.1.2-1mamba +- automatic version update by autodist + +* Tue Jul 23 2013 Automatic Build System 1.1.1-1mamba +- automatic version update by autodist + +* Thu Apr 04 2013 Silvan Calarco 1.1.0-4mamba +- make fixing libfm includedir silent + +* Sat Feb 02 2013 Automatic Build System 1.1.0-3mamba +- rebuilt with libmenucache 0.4.1 + +* Thu Nov 22 2012 Silvan Calarco 1.1.0-2mamba +- fix upgrading from %{_includedir}/libfm directory to symlink + +* Fri Nov 16 2012 Automatic Build System 1.1.0-1mamba +- automatic version update by autodist + +* Mon Aug 20 2012 Automatic Build System 1.0-1mamba +- automatic version update by autodist + +* Wed Feb 16 2011 Silvan Calarco 0.1.15-1mamba +- update to 0.1.15 +- added requirement for udisks + +* Tue Nov 09 2010 Silvan Calarco 0.1.14-1mamba +- package created by autospec +git clone git://pcmanfm.git.sourceforge.net/gitroot/pcmanfm/libfm