2012-05-14 12:21:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package lhasa
|
|
|
|
#
|
2013-02-21 06:50:15 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-05-14 12:21:46 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-06-03 01:05:56 +02:00
|
|
|
|
|
|
|
|
2012-05-14 12:21:46 +02:00
|
|
|
Name: lhasa
|
|
|
|
%define lname liblhasa0
|
2012-06-03 01:05:56 +02:00
|
|
|
Version: 0.0.7
|
2012-05-14 12:21:46 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Program to unpack LHARC archives
|
|
|
|
License: ISC
|
|
|
|
Group: Productivity/Archiving/Compression
|
|
|
|
Url: http://fragglet.github.com/lhasa/
|
|
|
|
|
2013-03-14 16:49:04 +01:00
|
|
|
#Freecode-URL: http://freecode.com/projects/lhasa
|
2013-02-21 06:50:15 +01:00
|
|
|
#Git-Clone: git://github.com/fragglet/lhasa
|
2012-06-03 01:05:56 +02:00
|
|
|
#DL-URL: https://github.com/downloads/fragglet/lhasa/lhasa-0.0.7.tar.gz
|
2012-05-14 12:21:46 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2013-03-14 16:49:04 +01:00
|
|
|
Patch1: 0001-build-support-for-automake-1.13.patch
|
2012-05-14 12:21:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-14 16:49:04 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2012-06-03 01:05:56 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2012-05-14 12:21:46 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Lhasa is a replacement for the Unix LHA tool, for decompressing
|
|
|
|
".lzh" (LHA/LHarc) and ".lzs" (LArc) archives.
|
|
|
|
|
|
|
|
%package -n %lname
|
2012-06-03 01:05:56 +02:00
|
|
|
Summary: A decompression library for the LHARC data format
|
|
|
|
Group: System/Libraries
|
2012-05-14 12:21:46 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
liblhasa is the backend to the Lhasa tool, offering decompressing for
|
|
|
|
".lzh" (LHA/LHarc) and ".lzs" (LArc) archives.
|
|
|
|
|
|
|
|
%package devel
|
2012-06-03 01:05:56 +02:00
|
|
|
Summary: Development files for liblhasa, a LHARC decompression library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
2012-05-14 12:21:46 +02:00
|
|
|
|
|
|
|
%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
|
2013-03-14 16:49:04 +01:00
|
|
|
%patch -P 1 -p1
|
2012-05-14 12:21:46 +02:00
|
|
|
|
|
|
|
%build
|
2013-03-14 16:49:04 +01:00
|
|
|
autoreconf -fi
|
2012-05-14 12:21:46 +02:00
|
|
|
%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
|