comparison contrib/mercurial.spec @ 459:7c1952b29656

Add an RPM spec file -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Add an RPM spec file manifest hash: 4b0a028ee71e7bf1faa4fd6fe0d9efce0b04bf3a -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCvP1jywK+sNU5EO8RAiWVAJ9083+cHfhDn4kjnULikci6nQEvMACdFGyg 1Lv0tujumR2E9lvFe2c4eIw= =kKKS -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 24 Jun 2005 22:44:51 -0800
parents
children 42a6a41ab76b
comparison
equal deleted inserted replaced
458:ff8fbf99cd64 459:7c1952b29656
1 Summary: Mercurial -- a distributed SCM
2 Name: mercurial
3 Version: 0.6
4 Release: 1
5 Copyright: GPL
6 Group: Development/Tools
7 Distribution: RedHat
8 Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
9 Packager: Arun Sharma <arun@sharma-home.net>
10 Prefix: /usr
11 BuildRoot: /tmp/build.%{name}-%{version}-%{release}
12
13 %description
14
15 Mercurial is a fast, lightweight source control management system designed
16 for efficient handling of very large distributed projects.
17
18 %prep
19
20 rm -rf $RPM_BUILD_ROOT
21
22 %setup -q -n %{name}-%{version}
23
24 %build
25
26 python setup.py build
27
28 %install
29
30 python setup.py install --root $RPM_BUILD_ROOT
31
32 cd $RPM_BUILD_ROOT
33 find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
34 $RPM_BUILD_DIR/file.list.%{name}
35
36 find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
37 -e '/\/config\//s|^|%config|' \
38 -e '/\/applnk\//s|^|%config|' >> \
39 $RPM_BUILD_DIR/file.list.%{name}
40
41 find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
42 $RPM_BUILD_DIR/file.list.%{name}
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name}
46
47 %files -f ../file.list.%{name}
48 %doc doc