Browse Source

Merge pull request #28 from danalsan/master

Add spec file for Fedora distros
Miguel Ángel Ajo 2 years ago
parent
commit
158f64ae4c
2 changed files with 83 additions and 0 deletions
  1. 26
    0
      packaging/fedora/README.md
  2. 57
    0
      packaging/fedora/os-log-merger.spec

+ 26
- 0
packaging/fedora/README.md View File

@@ -0,0 +1,26 @@
1
+# os-log-merger Packaging: RPM
2
+
3
+This 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
9
+dnf install @development-tools fedora-packager
10
+```
11
+
12
+### Install dependencies
13
+```sh
14
+dnf builddep os-log-merger.spec
15
+```
16
+
17
+
18
+### Download source files
19
+```sh
20
+spectool --sourcedir --get-files os-log-merger.spec
21
+```
22
+
23
+### Build RPM
24
+```sh
25
+rpmbuild -bb os-log-merger.spec
26
+```

+ 57
- 0
packaging/fedora/os-log-merger.spec View File

@@ -0,0 +1,57 @@
1
+%global srcname os-log-merger
2
+%global	sum	OpenStack Log Merger
3
+
4
+Name:		python-%{srcname}
5
+Version:	1.0.6
6
+Release:	1%{?dist}
7
+Summary:	%{sum}
8
+
9
+License:	Apache
10
+URL:		https://github.com/mangelajo/os-log-merger/
11
+Source:         https://pypi.python.org/packages/6f/f1/b2a46907086c29725dd0e2296d6f45e7965670a05b43626abc1c81a098a0/os-log-merger-%{version}.tar.gz
12
+
13
+
14
+BuildRoot:      %{_tmppath}/%{srcname}-%{version}-build
15
+BuildArch:	noarch
16
+BuildRequires:	python2
17
+
18
+
19
+%description
20
+A 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}
23
+Summary:	%{sum}
24
+%{?python_provide:%python_provide python2-%{srcname}}
25
+
26
+%description -n %{srcname}
27
+A 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
+%changelog
55
+* Tue Jul 19 2016 dani - 1.0.6-1
56
+- First version of the os-log-merger-package
57
+

Loading…
Cancel
Save