]> git.pld-linux.org Git - packages/di.git/blob - di.spec
- outdated
[packages/di.git] / di.spec
1 Summary:        Disk Info - disk information utility
2 Summary(pl.UTF-8):      Disk Info - informacje o dyskach
3 Name:           di
4 Version:        4.18
5 Release:        1
6 License:        custom (see LICENSE* files)
7 Group:          Applications/System
8 Source0:        http://www.gentoo.com/di/%{name}-%{version}.tar.gz
9 # Source0-md5:  caa2b12aacd33275c79cf8bcec41ca6d
10 Patch0:         %{name}-Makefile.patch
11 Patch1:         %{name}-symlink.patch
12 URL:            http://www.gentoo.com/di/
13 BuildRequires:  gettext-devel
14 BuildRequires:  sed >= 4.0
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 'di' is a disk information utility, displaying everything (and more)
19 that your 'df' command does. It features the ability to display your
20 disk usage in whatever format you desire/prefer/are used to.
21
22 It is designed to be portable across many platforms.
23
24 %description -l pl.UTF-8
25 'di' jest narzędziem udostępniającym informacje o dyskach istniejących
26 w systemie - podobnie jak 'df', lecz w bardziej przystępnej formie. Ma
27 możliwość wyświetlania wykorzystania dysku w dowolnie wybranym
28 formacie.
29
30 Jest zaprojektowane w sposób przenośny na wiele platform.
31
32 %prep
33 %setup -q
34 %patch0 -p1
35 %patch1 -p1
36 %{__sed} -e 's@ sed@ /bin/sed@g' -i features/cflags.sh
37
38 %build
39 %{__make} \
40         prefix=%{_prefix} \
41         CC="%{__cc}" \
42         CFLAGS="%{rpmcflags}" \
43         OPTFLAGS="%{rpmldflags}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
48
49 %{__make} install \
50         prefix=$RPM_BUILD_ROOT%{_prefix} \
51         MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
52
53 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de}
54
55 %find_lang %{name}
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files -f %{name}.lang
61 %defattr(644,root,root,755)
62 %doc README MANIFEST LICENSE*
63 %attr(755,root,root) %{_bindir}/di
64 %attr(755,root,root) %{_bindir}/mi
65 %{_mandir}/man1/di.1*
This page took 0.045274 seconds and 3 git commands to generate.