]> git.pld-linux.org Git - packages/di.git/blobdiff - di.spec
- 4.25
[packages/di.git] / di.spec
diff --git a/di.spec b/di.spec
index bfc4421d67b48594d080502d7f0bdb51b748c8ba..ff2bf1b985003444a8988e0fb7c8d9f6a55891a8 100644 (file)
--- a/di.spec
+++ b/di.spec
@@ -1,70 +1,62 @@
-Summary:       Disk Info 
-Summary(pl):   Disk Info
+Summary:       Disk Info - disk information utility
+Summary(pl.UTF-8):     Disk Info - informacje o dyskach
 Name:          di
-Version:       2.3
+Version:       4.25
 Release:       1
-Copyright:     GPL
-Group:         System Tools
-Group(pl):     Na¿êdzia systemowe
-Source0:       %name-distr.001
-Source1:       %name-distr.002
-Source2:       %name-distr.003
-#BuildRequires:        
-#Requires:     
-Buildroot:     /tmp/%{name}-%{version}-root
-
-%define        _prefix /usr
+License:       custom (see LICENSE* files)
+Group:         Applications/System
+Source0:       http://www.gentoo.com/di/%{name}-%{version}.tar.gz
+# Source0-md5: 765ef603afe1d95f52f7a5f64e85eced
+Patch0:                %{name}-Makefile.patch
+Patch1:                %{name}-symlink.patch
+URL:           http://www.gentoo.com/di/
+BuildRequires: gettext-devel
+BuildRequires: sed >= 4.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-'di' is a disk information utility, displaying everything (and more) that 
-your 'df' command does. It features the ability to display your disk usage 
-in whatever format you desire/prefer/are used to. 
+'di' is a disk information utility, displaying everything (and more)
+that your 'df' command does. It features the ability to display your
+disk usage in whatever format you desire/prefer/are used to.
 
 It is designed to be portable across many platforms.
 
-%description -l pl
-'di' jest narzêdziem udostêpniaj±cym informacje o dyskach istniej±cych 
-w systemie. Podobnie jak 'df' lecz w bardziej przystêpnej formie.
+%description -l pl.UTF-8
+'di' jest narzędziem udostępniającym informacje o dyskach istniejących
+w systemie - podobnie jak 'df', lecz w bardziej przystępnej formie. Ma
+możliwość wyświetlania wykorzystania dysku w dowolnie wybranym
+formacie.
 
+Jest zaprojektowane w sposób przenośny na wiele platform.
 
 %prep
-rm -fr $RPM_BUILD_DIR/%name-%version 
-install -d $RPM_BUILD_DIR/%name-%version
-STATUS=$?
-if [ $STATUS -ne 0 ]; then
-    exit STATUS
-fi    
-cd $RPM_BUILD_DIR/%name-%version
-STATUS=$?
-if [ $STATUS -ne 0 ]; then
-    exit STATUS
-fi    
-sh %{SOURCE0}
-sh %{SOURCE1}
-sh %{SOURCE2}
-STATUS=$?
-if [ $STATUS -ne 0 ]; then
-    exit STATUS
-fi    
+%setup -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-cd $RPM_BUILD_DIR/%name-%version
-./configure --prefix=%{_prefix}
-make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+       prefix=%{_prefix} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       OPTFLAGS="%{rpmldflags}"
 
 %install
-cd $RPM_BUILD_DIR/%name-%version
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}}
-make PREFIX=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir} install
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
+
+%{__make} install \
+       prefix=$RPM_BUILD_ROOT%{_prefix} \
+       MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1
 
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* MANIFEST README
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc README.gz MANIFEST.gz
+%doc README MANIFEST LICENSE*
 %attr(755,root,root) %{_bindir}/di
-%attr(644,root,root) %{_mandir}/man1/di.*
+%attr(755,root,root) %{_bindir}/mi
+%{_mandir}/man1/di.1*
This page took 0.118464 seconds and 4 git commands to generate.