Codebase list unrar-nonfree / dfeff6f
shared lib building, add myself to uploaders Norbert Preining 5 years ago
4 changed file(s) with 70 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
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
09 unrar-nonfree (1:5.5.8-1) unstable; urgency=high
110
211 * New upstream release
11 Section: non-free/utils
22 Priority: optional
33 Maintainer: Martin Meredith <mez@debian.org>
4 Uploaders: Norbert Preining <preining@debian.org>
45 Homepage: http://www.rarlabs.com/
56 Build-Depends: debhelper (>= 9), dpkg-dev (>= 1.16.1~)
6 Standards-Version: 4.0.1
7 Standards-Version: 4.2.1
78 XS-Autobuild: yes
9 Vcs-Browser: https://salsa.debian.org/preining/unrar-nonfree
10 Vcs-Git: https://salsa.debian.org/preining/unrar-nonfree.git
811
912 Package: unrar
1013 Architecture: any
1316 Description: Unarchiver for .rar files (non-free version)
1417 Unrar can extract files from .rar archives. If you want to create .rar
1518 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(-)
33
4 --- unrar.orig/makefile
5 +++ unrar/makefile
6 @@ -3,12 +3,12 @@
7
48 # Linux using GCC
59 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
813 DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
914 STRIP=strip
1015 AR=ar
1116 -LDFLAGS=-pthread
1217 +LDFLAGS+=-pthread
1318 DESTDIR=/usr
14
19
1520 # 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:
00 #!/usr/bin/make -f
1
2 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
13
24 DPKG_EXPORT_BUILDFLAGS = 1
35 include /usr/share/dpkg/buildflags.mk
810 build-stamp:
911 dh_testdir
1012 make -f makefile
13 make -f makefile lib
14 touch build-stamp
1115
1216 clean:
1317 dh_testdir
1418 dh_testroot
1519
1620 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
1825 dh_clean
1926
2027 binary-indep:
2936
3037 install -o root -g root -s -m 0755 unrar debian/unrar/usr/bin/unrar-nonfree
3138
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
3248 dh_installdocs
3349 dh_installman debian/unrar-nonfree.1
3450 dh_installchangelogs
51 dh_makeshlibs -plibunrar5
3552 dh_strip
3653 dh_compress
3754 dh_fixperms