Show More
@@ -10,6 +10,9 b' Packager: Arun Sharma <arun@sharma-home.' | |||
|
10 | 10 | Prefix: /usr |
|
11 | 11 | BuildRoot: /tmp/build.%{name}-%{version}-%{release} |
|
12 | 12 | |
|
13 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') | |
|
14 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} | |
|
15 | ||
|
13 | 16 | %description |
|
14 | 17 | |
|
15 | 18 | Mercurial is a fast, lightweight source control management system designed |
@@ -29,20 +32,16 b' python setup.py build' | |||
|
29 | 32 | |
|
30 | 33 | python setup.py install --root $RPM_BUILD_ROOT |
|
31 | 34 | |
|
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} | |
|
35 | %clean | |
|
36 | rm -rf $RPM_BUILD_ROOT | |
|
40 | 37 | |
|
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} | |
|
38 | %files | |
|
39 | %defattr(-,root,root,-) | |
|
48 | 40 | %doc doc |
|
41 | %dir %{pythonlib} | |
|
42 | %{_bindir}/hgmerge | |
|
43 | %{_bindir}/hg | |
|
44 | %{pythonlib}/templates | |
|
45 | %{pythonlib}/*.pyc | |
|
46 | %{pythonlib}/*.py | |
|
47 | %{pythonlib}/*.so |
General Comments 0
You need to be logged in to leave comments.
Login now