This repository has been archived by the owner on Oct 21, 2019. It is now read-only.
forked from leapp-to/leapp-actors
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leapp-repository.spec
57 lines (46 loc) · 1.52 KB
/
leapp-repository.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
50
51
52
53
54
55
56
57
%global debug_package %{nil}
%global gittag master
%global dist %{nil}
%global repositorydir %{_datadir}/leapp-repository/repositories
%global custom_repositorydir %{_datadir}/leapp-repository/custom-repositories
Name: leapp-repository
Version: 0.3
Release: 1%{?dist}
Summary: Repositories for leapp
License: ASL 2.0
URL: https://leapp-to.github.io
Source0: https://github.com/leapp-to/leapp-actors/archive/%{gittag}/leapp-actors-%{version}.tar.gz
BuildArch: noarch
Requires: dnf >= 2.7.5
%if 0%{?fedora} || 0%{?rhel} > 7
Requires: systemd-container
%endif
%description
Repositories for leapp
%prep
%autosetup -n leapp-actors-%{gittag}
%build
make build
%install
install -m 0755 -d %{buildroot}%{custom_repositorydir}
install -m 0755 -d %{buildroot}%{repositorydir}
cp -r repos/* %{buildroot}%{repositorydir}/
install -m 0755 -d %{buildroot}%{_sysconfdir}/leapp/repos.d/
install -m 0755 -d %{buildroot}%{_sysconfdir}/leapp/transaction/
install -m 0644 etc/leapp/transaction/* %{buildroot}%{_sysconfdir}/leapp/transaction
for DIRECTORY in $(find repos/ -mindepth 1 -maxdepth 1 -type d);
do
REPOSITORY=$(basename $DIRECTORY)
echo "Enabling repository $REPOSITORY"
ln -s %{repositorydir}/$REPOSITORY %{buildroot}%{_sysconfdir}/leapp/repos.d/$REPOSITORY
done;
%files
%doc README.md
%license LICENSE
%{_sysconfdir}/leapp/repos.d/*
%{_sysconfdir}/leapp/transaction/*
%{repositorydir}/*
%dir %{custom_repositorydir}
%changelog
* Mon Apr 16 2018 Vinzenz Feenstra <evilissimo@redhat.com> - 0.3-1
- Initial RPM