]> git.pld-linux.org Git - packages/di.git/blob - di.spec
- source are from newsgroup "alt.sources",
[packages/di.git] / di.spec
1 Summary:        Disk Info 
2 Summary(pl):    Disk Info
3 Name:           di
4 Version:        2.3
5 Release:        1
6 Copyright:      GPL
7 Group:          System Tools
8 Group(pl):      Na¿êdzia systemowe
9 Source0:        %name-distr.001
10 Source1:        %name-distr.002
11 Source2:        %name-distr.003
12 #BuildRequires: 
13 #Requires:      
14 Buildroot:      /tmp/%{name}-%{version}-root
15
16 %define _prefix /usr
17
18 %description
19 'di' is a disk information utility, displaying everything (and more) that 
20 your 'df' command does. It features the ability to display your disk usage 
21 in whatever format you desire/prefer/are used to. 
22
23 It is designed to be portable across many platforms.
24
25 %description -l pl
26 'di' jest narzêdziem udostêpniaj±cym informacje o dyskach istniej±cych 
27 w systemie. Podobnie jak 'df' lecz w bardziej przystêpnej formie.
28
29
30 %prep
31 rm -fr $RPM_BUILD_DIR/%name-%version 
32 install -d $RPM_BUILD_DIR/%name-%version
33 STATUS=$?
34 if [ $STATUS -ne 0 ]; then
35     exit STATUS
36 fi    
37 cd $RPM_BUILD_DIR/%name-%version
38 STATUS=$?
39 if [ $STATUS -ne 0 ]; then
40     exit STATUS
41 fi    
42 sh %{SOURCE0}
43 sh %{SOURCE1}
44 sh %{SOURCE2}
45 STATUS=$?
46 if [ $STATUS -ne 0 ]; then
47     exit STATUS
48 fi    
49
50 %build
51 cd $RPM_BUILD_DIR/%name-%version
52 ./configure --prefix=%{_prefix}
53 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
54
55 %install
56 cd $RPM_BUILD_DIR/%name-%version
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}}
59 make PREFIX=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir} install
60
61 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* MANIFEST README
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README.gz MANIFEST.gz
69 %attr(755,root,root) %{_bindir}/di
70 %attr(644,root,root) %{_mandir}/man1/di.*
This page took 0.086939 seconds and 3 git commands to generate.