Bug #929
Create a foreman-release package?
| Status: | Closed | Start: | 05/22/2011 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 100% |
|
| Category: | Packaging | |||
| Target version: | 0.3 | |||
| Backlog: | No | Difficulity: | ||
| Votes: | 0 |
Description
Could you create a package called something like "foreman-release" that creates this file?
cat - > /etc/yum.repos.d/foreman-release.repo <<EOT
[foreman]
name=Foreman - Stable
baseurl=http://yum.theforeman.org/stable/
enabled=1
gpgcheck=0
[foreman-testing]
name=Foreman - Testing
baseurl=http://yum.theforeman.org/test/
enabled=0
gpgcheck=0
EOT
By doing so, users can add the repo by name and match other 3rd party repos.
Thanks in advance.
Associated revisions
Revision 814e3894b55ace2a24440c6828e41cbdb36d6be3
fixes #929 - Add files for foreman-release mini package
Signed-off-by: D. Johnson <fenris02@fedoraproject.org>
History
Updated by D. Johnson about 1 year ago
This should work:
diff --git a/extras/foreman-release.spec b/extras/foreman-release.spec
new file mode 100644
index 0000000..2007f30
--- /dev/null
++ b/extras/foreman-release.spec@ -0,0 +1,41 @
Name: foreman-release
+Version: 1
+Release: 1
+Summary: Foreman repository files
Group: System Environment/Base
+License: GPLv3
URL: http://theforeman.org/projects/foreman/
+Source1: foreman.repo
+BuildRoot: /%{name}-%{version}-%{release}-root-%({__id_u} n)
BuildArch: noarch
%description
+Foreman repository contains open source and other distributable software for
+Fedora. This package contains the repository configuration for Yum.
%prep
%build
%install
+rm -rf $RPM_BUILD_ROOT
# yum
+install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/yum.repos.d
+install -pm 644 {SOURCE1} \
$RPM_BUILD_ROOT{_sysconfdir}/yum.repos.d
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(,root,root,-)
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
%changelog
* Sun May 22 2011 <fenris02@fedoraproject.org> - 1-1
+- Initial release
diff --git a/extras/foreman.repo b/extras/foreman.repo
new file mode 100644
index 0000000..9fdc048
--- /dev/null
++ b/extras/foreman.repo@ -0,0 +1,11 @
+name=Foreman - Stable
+baseurl=http://yum.theforeman.org/stable/
+enabled=1
+gpgcheck=0
+[foreman-testing]
+name=Foreman - Testing
+baseurl=http://yum.theforeman.org/test/
+enabled=0
+gpgcheck=0
Updated by D. Johnson 12 months ago
Looks like wiki broke git patch, attaching as external file with git format-patch
Updated by Ohad Levy 12 months ago
- Category set to Packaging
- Target version set to 0.3
- Backlog set to No
Updated by D. Johnson 12 months ago
- Status changed from New to Ready For Testing
- % Done changed from 0 to 100
Applied in changeset 814e3894b55ace2a24440c6828e41cbdb36d6be3.
