]> git.pld-linux.org Git - packages/di.git/blob - di.spec
- spec adapterized.
[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 License:        GPL
7 Group:          Utilities/System
8 Group(pl):      Narzêdzia/System
9 Source0:        %name-distr.001
10 Source1:        %name-distr.002
11 Source2:        %name-distr.003
12 #BuildRequires: 
13 #Requires:      
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define _prefix /usr
17
18 %description
19 'di' is a disk information utility, displaying everything (and more)
20 that your 'df' command does. It features the ability to display your
21 disk usage 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 %prep
30 rm -fr $RPM_BUILD_DIR/%name-%version 
31 install -d $RPM_BUILD_DIR/%name-%version
32 STATUS=$?
33 if [ $STATUS -ne 0 ]; then
34     exit STATUS
35 fi    
36 cd $RPM_BUILD_DIR/%name-%version
37 STATUS=$?
38 if [ $STATUS -ne 0 ]; then
39     exit STATUS
40 fi    
41 sh %{SOURCE0}
42 sh %{SOURCE1}
43 sh %{SOURCE2}
44 STATUS=$?
45 if [ $STATUS -ne 0 ]; then
46     exit STATUS
47 fi    
48
49 %build
50 cd $RPM_BUILD_DIR/%name-%version
51 ./configure --prefix=%{_prefix}
52 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 cd $RPM_BUILD_DIR/%name-%version
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
59 make PREFIX=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 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.045914 seconds and 3 git commands to generate.