You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
113 lines
2.8 KiB
113 lines
2.8 KiB
13 years ago
|
# Default version for this component
|
||
|
%define kdecomp filelight-l10n
|
||
|
|
||
|
%define debug_package %{nil}
|
||
|
|
||
|
|
||
|
# TDE 3.5.13 specific building variables
|
||
4 years ago
|
%define tde_prefix /opt/trinity
|
||
12 years ago
|
%define tde_bindir %{tde_prefix}/bin
|
||
|
%define tde_datadir %{tde_prefix}/share
|
||
|
%define tde_docdir %{tde_datadir}/doc
|
||
|
%define tde_includedir %{tde_prefix}/include
|
||
|
%define tde_libdir %{tde_prefix}/%{_lib}
|
||
|
%define tde_mandir %{tde_datadir}/man
|
||
13 years ago
|
|
||
12 years ago
|
%define tde_tdeappdir %{tde_datadir}/applications/kde
|
||
|
%define tde_tdedocdir %{tde_docdir}/kde
|
||
|
%define tde_tdeincludedir %{tde_includedir}/kde
|
||
|
%define tde_tdelibdir %{tde_libdir}/trinity
|
||
|
|
||
|
%define _docdir %{tde_docdir}
|
||
13 years ago
|
|
||
|
Name: trinity-%{kdecomp}
|
||
|
Summary: Localization (l10n) for Filelight, disk space usage tool [Trinity]
|
||
12 years ago
|
Version: 1.0
|
||
9 years ago
|
Release: 2%{?dist}
|
||
13 years ago
|
|
||
|
License: GPLv2+
|
||
|
Group: Applications/Utilities
|
||
|
%if 0%{?fedora} > 0 || 0%{?rhel} >= 6
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
|
||
|
Vendor: Trinity Project
|
||
|
Packager: Francois Andriot <francois.andriot@free.fr>
|
||
|
URL: http://www.trinitydesktop.org/
|
||
|
|
||
|
Prefix: %{_prefix}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
12 years ago
|
BuildArch: noarch
|
||
13 years ago
|
|
||
|
Source0: %{kdecomp}-3.5.13.tar.gz
|
||
|
|
||
12 years ago
|
BuildRequires: trinity-tdelibs-devel
|
||
|
BuildRequires: trinity-tdebase-devel
|
||
13 years ago
|
BuildRequires: desktop-file-utils
|
||
|
BuildRequires: gettext
|
||
|
|
||
12 years ago
|
Requires: trinity-filelight
|
||
13 years ago
|
|
||
|
%description
|
||
|
This package provides localization(l10n) files (translations and docs) for
|
||
|
Filelight, Filelight allows you to understand your disk usage by graphically
|
||
|
representing your filesystem as a set of concentric, segmented rings.
|
||
|
|
||
|
See the 'filelight' package description for more information.
|
||
|
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n applications/%{kdecomp}
|
||
|
|
||
12 years ago
|
# Removes 'en' (primary) language HTML doc, since it is already in main package.
|
||
|
%__rm -rf doc/filelight
|
||
|
|
||
13 years ago
|
# Ugly hack to modify TQT include directory inside autoconf files.
|
||
|
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
|
||
|
%__sed -i admin/acinclude.m4.in \
|
||
12 years ago
|
-e "s|/usr/include/tqt|%{tde_includedir}/tqt|g" \
|
||
|
-e "s|kde_htmldir='.*'|kde_htmldir='%{tde_tdedocdir}/HTML'|g"
|
||
13 years ago
|
|
||
|
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||
9 years ago
|
%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
||
13 years ago
|
%__make -f "admin/Makefile.common"
|
||
|
|
||
|
|
||
|
|
||
12 years ago
|
%build
|
||
|
unset QTDIR || : ; . /etc/profile.d/qt.sh
|
||
|
export PATH="%{tde_bindir}:${PATH}"
|
||
|
export LDFLAGS="-L%{tde_libdir} -I%{_includedir}"
|
||
|
|
||
|
./configure \
|
||
|
--prefix=%{tde_prefix} \
|
||
|
--exec-prefix=%{tde_prefix} \
|
||
|
--datadir=%{tde_datadir} \
|
||
|
--docdir=%{tde_tdedocdir} \
|
||
|
--disable-rpath \
|
||
|
--with-extra-includes=%{tde_includedir}/tqt
|
||
13 years ago
|
|
||
|
%__make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
12 years ago
|
export PATH="%{tde_bindir}:${PATH}"
|
||
13 years ago
|
%__rm -rf %{buildroot}
|
||
|
%__make install DESTDIR=%{buildroot}
|
||
|
|
||
12 years ago
|
%find_lang filelight --with-kde
|
||
|
|
||
13 years ago
|
|
||
|
%clean
|
||
|
%__rm -rf %{buildroot}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
12 years ago
|
%files -f filelight.lang
|
||
13 years ago
|
%defattr(-,root,root,-)
|
||
|
|
||
|
|
||
8 years ago
|
%changelog
|