forked from scientificlinux/python-rpmpatch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-rpmpatch.spec
More file actions
67 lines (52 loc) · 1.95 KB
/
python-rpmpatch.spec
File metadata and controls
67 lines (52 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Summary: Tools for automatically customizing a source rpm
Name: python-rpmpatch
Version: 0.0.3
Release: 4.sl%{rhel}.1
Source0: python-rpmpatch.tar.gz
License: GPL
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: %{_prefix}
BuildArch: noarch
Url: http://www.scientificlinux.org/maillists
Requires: python >= 2.4
Requires: hardlink rpm-python rpmdevtools rpm-build
%description
Tools for making rpm customizations consistant as a program will be performing
the edits automatically based on a defined set of parameters.
There is a fairly extensive feature set packaged.
%prep
%setup -n %{name}
%build
python setup.py build
%install
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/python-rpmpatch/
cp -r docs/* $RPM_BUILD_ROOT/usr/share/doc/python-rpmpatch/
find $RPM_BUILD_ROOT/usr/share/doc/python-rpmpatch/ -type f -exec chmod 644 {} \;
find $RPM_BUILD_ROOT/usr/share/doc/python-rpmpatch/ -type d -exec chmod 755 {} \;
mkdir -p $RPM_BUILD_ROOT/usr/bin/
cp bin/* $RPM_BUILD_ROOT/usr/bin/
chmod 755 $RPM_BUILD_ROOT/usr/bin/*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/*
%{python_sitelib}/*
%doc /usr/share/doc/python-rpmpatch/
%changelog
- now with 'remove source'
- now supports optional dist tag detection and manipulation
- Better documentation, fixed minor logic error
- Error messages are now much more accurate
- non full paths in config are now relative to the config file
- now works on python 2.4 ie SL5
- Initial build