summaryrefslogtreecommitdiffstats
path: root/redhat/extras/brp-check-trinity/brp-check-trinity.spec
blob: 4cabb578274f8f380c7c39f6471dc12f41b52b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#
# spec file for package brp-check-trinity (version R14.0.0)
#
# 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_version 14.0.0
%define tde_prefix /opt/trinity

Name:		brp-check-trinity
Version:	1.0
Release:	1%{?dist}
Summary:	Build root policy check scripts for Trinity
Group:		System Environment/Daemons 
URL:		http://www.trinitydesktop.org/

%if 0%{?suse_version}
License:	GPL-2.0+
%else
License:	GPLv2+
%endif

#Vendor:		Trinity Project
#Packager:	Francois Andriot <francois.andriot@free.fr>

Prefix:		%{tde_prefix}
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	update-desktop-files
BuildRequires:	brp-check-suse
BuildRequires:	brp-extract-appdata
Requires:	update-desktop-files
Requires:	brp-check-suse
Requires:	brp-extract-appdata
Requires:	sed



%description
This package dynamically patches the openSUSE brp script to allow
building of Trinity Desktop Environment (TDE) instead of KDE3.
It should not be installed on runtime computer.


%files

%post
echo "Patching openSUSE brp scripts ..."
sed -i.orig \
	/usr/lib/rpm/brp-desktop.data/applications.menu \
	/usr/lib/rpm/brp-desktop.data/kde-settings.menu \
	/usr/lib/rpm/brp-desktop.data/xdg_menu \
	/usr/lib/rpm/brp-suse.d/brp-25-symlink \
	/usr/lib/rpm/brp-suse.d/brp-72-extract-appdata \
	/usr/lib/rpm/suse_update_desktop_file.sh \
    -e "s|opt/kde3|opt/trinity|g" \
    -e "s|kde-config|tde-config|g" \
    -e "s|kdesu|tdesu|g" \
    -e "s|kde-settings-|tde-settings-|g" \
    -e "s|doc/kde|doc/tde|g" \
    -e "s|kde_xdgdata|tde_xdgdata|g" \
    -e "s|applications/kde|applications/tde|g" \
    -e "s|KDE|TDE|g"


%postun
find /usr/lib/rpm -name "*.orig" | while read f; do
  echo "Restoring original file: '${f%.orig}'"
  mv -f "${f}" "${f%.orig}"
done    
    


##########

%prep

%build

%install

%clean
%__rm -rf %{?buildroot}


%changelog
* Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 1.0-1
- Initial release for TDE R14.0.0