Last change
on this file since 1770 was
926,
checked in by quentin, 16 years ago
|
Use an RPM macro instead of sed to specify package versions
|
File size:
1.1 KB
|
Line | |
---|
1 | Summary: scripts.mit.edu logview program |
---|
2 | Group: Applications/System |
---|
3 | Name: logview |
---|
4 | Version: 0.%{scriptsversion} |
---|
5 | Release: 0 |
---|
6 | Vendor: The scripts.mit.edu Team (scripts@mit.edu) |
---|
7 | URL: http://scripts.mit.edu |
---|
8 | License: GPL |
---|
9 | Source: %{name}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%(%{__id_u} -n)-%{name}-%{version}-root |
---|
11 | %define debug_package %{nil} |
---|
12 | |
---|
13 | %description |
---|
14 | |
---|
15 | scripts.mit.edu logview program |
---|
16 | See http://scripts.mit.edu/wiki for more information. |
---|
17 | |
---|
18 | %prep |
---|
19 | %setup -q -n %{name} |
---|
20 | |
---|
21 | %build |
---|
22 | ./configure |
---|
23 | make |
---|
24 | |
---|
25 | %install |
---|
26 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
27 | make install DESTDIR=$RPM_BUILD_ROOT prefix=/usr/local |
---|
28 | |
---|
29 | %clean |
---|
30 | [ $RPM_BUILD_ROOT != / ] && rm -rf $RPM_BUILD_ROOT |
---|
31 | |
---|
32 | %pre |
---|
33 | useradd logview || [ $? -eq 9 ] |
---|
34 | |
---|
35 | %postun |
---|
36 | if [ "$1" = "0" ] ; then |
---|
37 | userdel logview |
---|
38 | fi |
---|
39 | |
---|
40 | %files |
---|
41 | %defattr(0755, root, root) |
---|
42 | /usr/local/bin/logview.pl |
---|
43 | %defattr(4755, logview, root) |
---|
44 | /usr/local/bin/logview |
---|
45 | |
---|
46 | %changelog |
---|
47 | * Wed Dec 31 2008 Quentin Smith <quentin@mit.edu> |
---|
48 | - ignore preexisting user |
---|
49 | |
---|
50 | * Wed Dec 31 2008 Quentin Smith <quentin@mit.edu> - 0.917-0 |
---|
51 | - don't delete logview user on upgrades |
---|
52 | |
---|
53 | * Tue Jan 30 2006 Jeff Arnold <jbarnold@MIT.EDU> 0.00 |
---|
54 | - prerelease |
---|
Note: See
TracBrowser
for help on using the repository browser.