Skip to content

Commit 114bc8d

Browse files
authored
Merge pull request #26 from pumbaEO/feature/rpm
Feature/rpm
2 parents 82e2260 + dfbf5be commit 114bc8d

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

rpm/readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ rpmdev-setuptree
1313
```
1414

1515
Копируем v8unpack.spec в ~/rpmbuild/SPEC
16-
переименовать каталог v8unpack в v8unpack-3.0 и запаковать его в v8unpack-3.0.tar.gz
17-
скопировать v8unpack-3.0.tar.gz в SOURCE
16+
выполняем комманду
17+
```
18+
spectool -g -R SPECS/v8unpack.spec
19+
```
1820

1921
пакет собирается с помощью команды
2022
```

rpm/v8unpack.spec

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
Name: v8unpack
2-
Version: 3.0
2+
Version: 3.0.38
33
Release: 1%{?dist}
44
Summary: Enterprise 8 unpack tool
55

66
License: No License
7-
URL: https://github.com/dmpas/v8unpack
8-
Source0: v8unpack-3.0.tar.gz
7+
URL: https://github.com/dmpas/v8unpack
8+
Source0: https://github.com/dmpas/v8unpack/archive/v.3.0.38.tar.gz
99

10-
BuildRequires: zlib-devel, boost-devel
10+
%if 0%{?rhel}
11+
BuildRequires: zlib-devel, boost-devel, zlib-devel-static, boost-devel-static, glibc-devel-static, libstdc++-devel-static
12+
%endif
13+
%if 0%{?fedora}||0%{?centos}
14+
BuildRequires: zlib-devel, boost-devel, zlib-static, boost-static, glibc-static, libstdc++-static
15+
%endif
16+
17+
# workaround for rpm 4.13
18+
%define _empty_manifest_terminate_build 0
1119

1220
%description
1321
Enterprise 8 unpack tool
1422

1523
%prep
16-
%setup -q
24+
%setup -q -n v8unpack-v.%{version}
1725

1826

1927
%build
@@ -33,6 +41,10 @@ rm -rf $RPM_BUILD_ROOT
3341

3442

3543
%changelog
44+
* Mon Dec 26 2016 23:31:46 +0300 Sergey Batanov <sergey.batanov@dmpas.ru>
45+
- Added -build -nopack mode
46+
- Switched to static linking
47+
3648
* Tue Jul 21 2015 Shenja Sosna
3749
- add rpm build
3850

0 commit comments

Comments
 (0)