18110
|
1 |
#
|
|
2 |
# spec file for package SUNWslocate
|
|
3 |
#
|
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
%define owner wangke
|
|
9 |
#
|
|
10 |
%include Solaris.inc
|
|
11 |
|
|
12 |
%define OSR 9390:3.x
|
|
13 |
|
|
14 |
Name: SUNWslocate
|
|
15 |
IPS_package_name: file/slocate
|
|
16 |
Meta(info.classification): %{classification_prefix}:Applications/System Utilities
|
|
17 |
Summary: Finds files on a system via a central database
|
|
18 |
Version: 3.1
|
|
19 |
License: GPL v2
|
|
20 |
Vendor: http://slocate.trakker.ca
|
|
21 |
Group: File Tools
|
|
22 |
Distribution: Java Desktop System
|
|
23 |
Vendor: Sun Microsystems, Inc.
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
|
25 |
SUNW_Copyright: %{name}.copyright
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Source: http://slocate.trakker.ca/files/slocate-%{version}.tar.gz
|
|
28 |
# date:2008-09-02 owner:wangke type:feature
|
|
29 |
Patch1: slocate-01-makefile.diff
|
|
30 |
# date:2008-09-02 owner:wangke type:feature
|
|
31 |
Patch2: slocate-02-string.diff
|
|
32 |
# date:2009-02-19 owner:wangke type:branding
|
|
33 |
Patch3: slocate-03-manpages.diff
|
20263
|
34 |
# date:2010-10-21 owner:wangke type:branding
|
|
35 |
Patch4: slocate-04-strcasestr.diff
|
18110
|
36 |
|
|
37 |
Requires: SUNWcsl
|
|
38 |
Requires: SUNWcslr
|
|
39 |
Requires: SUNWlibmsr
|
|
40 |
Requires: %{name}-root
|
|
41 |
BuildRequires: SUNWhea
|
|
42 |
|
|
43 |
%description
|
|
44 |
Slocate is a security-enhanced version of locate. Just like locate,
|
|
45 |
slocate searches through a central database (updated regularly)
|
|
46 |
for files which match a given pattern. Slocate allows you to quickly
|
|
47 |
find files anywhere on your system.
|
|
48 |
|
|
49 |
%package root
|
|
50 |
Summary: %{summary} - / filesystem
|
|
51 |
SUNW_BaseDir: /
|
|
52 |
Requires: SUNWcsr
|
|
53 |
|
|
54 |
%prep
|
|
55 |
%setup -q -n slocate-%{version}
|
|
56 |
%patch1 -p1
|
|
57 |
%patch2 -p1
|
|
58 |
%patch3 -p1
|
20263
|
59 |
%patch4 -p1
|
18110
|
60 |
|
|
61 |
%build
|
|
62 |
export CFLAGS="%optflags -I/usr/include/ast"
|
|
63 |
export LDFLAGS="/usr/lib/libast.so.1"
|
|
64 |
cd src
|
|
65 |
make
|
|
66 |
cd ..
|
|
67 |
|
|
68 |
|
|
69 |
%install
|
|
70 |
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
71 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
72 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
73 |
|
|
74 |
install src/slocate $RPM_BUILD_ROOT%{_bindir}/
|
|
75 |
ln -s slocate $RPM_BUILD_ROOT%{_bindir}/updatedb
|
|
76 |
install doc/slocate.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
77 |
install doc/updatedb.1 $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
78 |
chmod 644 $RPM_BUILD_ROOT%{_mandir}/man1/slocate.1
|
|
79 |
chmod 644 $RPM_BUILD_ROOT%{_mandir}/man1/updatedb.1
|
|
80 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/slocate/samples
|
|
81 |
install debian/updatedb.conf $RPM_BUILD_ROOT%{_datadir}/doc/slocate/samples/
|
|
82 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/
|
|
83 |
install debian/updatedb.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
|
84 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/slocate
|
|
85 |
|
|
86 |
%clean
|
|
87 |
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
88 |
|
|
89 |
%files
|
|
90 |
%defattr(-,root,bin)
|
|
91 |
%attr(2755,root,slocate) %{_bindir}/slocate
|
|
92 |
%attr(-,root,slocate) %{_bindir}/updatedb
|
|
93 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
94 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
95 |
%dir %attr(0755, root, bin) %{_mandir}/man1
|
|
96 |
%{_mandir}/man1/*
|
|
97 |
%dir %attr(0755, root, other) %{_datadir}/doc
|
|
98 |
%dir %attr(0755, root, bin) %{_datadir}/doc/slocate
|
|
99 |
%dir %attr(0755, root, bin) %{_datadir}/doc/slocate/samples
|
|
100 |
%attr (444, root, bin) %{_datadir}/doc/slocate/samples/updatedb.conf
|
|
101 |
%doc README
|
|
102 |
%doc(bzip2) LICENSE Changelog
|
|
103 |
|
|
104 |
%files root
|
|
105 |
%defattr (-, root, bin)
|
|
106 |
%attr (0755, root, sys) %dir %{_sysconfdir}
|
|
107 |
%attr (0644, root, root) %{_sysconfdir}/updatedb.conf
|
|
108 |
%defattr (-, root, sys)
|
|
109 |
%dir %{_localstatedir}
|
|
110 |
%dir %attr (0755, root, other) %{_localstatedir}/lib
|
|
111 |
%dir %attr (0750, root, slocate) %{_localstatedir}/lib/slocate
|
|
112 |
|
|
113 |
%changelog
|
|
114 |
* Thu Feb 19 2009 - [email protected]
|
|
115 |
- Add manpages patch for Attributes and ARC Comment
|
|
116 |
* Wed Sep 17 2008 - [email protected]
|
|
117 |
- Revised new copyright file
|
|
118 |
* Mon Jun 30 2008 - [email protected]
|
|
119 |
- initial release
|
|
120 |
|