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.
tde-packaging/redhat/extras/trinity-desktop/trinity-desktop.spec

144 lines
3.7 KiB

# Default version for this component
%if "%{?version}" == ""
%define version 3.5.13
%endif
%define release 3
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
%if "%{?_prefix}" != "/usr"
%define _variant .opt
%define _docdir %{_prefix}/share/doc
%endif
Name: trinity-desktop
Version: %{version}
Release: %{?release}%{?dist}%{?_variant}
License: GPL
Summary: Meta-package to install TDE
Group: User Interface/Desktops
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)
BuildArch: noarch
Source0: trinity-3.5.13-fedora.repo
Source1: trinity-3.5.13-rhel.repo
Requires: trinity-kdeaccessibility >= %{version}
Requires: trinity-kdeaddons >= %{version}
Requires: trinity-kdeadmin >= %{version}
Requires: trinity-kdeartwork >= %{version}
Requires: trinity-kdeartwork-icons >= %{version}
Requires: trinity-kdebase >= %{version}
Requires: trinity-kdebindings >= %{version}
Requires: trinity-kdeedu >= %{version}
Requires: trinity-kdegames >= %{version}
Requires: trinity-kdegraphics >= %{version}
Requires: trinity-kdemultimedia >= %{version}
Requires: trinity-kdenetwork >= %{version}
Requires: trinity-kdepim >= %{version}
Requires: trinity-kdeutils >= %{version}
Requires: trinity-kdetoys >= %{version}
Requires: trinity-repo >= %{version}
Requires: hal
%description
The TDE project aims to keep the KDE3.5 computing style alive, as well as
polish off any rough edges that were present as of KDE 3.5.10. Along
the way, new useful features will be added to keep the environment
up-to-date.
Toward that end, significant new enhancements have already been made in
areas such as display control, network connectivity, user
authentication, and much more!
%package dev
Group: User Interface/Desktops
Summary: Meta-package to install TDE development tools
Requires: trinity-kdesdk >= %{version}
Requires: trinity-kdevelop >= %{version}
Requires: trinity-kdewebdev >= %{version}
%description dev
%{summary}
%package extras
Group: User Interface/Desktops
Summary: Meta-package to install extra TDE packages
Requires: trinity-kdeaddons-extras >= %{version}
Requires: trinity-kdebase-extras >= %{version}
Requires: trinity-kdegraphics-extras >= %{version}
Requires: trinity-kdemultimedia-extras >= %{version}
Requires: trinity-kdenetwork-extras >= %{version}
Requires: trinity-kdeutils-extras >= %{version}
%description extras
%{summary}
%package all
Group: User Interface/Desktops
Summary: Meta-package to install all TDE packages
Requires: %{name} == %{version}
Requires: %{name}-dev == %{version}
Requires: %{name}-extras == %{version}
%description all
%{summary}
%package -n trinity-repo
Group: User Interface/Desktops
Summary: Yum configuration files for Trinity
%description -n trinity-repo
%{summary}
%prep
%build
%install
%__rm -rf %{?buildroot}
%__mkdir_p %{?buildroot}%{_sysconfdir}/yum.repos.d
# Fedora repo file
%if 0%{?fedora} > 0
%__sed %{SOURCE0} \
-e 's/\$releasever/%{fedora}/g' \
-e 's/-fedora/-f%{fedora}/g' \
>%{?buildroot}%{_sysconfdir}/yum.repos.d/trinity-3.5.13-f%{fedora}.repo
%endif
# RHEL repo file
%if 0%{?rhel} > 0
%__sed %{SOURCE1} \
-e 's/\$releasever/%{rhel}/g' \
-e 's/-rhel/-el%{rhel}/g' \
>%{?buildroot}%{_sysconfdir}/yum.repos.d/trinity-3.5.13-el%{rhel}.repo
%endif
%__chmod 644 %{?buildroot}%{_sysconfdir}/yum.repos.d/*.repo
%files
%files dev
%files extras
%files all
%files -n trinity-repo
%{_sysconfdir}/yum.repos.d/*.repo
%changelog
* Wed Nov 30 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-3
- Fix repo files name and content
* Sat Nov 12 2011 Francois Andriot <francois.andriot@free.fr> - 3.5.13-2
- Add 'repo' package