summaryrefslogtreecommitdiff
path: root/pldconf.spec
blob: 4ab7bb7725e45cc512e979b90a1d25a34564422f (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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
Summary:	PLD Linux configuration tool
Summary(pl):	Narzędzie do konfiguracji Linuksa PLD
Name:		pldconf
Version:	0.3.11
Release:	1
License:	GPL
Group:		Applications/System
Source0:	http://www.inf.sgsp.edu.pl/pub/PROGRAMY/PLD/RPM/%{name}_%{version}.tgz
# Source0-md5:	5df2d8a71c22623bc794eca9a4c8575f
URL:		http://www.inf.sgsp.edu.pl/pub/PROGRAMY/PLD/
BuildRequires:	sed
Requires:	bash
Requires:	dml
Requires:	pciutils
Requires:	sed
Requires:	which
Requires:	%{_bindir}/perl
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_pcdatadir	%{_datadir}/%{name}

%description
This is a friendly tool for first-time users. It asks only a few
questions and makes use of a graphical user interface on a text
terminal. It makes possible for users to configure their graphic
environment, the network and startup manager and some other elements
of the system. There's only Polish interface available in the current
version.

%description -l pl
Narzędzie jest przyjazne dla początkujących użytkowników, zadaje mało
pytań i korzysta z graficznego interfejsu użytkownika na terminalu
tekstowym. pldconf pozwala między innymi na konfigurację środowiska
graficznego, sieci, menadżera startu. W chwili obecnej dostępny jest
tylko interfejs w języku polskim.

%prep
%setup -q -n %{name}_%{version}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_pcdatadir}}

find . | while read file
do
    if [ -f $file ]
    then
	cat $file | \
		sed 's@/etc@%{_sysconfdir}@' | \
		sed 's@/usr/bin@%{_bindir}@' > tmp ; mv tmp $file
    fi
done

install pldconf $RPM_BUILD_ROOT%{_bindir}
cp -r BOOT DEVICES NET POMOC SYSINFO USER X pldconf_functions user.pl {autorzy,filesystems,inne,install_pld,menu_user,poldek_conf,poldek,template,ustawienia}.sh $RPM_BUILD_ROOT%{_pcdatadir}

IPREFIX="/usr"
EXEC_PREFIX="${IPREFIX}/bin"
DATA_DIR="${IPREFIX}/share/pldconf"
CONF_DIR="/etc/pldconf"
CONF_FILE="${CONF_DIR}/ustawienia"

cat > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ustawienia << EOF
export PLDCONF_PAGER=less
export ERRORS_HANDLE=ALWAYS_ASK
export VERBOSE_MODE=0
export TIMEOUT_MODE=0
export SLEEP_TIME=2
export X_MOUSE_PROTOCOL=auto
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*

%dir %{_pcdatadir}
%{_pcdatadir}/pldconf_functions
%attr(755,root,root) %{_pcdatadir}/*.sh
%attr(755,root,root) %{_pcdatadir}/*.pl

%dir %{_pcdatadir}/BOOT
%attr(755,root,root) %{_pcdatadir}/BOOT/*.sh
%attr(755,root,root) %{_pcdatadir}/BOOT/*.pl
%{_pcdatadir}/BOOT/*.c

%dir %{_pcdatadir}/NET
%attr(755,root,root) %{_pcdatadir}/NET/*.sh
%dir %{_pcdatadir}/NET/NET_FILES/
%{_pcdatadir}/NET/NET_FILES/ppplicznik.conf
%{_pcdatadir}/NET/NET_FILES/cost

%dir %{_pcdatadir}/DEVICES
%attr(755,root,root) %{_pcdatadir}/DEVICES/*.sh
%dir %{_pcdatadir}/DEVICES/ALSA/
%attr(755,root,root) %{_pcdatadir}/DEVICES/ALSA/*.sh
%dir %{_pcdatadir}/DEVICES/TV/
%attr(755,root,root) %{_pcdatadir}/DEVICES/TV/*.sh
%{_pcdatadir}/DEVICES/TV/CARDLIST.bttv
%{_pcdatadir}/DEVICES/TV/CARDLIST.saa7134
%{_pcdatadir}/DEVICES/TV/CARDLIST.tuner

%dir %{_pcdatadir}/POMOC
%{_pcdatadir}/POMOC/README*

%dir %{_pcdatadir}/USER
%attr(755,root,root) %{_pcdatadir}/USER/*.sh

%dir %{_pcdatadir}/SYSINFO
%attr(755,root,root) %{_pcdatadir}/SYSINFO/*.sh

%dir %{_pcdatadir}/X
%attr(755,root,root) %{_pcdatadir}/X/*.sh

%dir %{_pcdatadir}/X/KILLER_DESKTOP
%{_pcdatadir}/X/KILLER_DESKTOP/DirIcon
%{_pcdatadir}/X/KILLER_DESKTOP/hacker_bg.png
%{_pcdatadir}/X/KILLER_DESKTOP/ooo_red.png
%{_pcdatadir}/X/KILLER_DESKTOP/qcad_blue.png
%{_pcdatadir}/X/KILLER_DESKTOP/pldconf_red.png

%dir %{_pcdatadir}/X/KILLER_DESKTOP/Choices
%{_pcdatadir}/X/KILLER_DESKTOP/Choices/README

%dir %{_pcdatadir}/X/KILLER_DESKTOP/Choices/MIME-icons
%{_pcdatadir}/X/KILLER_DESKTOP/Choices/MIME-icons/*

%dir %{_pcdatadir}/X/KILLER_DESKTOP/Choices/MIME-types
%attr(755,root,root) %{_pcdatadir}/X/KILLER_DESKTOP/Choices/MIME-types/*

%dir %{_pcdatadir}/X/KILLER_DESKTOP/Choices/ROX-Filer/
%{_pcdatadir}/X/KILLER_DESKTOP/Choices/ROX-Filer/*

%dir %{_pcdatadir}/X/KILLER_DESKTOP/Defaults
%{_pcdatadir}/X/KILLER_DESKTOP/Defaults/*

%dir %{_pcdatadir}/X/KILLER_DESKTOP/xfce4
%dir %{_pcdatadir}/X/KILLER_DESKTOP/xfce4/settings
%{_pcdatadir}/X/KILLER_DESKTOP/xfce4/xfce4rc
%{_pcdatadir}/X/KILLER_DESKTOP/xfce4/keythemerc
%{_pcdatadir}/X/KILLER_DESKTOP/xfce4/settings/*

%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*