Blob Blame History Raw
## Rebuild options:
# --with hal : Build with the hal support (default: without)
#
## To rebuild this package with hal support:
# rpmbuild -ba emelfm2.spec --with hal

Name:           emelfm2
Version:        0.6.1
Release:        2%{?dist}
Summary:        File manager that implements the popular two-pane design

Group:          Applications/File
License:        GPLv3+
URL:            http://emelfm2.net/
Source0:        http://emelfm2.net/rel/%{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  gtk2-devel >= 2.6.0, libacl-devel, gettext, desktop-file-utils
BuildRequires:  file-devel
Requires:       findutils >= 4.2, grep, sed, bzip2
%if 0%{?_with_hal:1}
BuildRequires:  hal-devel, dbus-glib-devel
Requires:       hal
%endif

%if 0%{?fedora} > 10
BuildRequires:  dbus-glib-devel
Requires:       DeviceKit-disks
%endif

%description
emelFM2 is the GTK+2 port of emelFM. emelFM2 is a file manager that implements 
the popular two-pane design. It features a simple GTK+2 interface, a flexible 
file typing scheme, and a built-in command line for executing commands without 
opening an xterm.


%prep
%setup -q

# fix broken icon in emelfm2.desktop
sed -i 's!Icon=emelfm2!Icon=%{_datadir}/pixmaps/emelfm2/emelfm2_48.png!' docs/desktop_environment/%{name}.desktop

# get more useful build logs (verify CFLAGS etc)
sed -i 's!^\(\t\+\)@!\1!' Makefile

%build
make %{?_smp_mflags} \
    CFLAGS="${RPM_OPT_FLAGS}" \
    PREFIX="%{_prefix}" \
    LIB_DIR="%{_libdir}" \
    DOCS_VERSION=1 \
    WITH_TRANSPARENCY=1 \
    WITH_KERNELFAM=1 \
    WITH_TRACKER=1 \
    USE_LATEST=1 \
    NEW_COMMAND=1 \
    WITH_ACL=1
    STRIP=0 \
    %if 0%{?fedora} > 10
    WITH_DEVKIT=1 \
    %endif
    %if 0%{?_with_hal:1}
      WITH_HAL=1 \
    %endif


%install
rm -rf $RPM_BUILD_ROOT
make install install_i18n \
    DOCS_VERSION=1 \
    PREFIX=$RPM_BUILD_ROOT%{_prefix} \
    PLUGINS_DIR="$RPM_BUILD_ROOT%{_libdir}/%{name}/plugins"

%find_lang %{name}

desktop-file-install --vendor fedora                            \
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications         \
        --delete-original                                       \
        ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop


%clean
rm -rf $RPM_BUILD_ROOT


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc docs/ACTIONS docs/CONFIGURATION docs/CREDITS docs/HACKING 
%doc docs/NEWS docs/README docs/TODO docs/USAGE docs/WARNING 
%doc docs/GPL docs/LGPL
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/application-registry/%{name}.applications
%{_datadir}/pixmaps/%{name}
%{_mandir}/man1/emelfm2.1.gz

	
%changelog
* Fri Jul 17 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.1-2
- Build with ACL plugin again, got dropped accidentially.

* Fri Jul 17 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.1-1
- Update 0.6.1
- Enable auto (un)mounting using devicekit-disks
- Use new LIB_DIR option instead of PLUGINS_DIR
- Build with "STRIP=0" instead of using nostrip.patch

* Sat May 09 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.6.0-1
- Update 0.6.0
- Patch to fix segfault in e2_upgrade.so
- Enable the tracker plugin

* Fri May  8 2009 Ville Skyttä <ville.skytta at iki.fi> - 0.5.1-2
- Patch to not strip binaries before rpmbuild creates the -debuginfo subpackage (#499885)

* Wed Feb 25 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.1-1
- Update 0.5.1

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Thu Oct 30 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.5.0-1
- Update 0.5.0

* Tue Jul 08 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.1-1
- Update 0.4.1
- Revove hal_flags.patch (fixed upstream)
- Remove HAL support until it really works. To enable rebuild "--with hal"

* Wed Apr 02 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.4.0-1
- Update 0.4.0
- Enable HAL support, but dont install hal by default
- Add emelfm2-0.4-hal_flags.patch (Thanks to Uwe Helm)
- Require bzip2 for the unpack-plugin

* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.6-2
- Autorebuild for GCC 4.3

* Sun Dec 02 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.6-1
- Update 0.3.6 with upstream's e2-0.3.6-07-12-01.patch
- Enable the ACL plugin

* Tue Aug 21 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.5-2
- Rebuild to fix SELinux issues on PPC32 and to include BuildID feature

* Sun Jul 29 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.5-1
- Update 0.3.5.

* Sat Jun 09 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.4-1
- Update 0.3.4.
- Enable support for inotify

* Wed Mar 21 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.3-1
- Update 0.3.3.

* Sat Feb 24 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.2-2
- Include upstream's e2-0.3.2-07-02-01.patch fixing some bugs.

* Fri Jan 19 2007 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.2-1
- Update 0.3.2.
- Remove Category "Application" from emelfm2.desktop.

* Sat Dec 16 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.1-1
- Update 0.3.1.
- Remove Category "X-Fedora" from emelfm2.desktop.

* Mon Aug 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.3.0-1
- Update 0.3.

* Mon Aug 28 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.2.0-1
- Update 0.2.0.

* Fri Aug 11 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.8-2
- Include upstream's e2-0.1.8-06-08-09.patch to fix two serious bugs.

* Sun Aug 06 2006 Christoph Wickert <cwickert@fedoraproject.org> - 0.1.8-1
- Update to 0.1.8.

* Thu Apr 23 2006 Christoph Wickert <fedora wickert arcor de> - 0.1.7-1
- Update to 0.1.7.

* Tue Mar 14 2006 Christoph Wickert <fedora wickert arcor de> - 0.1.6-1
- Update to 0.1.6.
- Add Requires for plugins.

* Sat Feb 18 2006 Christoph Wickert <fedora wickert arcor de> - 0.1.5-2
- Rebuild for Fedora Extras 5.

* Thu Jan 26 2006 Christoph Wickert <fedora wickert arcor de> - 0.1.5-1
- Update to 0.1.5.

* Thu Dec 29 2005 Christoph Wickert <fedora wickert arcor de> - 0.1.4-1
- Update to 0.1.4.

* Mon Nov 21 2005 Christoph Wickert <fedora wickert arcor de> - 0.1.3-2
- Removed nonexistant ROADMAP from %%doc.

* Mon Nov 21 2005 Christoph Wickert <fedora wickert arcor de> - 0.1.3-1
- Update to 0.1.3.

* Tue Sep 27 2005 Christoph Wickert <fedora wickert acror de> - 0.1.2-3
- Fix for x86_64.

* Mon Sep 26 2005 Christoph Wickert <fedora wickert acror de> - 0.1.2-2
- Removed broken-icon.patch (using sed instead).
- Removed hardcoded /usr from makefile.config-patch.
- Minor specfile changes (#168608).

* Sun Sep 18 2005 Christoph Wickert <fedora wickert acror de> - 0.1.2-1
- Update to 0.1.2.

* Sun Sep 11 2005 Christoph Wickert <fedora wickert acror de> - 0.1.1-2
- Using destop-file-install.
- Several fixes for FE.

* Sun Aug 21 2005 Christoph Wickert <fedora wickert acror de> - 0.1.1-1.fc4.cw
- Initial RPM release.