]>
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 |
6bfb8df8 PG |
13 | Requires: bash |
14 | Requires: dml | |
0f428683 | 15 | Requires: gettext |
716fa228 | 16 | Requires: pciutils |
1c4398f7 | 17 | Requires: pci-database |
ca440fd9 | 18 | Requires: sed |
85dbe91a | 19 | Requires: which |
74f4a1a1 | 20 | Requires: %{_bindir}/perl |
783e57d5 | 21 | Requires: less |
74f4a1a1 | 22 | BuildArch: noarch |
a9c48064 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ca440fd9 | 24 | |
0337611e | 25 | %define _pcdatadir %{_datadir}/%{name} |
a9c48064 | 26 | |
27 | %description | |
228845ab | 28 | This is a friendly tool for first-time users. It asks only a few |
29 | questions and makes use of a graphical user interface on a text | |
30 | terminal. It makes possible for users to configure their graphic | |
31 | environment, the network and startup manager and some other elements | |
73e8a127 | 32 | of the system. |
a9c48064 | 33 | |
5394b0c5 JR |
34 | %description -l pl.UTF-8 |
35 | Narzędzie jest przyjazne dla początkujących użytkowników, zadaje mało | |
36 | pytań i korzysta z graficznego interfejsu użytkownika na terminalu | |
37 | tekstowym. pldconf pozwala między innymi na konfigurację środowiska | |
38 | graficznego, sieci, menadżera startu. | |
a9c48064 | 39 | |
40 | %prep | |
3df26990 | 41 | %setup -q |
a6b14421 | 42 | %patch0 -p1 |
43 | ||
44 | %build | |
45 | # added UTF-8 versions of help | |
46 | for i in POMOC/README*txt | |
47 | do | |
48 | iconv -f ISO-8859-2 -t UTF-8 $i > $i.pl_PL.UTF-8 | |
49 | done | |
a9c48064 | 50 | |
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
73e8a127 JK |
53 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir}/%{name},%{_pcdatadir},%{_desktopdir},%{_pixmapsdir},%{_datadir}/locale/,%{_datadir}/doc/%{name}-%{version}} |
54 | ||
a9c48064 | 55 | |
56 | find . | while read file | |
57 | do | |
5f95c757 | 58 | if [ -f $file ]; then |
59 | cat $file | \ | |
60 | sed 's@/etc@%{_sysconfdir}@' | \ | |
61 | sed 's@/usr/bin@%{_bindir}@' > tmp ; mv tmp $file | |
62 | fi | |
a9c48064 | 63 | done |
64 | ||
52834986 | 65 | install 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 | |
73e8a127 JK |
68 | cp -r locale/* $RPM_BUILD_ROOT%{_datadir}/locale |
69 | cp -r DOCS/* $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}/ | |
70 | ||
52834986 | 71 | IPREFIX="/usr" |
72 | EXEC_PREFIX="${IPREFIX}/bin" | |
73 | DATA_DIR="${IPREFIX}/share/pldconf" | |
74 | CONF_DIR="/etc/pldconf" | |
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 | |
73e8a127 JK |
86 | install X/gfx/pldconf.desktop $RPM_BUILD_ROOT%{_desktopdir} |
87 | install X/gfx/pldconf.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
88 | ||
89 | %find_lang %{name} | |
90 | ||
fab590b4 | 91 | # clean docdir |
2a4ba305 | 92 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc/%{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 |