]> git.pld-linux.org Git - packages/bofh.git/blobdiff - bofh.spec
- adapterized (sorted %verify flags)
[packages/bofh.git] / bofh.spec
index d0e2b5b7cd9089379300ba417a1a4d2bf389b5d7..7162945f186fb95d4dc96b4de26e8e96d4581c66 100644 (file)
--- a/bofh.spec
+++ b/bofh.spec
@@ -1,12 +1,17 @@
 Summary:       Console utility for maintaing user accounts
 Summary(pl):   Konsolowe narzêdzie do zarz±dzania kontami u¿ytkowników
 Name:          bofh
-Version:       0.1
-Release:       2
+Version:       0.2
+Release:       4
 License:       GPL
 Group:         Applications/Console
 Source0:       ftp://morgoth.uznam.net.pl/bofh/%{name}-%{version}.tar.gz
+# Source0-md5: aa3af230280e36c0dcaf20e87014cd52
+Patch0:                %{name}-pl.po_fix.patch
+BuildRequires: gettext-devel
+Requires:      bash
 Requires:      dml
+Requires:      gettext
 Requires:      grep
 Requires:      shadow
 Requires:      textutils
@@ -15,7 +20,7 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 It is a utility that lets you maintain user accounts easily. Currently
-it supports adding, removing and modyfing accounts. It has nice,
+it supports adding, removing and modifying accounts. It has nice,
 DML-based interface.
 
 %description -l pl
@@ -25,20 +30,26 @@ poprawianie. Posiada 
 
 %prep
 %setup -q
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-./install.sh DESTDIR=$RPM_BUILD_ROOT libdir=%{_libdir}/bofh sbindir=%{_sbindir}
+# %{_datadir} is intentional here. Everything inside _is_ arch independent
+./install.sh DESTDIR=$RPM_BUILD_ROOT \
+       libdir=%{_datadir}/bofh \
+       sbindir=%{_sbindir} \
+       localedir=%{_datadir}/locale
 
-gzip -9nf README ChangeLog TODO
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644,root,root,755)
-%doc *.gz
+%files -f %{name}.lang
 %defattr(644,root,root,755)
+%doc README ChangeLog TODO CREDITS
+%dir %{_sysconfdir}/bofh
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bofh/config
 %attr(755,root,root) %{_sbindir}/bofh
-%{_libdir}/bofh
+%{_datadir}/bofh
This page took 0.238454 seconds and 4 git commands to generate.