]>
Commit | Line | Data |
---|---|---|
27e4ec33 | 1 | Summary: PLD Linux configuration tool |
b01f8e33 | 2 | Summary(pl.UTF-8): Narzędzie do konfiguracji Linuksa PLD |
a9c48064 | 3 | Name: pldconf |
1c4398f7 | 4 | Version: 0.3.16 |
a6b14421 | 5 | Release: 4 |
a9c48064 | 6 | License: GPL |
7 | Group: Applications/System | |
73e8a127 | 8 | Source0: http://www.inf.sgsp.edu.pl/pub/PROGRAMY/PLD/RPM/%{name}-%{version}.tar.gz |
1c4398f7 | 9 | # Source0-md5: f7a6a77db0642a83b5fc22b7a55e04d1 |
a6b14421 | 10 | Patch0: %{name}-help_utf8.patch |
5a550035 | 11 | URL: http://www.inf.sgsp.edu.pl/pub/PROGRAMY/PLD/ |
a6b14421 | 12 | BuildRequires: iconv |
d6b3f072 ER |
13 | BuildRequires: sed >= 4.0 |
14 | Requires: %{_bindir}/perl | |
6bfb8df8 PG |
15 | Requires: bash |
16 | Requires: dml | |
0f428683 | 17 | Requires: gettext |
d6b3f072 | 18 | Requires: less |
1c4398f7 | 19 | Requires: pci-database |
d6b3f072 | 20 | Requires: pciutils |
ca440fd9 | 21 | Requires: sed |
85dbe91a | 22 | Requires: which |
74f4a1a1 | 23 | BuildArch: noarch |
a9c48064 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ca440fd9 | 25 | |
0337611e | 26 | %define _pcdatadir %{_datadir}/%{name} |
a9c48064 | 27 | |
28 | %description | |
228845ab | 29 | This is a friendly tool for first-time users. It asks only a few |
30 | questions and makes use of a graphical user interface on a text | |
31 | terminal. It makes possible for users to configure their graphic | |
32 | environment, the network and startup manager and some other elements | |
73e8a127 | 33 | of the system. |
a9c48064 | 34 | |
5394b0c5 JR |
35 | %description -l pl.UTF-8 |
36 | Narzędzie jest przyjazne dla początkujących użytkowników, zadaje mało | |
37 | pytań i korzysta z graficznego interfejsu użytkownika na terminalu | |
38 | tekstowym. pldconf pozwala między innymi na konfigurację środowiska | |
39 | graficznego, sieci, menadżera startu. | |
a9c48064 | 40 | |
41 | %prep | |
3df26990 | 42 | %setup -q |
a6b14421 | 43 | %patch0 -p1 |
44 | ||
45 | %build | |
46 | # added UTF-8 versions of help | |
47 | for i in POMOC/README*txt | |
48 | do | |
49 | iconv -f ISO-8859-2 -t UTF-8 $i > $i.pl_PL.UTF-8 | |
50 | done | |
a9c48064 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
d6b3f072 | 54 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_pcdatadir},%{_desktopdir},%{_pixmapsdir},%{_localedir}/,%{_docdir}/%{name}-%{version}} |
73e8a127 | 55 | |
d6b3f072 | 56 | find . | while read file; do |
5f95c757 | 57 | if [ -f $file ]; then |
d6b3f072 ER |
58 | %{__sed} -i -e ' |
59 | s@/etc@%{_sysconfdir}@; | |
60 | s@/usr/bin@%{_bindir}@; | |
61 | ' $file | |
5f95c757 | 62 | fi |
a9c48064 | 63 | done |
64 | ||
d6b3f072 | 65 | install -p pldconf $RPM_BUILD_ROOT%{_bindir} |
1c4398f7 | 66 | cp -r BOOT DEVICES NET POMOC SYSINFO USER X pldconf_functions {autorzy,filesystems,inne,install_pld,menu_user,poldek_conf,poldek,template,user}.sh $RPM_BUILD_ROOT%{_pcdatadir} |
52834986 | 67 | |
d6b3f072 ER |
68 | cp -pr locale/* $RPM_BUILD_ROOT%{_localedir} |
69 | cp -pr DOCS/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ | |
73e8a127 | 70 | |
d6b3f072 | 71 | IPREFIX="%{_prefix}" |
52834986 | 72 | EXEC_PREFIX="${IPREFIX}/bin" |
73 | DATA_DIR="${IPREFIX}/share/pldconf" | |
d6b3f072 | 74 | CONF_DIR="%{_sysconfdir}/pldconf" |
52834986 | 75 | CONF_FILE="${CONF_DIR}/ustawienia" |
76 | ||
8ddca180 | 77 | cat > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/ustawienia << EOF |
78 | export PLDCONF_PAGER=less | |
67d7808b | 79 | export ERRORS_HANDLE=ALWAYS_ASK |
673a2726 | 80 | export VERBOSE_MODE=0 |
549a575a | 81 | export TIMEOUT_MODE=0 |
82 | export SLEEP_TIME=2 | |
67d7808b | 83 | export X_MOUSE_PROTOCOL=auto |
8ddca180 | 84 | EOF |
a9c48064 | 85 | |
d6b3f072 ER |
86 | cp -p X/gfx/pldconf.desktop $RPM_BUILD_ROOT%{_desktopdir} |
87 | cp -p X/gfx/pldconf.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
73e8a127 JK |
88 | |
89 | %find_lang %{name} | |
90 | ||
fab590b4 | 91 | # clean docdir |
d6b3f072 | 92 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
fab590b4 | 93 | |
a9c48064 | 94 | %clean |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
73e8a127 | 97 | %files -f %{name}.lang |
a9c48064 | 98 | %defattr(644,root,root,755) |
0e7b0dcb | 99 | %doc DOCS/README.hacking DOCS/README.i18n |
c8eba3e4 | 100 | %attr(755,root,root) %{_bindir}/* |
5a550035 | 101 | |
102 | %dir %{_pcdatadir} | |
52834986 | 103 | %{_pcdatadir}/pldconf_functions |
5a550035 | 104 | %attr(755,root,root) %{_pcdatadir}/*.sh |
5a550035 | 105 | |
106 | %dir %{_pcdatadir}/BOOT | |
107 | %attr(755,root,root) %{_pcdatadir}/BOOT/*.sh | |
5a550035 | 108 | %{_pcdatadir}/BOOT/*.c |
5a550035 | 109 | |
110 | %dir %{_pcdatadir}/NET | |
111 | %attr(755,root,root) %{_pcdatadir}/NET/*.sh | |
abeb3533 | 112 | %dir %{_pcdatadir}/NET/NET_FILES |
52834986 | 113 | %{_pcdatadir}/NET/NET_FILES/cost |
716fa228 | 114 | |
67d7808b | 115 | %dir %{_pcdatadir}/DEVICES |
116 | %attr(755,root,root) %{_pcdatadir}/DEVICES/*.sh | |
abeb3533 | 117 | %dir %{_pcdatadir}/DEVICES/ALSA |
67d7808b | 118 | %attr(755,root,root) %{_pcdatadir}/DEVICES/ALSA/*.sh |
abeb3533 | 119 | %dir %{_pcdatadir}/DEVICES/TV |
67d7808b | 120 | %attr(755,root,root) %{_pcdatadir}/DEVICES/TV/*.sh |
121 | %{_pcdatadir}/DEVICES/TV/CARDLIST.bttv | |
122 | %{_pcdatadir}/DEVICES/TV/CARDLIST.saa7134 | |
123 | %{_pcdatadir}/DEVICES/TV/CARDLIST.tuner | |
5a550035 | 124 | |
125 | %dir %{_pcdatadir}/POMOC | |
126 | %{_pcdatadir}/POMOC/README* | |
127 | ||
52834986 | 128 | %dir %{_pcdatadir}/USER |
27e4ec33 | 129 | %attr(755,root,root) %{_pcdatadir}/USER/*.sh |
52834986 | 130 | |
5a550035 | 131 | %dir %{_pcdatadir}/SYSINFO |
132 | %attr(755,root,root) %{_pcdatadir}/SYSINFO/*.sh | |
133 | ||
134 | %dir %{_pcdatadir}/X | |
135 | %attr(755,root,root) %{_pcdatadir}/X/*.sh | |
5a550035 | 136 | |
73e8a127 | 137 | %dir %{_pcdatadir}/X/gfx |
0f428683 | 138 | %{_pcdatadir}/X/gfx/* |
5a550035 | 139 | |
73e8a127 | 140 | %dir %{_pcdatadir}/X/archive |
0f428683 | 141 | %{_pcdatadir}/X/archive/* |
c71cf90a | 142 | |
a9c48064 | 143 | %dir %{_sysconfdir}/%{name} |
c8eba3e4 | 144 | %{_sysconfdir}/%{name}/* |
73e8a127 | 145 | |
73e8a127 JK |
146 | %{_desktopdir}/%{name}.desktop |
147 | %{_pixmapsdir}/%{name}.png |