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.
191 lines
5.9 KiB
191 lines
5.9 KiB
10 years ago
|
#
|
||
10 years ago
|
# spec file for package tde-systemsettings (version R14)
|
||
10 years ago
|
#
|
||
|
# Copyright (c) 2014 Trinity Desktop Environment
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
#
|
||
|
# Please submit bugfixes or comments via http://www.trinitydesktop.org/
|
||
|
#
|
||
|
|
||
|
# TDE variables
|
||
|
%define tde_epoch 2
|
||
10 years ago
|
%if "%{?tde_version}" == ""
|
||
4 years ago
|
%define tde_version 14.1.0
|
||
10 years ago
|
%endif
|
||
10 years ago
|
%define tde_pkg tde-systemsettings
|
||
|
%define tde_prefix /opt/trinity
|
||
12 years ago
|
%define tde_bindir %{tde_prefix}/bin
|
||
9 years ago
|
%define tde_confdir %{_sysconfdir}/trinity
|
||
12 years ago
|
%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
|
||
10 years ago
|
%define tde_sysconfdir %{_sysconfdir}/trinity
|
||
|
%define tde_tdeappdir %{tde_datadir}/applications/tde
|
||
12 years ago
|
%define tde_tdedocdir %{tde_docdir}/tde
|
||
|
%define tde_tdeincludedir %{tde_includedir}/tde
|
||
|
%define tde_tdelibdir %{tde_libdir}/trinity
|
||
|
|
||
|
|
||
10 years ago
|
Name: trinity-%{tde_pkg}
|
||
|
Epoch: %{tde_epoch}
|
||
|
Version: 0.0svn20070312
|
||
9 years ago
|
Release: %{?tde_version}_%{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
|
||
10 years ago
|
Summary: Easy to use control centre for TDE
|
||
|
Group: Applications/Utilities
|
||
|
URL: http://www.trinitydesktop.org
|
||
12 years ago
|
|
||
10 years ago
|
%if 0%{?suse_version}
|
||
|
License: GPL-2.0+
|
||
|
%else
|
||
|
License: GPLv2+
|
||
|
%endif
|
||
12 years ago
|
|
||
10 years ago
|
#Vendor: Trinity Desktop
|
||
|
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||
12 years ago
|
|
||
10 years ago
|
Prefix: %{tde_prefix}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
12 years ago
|
|
||
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||
4 years ago
|
Source1: tde-settings-laptops.directory
|
||
12 years ago
|
|
||
10 years ago
|
|
||
10 years ago
|
Provides: trinity-kde-systemsettings = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Obsoletes: trinity-kde-systemsettings < %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Provides: trinity-systemsettings = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Obsoletes: trinity-systemsettings < %{?epoch:%{epoch}:}%{version}-%{release}
|
||
12 years ago
|
|
||
|
BuildRequires: trinity-tdelibs-devel >= %{tde_version}
|
||
|
BuildRequires: trinity-tdebase-devel >= %{tde_version}
|
||
|
BuildRequires: desktop-file-utils
|
||
|
|
||
10 years ago
|
BuildRequires: autoconf automake libtool m4
|
||
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: fdupes
|
||
|
|
||
|
# SUSE desktop files utility
|
||
|
%if 0%{?suse_version}
|
||
|
BuildRequires: update-desktop-files
|
||
|
%endif
|
||
|
|
||
|
%if 0%{?opensuse_bs} && 0%{?suse_version}
|
||
|
# for xdg-menu script
|
||
|
BuildRequires: brp-check-trinity
|
||
|
%endif
|
||
|
|
||
12 years ago
|
Requires: trinity-guidance
|
||
|
|
||
10 years ago
|
|
||
12 years ago
|
%description
|
||
|
System preferences is a replacement for the TDE
|
||
|
Control Centre with an improved user interface.
|
||
|
|
||
10 years ago
|
##########
|
||
12 years ago
|
|
||
10 years ago
|
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||
12 years ago
|
%debug_package
|
||
|
%endif
|
||
|
|
||
10 years ago
|
##########
|
||
12 years ago
|
|
||
|
%prep
|
||
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||
|
|
||
|
%__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"
|
||
12 years ago
|
%__make -f "admin/Makefile.common"
|
||
|
|
||
|
|
||
|
%build
|
||
|
unset QTDIR QTINC QTLIB
|
||
|
export PATH="%{tde_bindir}:${PATH}"
|
||
9 years ago
|
export kde_confdir="%{tde_confdir}"
|
||
11 years ago
|
|
||
12 years ago
|
|
||
|
%configure \
|
||
|
--prefix=%{tde_prefix} \
|
||
|
--exec-prefix=%{tde_prefix} \
|
||
|
--bindir=%{tde_bindir} \
|
||
|
--datadir=%{tde_datadir} \
|
||
|
--includedir=%{tde_tdeincludedir} \
|
||
|
--sysconfdir=%{tde_sysconfdir} \
|
||
4 years ago
|
--mandir=%{tde_mandir} \
|
||
|
--program-prefix="" \
|
||
11 years ago
|
\
|
||
|
--disable-dependency-tracking \
|
||
|
--disable-debug \
|
||
|
--enable-final \
|
||
|
--enable-new-ldflags \
|
||
|
--enable-closure \
|
||
|
--enable-rpath \
|
||
11 years ago
|
--disable-gcc-hidden-visibility
|
||
12 years ago
|
|
||
|
%__make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
export PATH="%{tde_bindir}:${PATH}"
|
||
|
%__rm -rf %{buildroot}
|
||
|
%__make install DESTDIR=%{buildroot}
|
||
|
|
||
|
%__install -D -m 644 %{SOURCE1} %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-laptops.directory
|
||
|
|
||
|
# Unwanted files
|
||
|
%__rm -f %{buildroot}%{tde_datadir}/applications/tde/kcmfontinst.desktop
|
||
|
%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-power.directory
|
||
|
%__rm -f %{buildroot}%{tde_datadir}/desktop-directories/tde-settings-system.directory
|
||
|
|
||
10 years ago
|
%__rm -f %{buildroot}%{tde_datadir}/applications/tde/laptop.desktop
|
||
|
|
||
10 years ago
|
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/audioencoding.desktop"
|
||
|
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/defaultapplication.desktop"
|
||
|
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/kcm_knetworkconfmodule_ss.desktop"
|
||
|
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/medianotifications.desktop"
|
||
|
echo "OnlyShowIn=TDE;" >>"%{?buildroot}%{tde_tdeappdir}/systemsettings.desktop"
|
||
|
|
||
4 years ago
|
# Fix translation names
|
||
|
for d in "%{buildroot}%{tde_datadir}/locale/"*"/LC_MESSAGES"; do
|
||
|
mv "${d}/"*".mo" "${d}/%{tde_pkg}.mo"
|
||
|
done
|
||
|
|
||
|
%find_lang %{tde_pkg}
|
||
|
|
||
10 years ago
|
|
||
12 years ago
|
%clean
|
||
|
%__rm -rf %{buildroot}
|
||
|
|
||
|
|
||
4 years ago
|
%files -f %{tde_pkg}.lang
|
||
12 years ago
|
%defattr(-,root,root,-)
|
||
|
%doc README TODO
|
||
10 years ago
|
%dir %{tde_sysconfdir}/xdg
|
||
|
%dir %{tde_sysconfdir}/xdg/menus
|
||
|
%dir %{tde_sysconfdir}/xdg/menus/applications-merged
|
||
11 years ago
|
%{tde_sysconfdir}/xdg/menus/applications-merged/tde-system-settings-merge.menu
|
||
|
%{tde_sysconfdir}/xdg/menus/tde-system-settings.menu
|
||
12 years ago
|
%{tde_bindir}/systemsettings
|
||
|
%{tde_datadir}/applications/tde/audioencoding.desktop
|
||
|
%{tde_datadir}/applications/tde/defaultapplication.desktop
|
||
|
%{tde_datadir}/applications/tde/kcm_knetworkconfmodule_ss.desktop
|
||
|
%{tde_datadir}/applications/tde/medianotifications.desktop
|
||
|
%{tde_datadir}/applications/tde/systemsettings.desktop
|
||
10 years ago
|
%{tde_datadir}/apps/systemsettings/
|
||
4 years ago
|
%config(noreplace) %{tde_confdir}/systemsettingsrc
|
||
12 years ago
|
%{tde_datadir}/desktop-directories/*.directory
|
||
|
%{tde_datadir}/icons/crystalsvg/*/apps/systemsettings.png
|
||
11 years ago
|
%{tde_tdedocdir}/HTML/en/systemsettings/
|
||
4 years ago
|
%{tde_mandir}/man1/systemsettings.1*
|
||
12 years ago
|
|
||
|
%changelog
|