summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordani <dani@localhost.localdomain>2016-07-21 15:48:33 +0200
committerdani <dani@localhost.localdomain>2016-07-21 15:48:33 +0200
commit139a6f6d519043dd69dbfe8cf3d0e1e599f17291 (patch)
tree473d04faaf18d59ab758f8bf7d406b71b6de3b90
parentf39e434d99b48e436d702150b84ba204d55c2ae4 (diff)
Add spec file for Fedora distros
-rw-r--r--packaging/fedora/README.md26
-rw-r--r--packaging/fedora/os-log-merger.spec60
2 files changed, 86 insertions, 0 deletions
diff --git a/packaging/fedora/README.md b/packaging/fedora/README.md
new file mode 100644
index 0000000..d6fccbc
--- /dev/null
+++ b/packaging/fedora/README.md
@@ -0,0 +1,26 @@
1# os-log-merger Packaging: RPM
2
3This specfile can be used to build os-log.merger RPM package for Red Hat based distributions. Tested on Fedora 24.
4
5## Local build
6
7### Install build tools
8```sh
9dnf install @development-tools fedora-packager
10```
11
12### Install dependencies
13```sh
14dnf builddep os-log-merger.spec
15```
16
17
18### Download source files
19```sh
20spectool --sourcedir --get-files os-log-merger.spec
21```
22
23### Build RPM
24```sh
25rpmbuild -bb os-log-merger.spec
26```
diff --git a/packaging/fedora/os-log-merger.spec b/packaging/fedora/os-log-merger.spec
new file mode 100644
index 0000000..b43003e
--- /dev/null
+++ b/packaging/fedora/os-log-merger.spec
@@ -0,0 +1,60 @@
1%global srcname os-log-merger
2%global sum OpenStack Log Merger
3
4Name: python-%{srcname}
5Version: 1.0.6
6Release: 1%{?dist}
7Summary: %{sum}
8
9License: Apache
10URL: https://github.com/mangelajo/os-log-merger/
11Source: https://pypi.python.org/packages/6f/f1/b2a46907086c29725dd0e2296d6f45e7965670a05b43626abc1c81a098a0/os-log-merger-%{version}.tar.gz
12
13
14BuildRoot: %{_tmppath}/%{srcname}-%{version}-build
15BuildArch: noarch
16BuildRequires: python2
17
18
19%description
20A tool designed to take a bunch of openstack logs across different projects, and merge them in a single file, ordered by time entries
21
22%package -n %{srcname}
23Summary: %{sum}
24%{?python_provide:%python_provide python2-%{srcname}}
25
26%description -n %{srcname}
27A tool designed to take a bunch of openstack logs across different projects, and merge them in a single file, ordered by time entries
28
29
30%prep
31%autosetup -n %{srcname}-%{version}
32
33
34%build
35#%py2_build
36
37
38%install
39%py2_install
40
41
42%check
43%{__python2} setup.py test
44
45%files -n %{srcname}
46#%license LICENSE
47%doc README.rst
48%{python2_sitelib}/*
49%{_bindir}/os-log-merger
50%{_bindir}/oslogmerger
51%{_bindir}/netprobe
52
53
54
55%changelog
56* Tue Jul 19 2016 dani - 1.0.6-1
57- First version of the os-log-merger-package
58
59
60-