-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpkgit.spec
More file actions
39 lines (31 loc) · 1.13 KB
/
pkgit.spec
File metadata and controls
39 lines (31 loc) · 1.13 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
Summary: pkgit - packaging tool for git repositories
Name: pkgit
Version: %{version_base}
Release: %{version_release}%{?org_tag}%{?dist}
Source: %{name}-%{version}.tgz
License: Proprietary, Redistribution not allowed
Group: Applications/Other
Buildroot: %_tmppath/%{name}-%{version}
BuildRequires: help2man perl-Exporter rpmdevtools
BuildArch: noarch
Requires: rpmdevtools, python3-compiletools >= 4.1.67
%description
pkgit - Assuming you are using git and don't mind sticking packaging versions into the git tags, this tool makes it easy to create RPMs.
%prep
%setup
%build
test %{buildroot} != "/" && rm -rf %{buildroot}
# Search and replace any PKGIT_PROJECT_VERSION with an actual version
find . -type f -print0 |xargs -0 sed -i "s/PKGIT_PROJECT_VERSION/%{version_base}-%{version_release}/g"
./create-documentation.sh
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1/
install scripts/pkgit* %{buildroot}%{_bindir}
install -m 0644 *.1 %{buildroot}%{_mandir}/man1/
%clean
test "%{buildroot}" != "/" && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%attr(0755,-,-)%{_bindir}/*
%attr(0644,-,-)%{_mandir}/man1/*.1.gz