parent
ac1bcbb46e
commit
a15c9592b1
@ -1,21 +0,0 @@
|
||||
# Makefile for source rpm: dolphin
|
||||
# $Id: Makefile,v 1.1 2006/06/30 07:26:03 chitlesh Exp $
|
||||
NAME := dolphin
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
@ -1,101 +0,0 @@
|
||||
Name: dolphin
|
||||
Version: 0.8.2
|
||||
Release: 2%{?dist}
|
||||
Summary: A file manager for KDE focusing on usability
|
||||
|
||||
License: GPL
|
||||
Group: User Interface/Desktops
|
||||
URL: http://enzosworld.gmxhome.de/
|
||||
Source: http://enzosworld.gmxhome.de/download/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: kdelibs-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: gettext
|
||||
|
||||
%description
|
||||
Dolphin focuses on being only a file manager.
|
||||
This approach allows to optimize the user
|
||||
interface for the task of file management.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#dolphin incorrect-locale-subdir fix
|
||||
sed -e 's|dolphin.po|en.po|g' -i po/Makefile.in
|
||||
sed -e 's|dolphin.gmo|en.gmo|g' -i po/Makefile.in
|
||||
pushd po
|
||||
mv dolphin.po en.po
|
||||
popd
|
||||
|
||||
|
||||
%build
|
||||
|
||||
# dolphin-debuginfo script-without-shebang fix
|
||||
chmod -x src/sidebar.{cpp,h}
|
||||
|
||||
%configure --disable-rpath
|
||||
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__rm} -rf %{buildroot}
|
||||
%{__make} DESTDIR=%{buildroot} install
|
||||
|
||||
desktop-file-install --vendor "" \
|
||||
--delete-original \
|
||||
--dir %{buildroot}%{_datadir}/applications/ \
|
||||
%{buildroot}%{_datadir}/applications/kde/%{name}.desktop
|
||||
|
||||
|
||||
## File lists
|
||||
# locale's
|
||||
%find_lang %{name} || touch %{name}.lang
|
||||
# HTML (1.0)
|
||||
HTML_DIR=$(kde-config --expandvars --install html)
|
||||
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||
if [ -d $lang_dir ]; then
|
||||
lang=$(basename $lang_dir)
|
||||
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||
# replace absolute symlinks with relative ones
|
||||
pushd $lang_dir
|
||||
for i in *; do
|
||||
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||
done
|
||||
popd
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%postun
|
||||
touch --no-create %{_datadir}/icons/hicolor || :
|
||||
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS ChangeLog COPYING TODO
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
%{_datadir}/apps/%{name}/
|
||||
%{_docdir}/HTML/en/%{name}/
|
||||
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||
%{_datadir}/icons/hicolor/??x??/apps/%{name}.png
|
||||
|
||||
|
||||
|
||||
%Changelog
|
||||
* Sun Apr 22 2007 Johan Cwiklinski <johan@x-tnd.be> 0.8.2-2
|
||||
- Added gettext to BR so locales are correctly handled while building
|
||||
* Sun Mar 18 2007 Johan Cwiklinski <johan.cwiklinski@fedoraproject.org> 0.8.2-1
|
||||
- Upgrading to new version
|
||||
* Sun Jan 14 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 0.8.1-1
|
||||
- Initial package for Fedora Extras.
|
Loading…
Reference in new issue