shared lib building, add myself to uploaders
Norbert Preining
5 years ago
|
0 |
unrar-nonfree (1:5.6.6-1) unstable; urgency=medium
|
|
1 |
|
|
2 |
* add myself to uploaders with Martin's consent,
|
|
3 |
terminating the salvage process (Closes: #909795)
|
|
4 |
* add libunrar5 and libunrar-dev packages
|
|
5 |
* bump standards version, no changes necessary
|
|
6 |
|
|
7 |
-- Norbert Preining <preining@debian.org> Wed, 24 Oct 2018 11:00:16 +0900
|
|
8 |
|
0 | 9 |
unrar-nonfree (1:5.5.8-1) unstable; urgency=high
|
1 | 10 |
|
2 | 11 |
* New upstream release
|
1 | 1 |
Section: non-free/utils
|
2 | 2 |
Priority: optional
|
3 | 3 |
Maintainer: Martin Meredith <mez@debian.org>
|
|
4 |
Uploaders: Norbert Preining <preining@debian.org>
|
4 | 5 |
Homepage: http://www.rarlabs.com/
|
5 | 6 |
Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~)
|
6 | |
Standards-Version: 4.0.1
|
|
7 |
Standards-Version: 4.2.1
|
7 | 8 |
XS-Autobuild: yes
|
|
9 |
Vcs-Browser: https://salsa.debian.org/preining/unrar-nonfree
|
|
10 |
Vcs-Git: https://salsa.debian.org/preining/unrar-nonfree.git
|
8 | 11 |
|
9 | 12 |
Package: unrar
|
10 | 13 |
Architecture: any
|
|
13 | 16 |
Description: Unarchiver for .rar files (non-free version)
|
14 | 17 |
Unrar can extract files from .rar archives. If you want to create .rar
|
15 | 18 |
archives, install package rar.
|
|
19 |
|
|
20 |
Package: libunrar5
|
|
21 |
Section: non-free/libs
|
|
22 |
Architecture: any
|
|
23 |
Multi-Arch: same
|
|
24 |
Depends: ${misc:Depends}, ${shlibs:Depends}
|
|
25 |
Pre-Depends: ${misc:Pre-Depends}
|
|
26 |
Description: Unarchiver for .rar files (non-free version) - shared library
|
|
27 |
library for unarchiving .rar files
|
|
28 |
|
|
29 |
Package: libunrar-dev
|
|
30 |
Section: non-free/libdevel
|
|
31 |
Architecture: any
|
|
32 |
Multi-Arch: same
|
|
33 |
Depends: ${misc:Depends}, libunrar5 (= ${binary:Version}), ${shlibs:Depends}
|
|
34 |
Description: Unarchiver for .rar files (non-free version) - development files
|
|
35 |
This package contains the static library and header files for the
|
|
36 |
libunrar library.
|
|
37 |
|
0 | |
--- a/makefile
|
1 | |
+++ b/makefile
|
2 | |
@@ -3,12 +3,10 @@
|
|
0 |
---
|
|
1 |
makefile | 6 +++---
|
|
2 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
3 | 3 |
|
|
4 |
--- unrar.orig/makefile
|
|
5 |
+++ unrar/makefile
|
|
6 |
@@ -3,12 +3,12 @@
|
|
7 |
|
4 | 8 |
# Linux using GCC
|
5 | 9 |
CXX=c++
|
6 | |
-CXXFLAGS=-O2
|
7 | |
-LIBFLAGS=-fPIC
|
|
10 |
-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
|
|
11 |
+CXXFLAGS=-Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
|
|
12 |
LIBFLAGS=-fPIC
|
8 | 13 |
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
|
9 | 14 |
STRIP=strip
|
10 | 15 |
AR=ar
|
11 | 16 |
-LDFLAGS=-pthread
|
12 | 17 |
+LDFLAGS+=-pthread
|
13 | 18 |
DESTDIR=/usr
|
14 | |
|
|
19 |
|
15 | 20 |
# Linux using LCC
|
|
21 |
@@ -156,7 +156,7 @@ lib: CXXFLAGS+=$(LIBFLAGS)
|
|
22 |
lib: clean $(OBJECTS) $(LIB_OBJ)
|
|
23 |
@rm -f libunrar.so
|
|
24 |
@rm -f libunrar.a
|
|
25 |
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
26 |
+ $(LINK) -Wl,-soname,libunrar.so.5 -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
27 |
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
|
|
28 |
|
|
29 |
install-unrar:
|
0 | 0 |
#!/usr/bin/make -f
|
|
1 |
|
|
2 |
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
1 | 3 |
|
2 | 4 |
DPKG_EXPORT_BUILDFLAGS = 1
|
3 | 5 |
include /usr/share/dpkg/buildflags.mk
|
|
8 | 10 |
build-stamp:
|
9 | 11 |
dh_testdir
|
10 | 12 |
make -f makefile
|
|
13 |
make -f makefile lib
|
|
14 |
touch build-stamp
|
11 | 15 |
|
12 | 16 |
clean:
|
13 | 17 |
dh_testdir
|
14 | 18 |
dh_testroot
|
15 | 19 |
|
16 | 20 |
make -f makefile clean
|
17 | |
rm -rf unrar
|
|
21 |
rm -f unrar
|
|
22 |
rm -f libunrar.so
|
|
23 |
rm -f libunrar.a
|
|
24 |
rm -f build-stamp
|
18 | 25 |
dh_clean
|
19 | 26 |
|
20 | 27 |
binary-indep:
|
|
29 | 36 |
|
30 | 37 |
install -o root -g root -s -m 0755 unrar debian/unrar/usr/bin/unrar-nonfree
|
31 | 38 |
|
|
39 |
mkdir -p debian/libunrar5/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
40 |
mkdir -p debian/libunrar-dev/usr/lib/$(DEB_HOST_MULTIARCH)
|
|
41 |
mkdir -p debian/libunrar-dev/usr/include/$(DEB_HOST_MULTIARCH)/unrar
|
|
42 |
|
|
43 |
install -o root -g root -s -m 0755 libunrar.so debian/libunrar5/usr/lib/$(DEB_HOST_MULTIARCH)/libunrar.so.5
|
|
44 |
install -o root -g root -m 0644 libunrar.a debian/libunrar-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libunrar.a
|
|
45 |
install -o root -g root -m 0644 *.hpp debian/libunrar-dev/usr/include/$(DEB_HOST_MULTIARCH)/unrar
|
|
46 |
ln -s libunrar.so.5 debian/libunrar-dev/usr/lib/$(DEB_HOST_MULTIARCH)/libunrar.so
|
|
47 |
|
32 | 48 |
dh_installdocs
|
33 | 49 |
dh_installman debian/unrar-nonfree.1
|
34 | 50 |
dh_installchangelogs
|
|
51 |
dh_makeshlibs -plibunrar5
|
35 | 52 |
dh_strip
|
36 | 53 |
dh_compress
|
37 | 54 |
dh_fixperms
|