-
Notifications
You must be signed in to change notification settings - Fork 1
/
rpm-gitprep.spec
51 lines (38 loc) · 1.12 KB
/
rpm-gitprep.spec
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
Name: rpm-gitprep
Version: 0.1
Release: 3%{?dist}
Summary: Prepare your RPM sources into git repository
#Group:
License: GPLv3+
URL: none
Source0: rpmpatch.git
Source1: macros.rpm-gitprep
Source2: README.txt
Source3: COPYING
BuildArch: noarch
BuildRequires: rpm
Requires: rpm
%description
This tool helps you to prepare your sources using rpmbuild -bp or
fedpkg prep as git repository. It allows you to use git tools to
analyze what patches of package changed. Or what files were
modified by what patches.
%prep
%build
%install
%define execpath %{_libexecdir}/%{name}
mkdir -p %{buildroot}/%{execpath}
%{__install} -p %{SOURCE0} %{buildroot}/%{execpath}/
mkdir -p %{buildroot}/%{_rpmconfigdir}/macros.d/
%{__install} -p %{SOURCE1} %{buildroot}/%{_rpmconfigdir}/macros.d/
%files
%doc README.txt
%license COPYING
%{_libexecdir}/%{name}
%{_rpmconfigdir}/macros.d/macros.rpm-gitprep
%changelog
* Tue Nov 15 2016 Petr Menšík <pemensik@redhat.com> - 0.1-3
- Use patch directly, git apply is not powerful enough
- Replace rpmfixperms with RPM macro
* Mon Nov 14 2016 Petr Menšík <pemensik@redhat.com> - 0.1-2
- Initial package