forked from pool/lhasa
Accepting request 120801 from home:jengelh:dev
Libre LHA/LZH decompressor OBS-URL: https://build.opensuse.org/request/show/120801 OBS-URL: https://build.opensuse.org/package/show/Archiving/lhasa?expand=0&rev=1
This commit is contained in:
commit
cb37cb1292
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
lhasa-0.0.5.tar.xz
Normal file
3
lhasa-0.0.5.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:afb3199bc62e4eef7be59ed7f38eb253a658dce5800a17790e5b9030afcf218d
|
||||
size 1201232
|
4
lhasa.changes
Normal file
4
lhasa.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 13 01:24:32 UTC 2012 - jengelh@inai.de
|
||||
|
||||
- Initial package for build.opensuse.org
|
90
lhasa.spec
Normal file
90
lhasa.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package lhasa
|
||||
#
|
||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
Name: lhasa
|
||||
%define lname liblhasa0
|
||||
Version: 0.0.5
|
||||
Release: 0
|
||||
Summary: Program to unpack LHARC archives
|
||||
License: ISC
|
||||
Group: Productivity/Archiving/Compression
|
||||
Url: http://fragglet.github.com/lhasa/
|
||||
#Freecode-URL: http://freecode.com/projects/lhasa
|
||||
|
||||
#DL-URL: https://github.com/downloads/fragglet/lhasa/lhasa-0.0.5.tar.gz
|
||||
Source: %name-%version.tar.xz
|
||||
Patch1: liblhasa-pkgconfig.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: libtool pkgconfig xz
|
||||
|
||||
%description
|
||||
Lhasa is a replacement for the Unix LHA tool, for decompressing
|
||||
".lzh" (LHA/LHarc) and ".lzs" (LArc) archives.
|
||||
|
||||
%package -n %lname
|
||||
Summary: A decompression library for the LHARC data format
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n %lname
|
||||
liblhasa is the backend to the Lhasa tool, offering decompressing for
|
||||
".lzh" (LHA/LHarc) and ".lzs" (LArc) archives.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for liblhasa, a LHARC decompression library
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %lname = %version
|
||||
|
||||
%description devel
|
||||
liblhasa is the backend to the Lhasa tool, offering decompressing for
|
||||
".lzh" (LHA/LHarc) and ".lzs" (LArc) archives.
|
||||
|
||||
This package contains the development headers for the library found
|
||||
in %lname.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi;
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags};
|
||||
|
||||
%install
|
||||
b="%buildroot";
|
||||
make install DESTDIR="$b";
|
||||
rm -f "$b/%_libdir"/*.la;
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%_bindir/lha
|
||||
%_mandir/man1/lha.1*
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
%_libdir/liblhasa.so.0*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%_includedir/liblhasa-1.0
|
||||
%_libdir/liblhasa.so
|
||||
%_libdir/pkgconfig/liblhasa.pc
|
||||
|
||||
%changelog
|
47
liblhasa-pkgconfig.diff
Normal file
47
liblhasa-pkgconfig.diff
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
Makefile.am | 3 ++-
|
||||
configure.ac | 1 +
|
||||
liblhasa.pc.in | 10 ++++++++++
|
||||
3 files changed, 13 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: lhasa-0.0.5/Makefile.am
|
||||
===================================================================
|
||||
--- lhasa-0.0.5.orig/Makefile.am
|
||||
+++ lhasa-0.0.5/Makefile.am
|
||||
@@ -4,7 +4,8 @@ AUX_DIST_GEN = $(ac_aux_dir)
|
||||
EXTRA_DIST = $(AUX_DIST_GEN) gencov rpm.spec
|
||||
MAINTAINERCLEANFILES = $(AUX_DIST_GEN)
|
||||
|
||||
-$(pkgconfig_DATA) : config.status
|
||||
+pkgconfigdir = ${libdir}/pkgconfig
|
||||
+pkgconfig_DATA = liblhasa.pc
|
||||
|
||||
SUBDIRS=doc lib src test
|
||||
|
||||
Index: lhasa-0.0.5/configure.ac
|
||||
===================================================================
|
||||
--- lhasa-0.0.5.orig/configure.ac
|
||||
+++ lhasa-0.0.5/configure.ac
|
||||
@@ -74,6 +74,7 @@ AC_SUBST(ac_aux_dir)
|
||||
AM_CONFIG_HEADER(config.h:config.hin)
|
||||
|
||||
AC_OUTPUT([
|
||||
+ liblhasa.pc
|
||||
rpm.spec
|
||||
Makefile
|
||||
doc/Makefile
|
||||
Index: lhasa-0.0.5/liblhasa.pc.in
|
||||
===================================================================
|
||||
--- /dev/null
|
||||
+++ lhasa-0.0.5/liblhasa.pc.in
|
||||
@@ -0,0 +1,10 @@
|
||||
+prefix=@prefix@
|
||||
+exec_prefix=@exec_prefix@
|
||||
+libdir=@libdir@
|
||||
+includedir=@includedir@
|
||||
+
|
||||
+Name: liblhasa
|
||||
+Description: LHA (de)compression library
|
||||
+Version: @PACKAGE_VERSION@
|
||||
+Libs: -L${libdir} -llhasa
|
||||
+Cflags: -I${includedir}/liblhasa-1.0
|
Loading…
Reference in New Issue
Block a user