| 1 | Summary: GNU Findutils |
|---|
| 2 | Name: findutils |
|---|
| 3 | Version: 4.4.2 |
|---|
| 4 | Release: 2 |
|---|
| 5 | Group: System Environment/Base |
|---|
| 6 | License: GPLv2 |
|---|
| 7 | Distribution: LightCube OS |
|---|
| 8 | Vendor: LightCube Solutions |
|---|
| 9 | URL: http://www.gnu.org/software/findutils |
|---|
| 10 | Source: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.gz |
|---|
| 11 | |
|---|
| 12 | Requires: base-layout, glibc |
|---|
| 13 | |
|---|
| 14 | %description |
|---|
| 15 | Utilities for searching files in a directory hierarchy. |
|---|
| 16 | |
|---|
| 17 | %prep |
|---|
| 18 | %setup -q |
|---|
| 19 | |
|---|
| 20 | %build |
|---|
| 21 | ./configure --prefix=/usr --libexecdir=/usr/%{_lib}/findutils \ |
|---|
| 22 | --localstatedir=/var/lib/locate |
|---|
| 23 | make |
|---|
| 24 | make check |
|---|
| 25 | |
|---|
| 26 | %install |
|---|
| 27 | make DESTDIR=%{buildroot} install |
|---|
| 28 | mkdir %{buildroot}/bin |
|---|
| 29 | mv -v %{buildroot}/usr/bin/find %{buildroot}/bin |
|---|
| 30 | sed -i 's/find:=${BINDIR}/find:=\/bin/' %{buildroot}/usr/bin/updatedb |
|---|
| 31 | rm -f %{buildroot}/usr/share/info/dir |
|---|
| 32 | %find_lang %{name} |
|---|
| 33 | |
|---|
| 34 | %post |
|---|
| 35 | /usr/bin/install-info /usr/share/info/find.info /usr/share/info/dir |
|---|
| 36 | /usr/bin/install-info /usr/share/info/find-maint.info /usr/share/info/dir |
|---|
| 37 | |
|---|
| 38 | %preun |
|---|
| 39 | /usr/bin/install-info --delete /usr/share/info/find.info /usr/share/info/dir |
|---|
| 40 | /usr/bin/install-info --delete /usr/share/info/find-maint.info /usr/share/info/dir |
|---|
| 41 | |
|---|
| 42 | %clean |
|---|
| 43 | rm -rf %{buildroot} |
|---|
| 44 | |
|---|
| 45 | %files -f %{name}.lang |
|---|
| 46 | %defattr(-,root,root) |
|---|
| 47 | /bin/find |
|---|
| 48 | /usr/bin/locate |
|---|
| 49 | /usr/bin/oldfind |
|---|
| 50 | /usr/bin/updatedb |
|---|
| 51 | /usr/bin/xargs |
|---|
| 52 | /usr/%{_lib}/findutils |
|---|
| 53 | /usr/share/info/find-maint.info |
|---|
| 54 | /usr/share/info/find.info |
|---|
| 55 | /usr/share/man/man1/find.1 |
|---|
| 56 | /usr/share/man/man1/locate.1 |
|---|
| 57 | /usr/share/man/man1/updatedb.1 |
|---|
| 58 | /usr/share/man/man1/xargs.1 |
|---|
| 59 | /usr/share/man/man5/locatedb.5 |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | %changelog |
|---|
| 63 | * Fri Oct 30 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.4.2-2 |
|---|
| 64 | - Use FHS compatible info directories |
|---|
| 65 | |
|---|
| 66 | * Fri Aug 14 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 4.4.2-1 |
|---|
| 67 | - Initial version |
|---|