root/lightcube_os/trunk/packages/grep/grep.spec @ 6

Revision 6, 1.3 KB (checked in by jhuntwork, 10 months ago)

Use a more FHS-compatible info directory location

Line 
1Summary: GNU Grep
2Name: grep
3Version: 2.5.4
4Release: 2
5Group: System Environment/Base
6License: GPLv2
7Distribution: LightCube OS
8Vendor: LightCube Solutions
9URL: http://www.gnu.org/software/grep
10Source0: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}.tar.bz2
11Source1: http://dev.lightcube.us/~jhuntwork/sources/%{name}/%{name}-%{version}-debian_fixes-1.patch
12
13Requires: base-layout, glibc
14
15%description
16%{name} searches one or more input files for lines
17containing a match to a specified pattern.
18
19%prep
20%setup -q
21
22%build
23patch -Np1 -i %{SOURCE1}
24./configure --prefix=/usr --bindir=/bin \
25    --without-included-regex
26make
27
28%install
29make DESTDIR=%{buildroot} install
30rm -f %{buildroot}/usr/share/info/dir
31%find_lang %{name}
32
33%clean
34rm -rf %{buildroot}
35
36%post
37/usr/bin/install-info /usr/share/info/grep.info /usr/share/info/dir
38
39%preun
40/usr/bin/install-info --delete /usr/share/info/grep.info /usr/share/info/dir
41
42%files -f %{name}.lang
43%defattr(-,root,root)
44/bin/egrep
45/bin/fgrep
46/bin/grep
47/usr/share/info/grep.info
48/usr/share/man/man1/egrep.1
49/usr/share/man/man1/fgrep.1
50/usr/share/man/man1/grep.1
51
52%changelog
53* Sat Oct 30 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 2.5.4-2
54- Use FHS compatible info directories
55
56* Tue Jul 28 2009 Jeremy Huntwork <jhuntwork@lightcubesolutions.com> - 2.5.4-1
57- Initial version
Note: See TracBrowser for help on using the browser.