2013-04-19 07:57:26 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package liblnk
|
|
|
|
|
#
|
2024-01-20 13:10:09 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2013-04-19 07:57:26 +00: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.
|
|
|
|
|
|
2019-04-19 20:30:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-19 07:57:26 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define lname liblnk1
|
2021-06-09 10:38:36 +00:00
|
|
|
Name: liblnk
|
2024-04-23 07:01:33 +00:00
|
|
|
Version: 20240423
|
2013-04-19 07:57:26 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Library and tools to access the Windows Shortcut File (LNK) format
|
2021-06-09 10:38:36 +00:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
|
|
|
|
Group: Productivity/File Utilities
|
|
|
|
|
URL: https://github.com/libyal/liblnk
|
2024-04-23 07:01:33 +00:00
|
|
|
Source: https://github.com/libyal/liblnk/releases/download/%version/%name-alpha-%version.tar.gz
|
|
|
|
|
Source2: https://github.com/libyal/liblnk/releases/download/%version/%name-alpha-%version.tar.gz.asc
|
2022-10-23 12:14:45 +00:00
|
|
|
Source3: %name.keyring
|
|
|
|
|
Source8: Windows_Shortcut_File_LNK_format.pdf
|
2024-04-23 07:01:33 +00:00
|
|
|
BuildRequires: %python_module devel
|
|
|
|
|
BuildRequires: %python_module setuptools
|
2021-06-09 10:38:36 +00:00
|
|
|
BuildRequires: c_compiler
|
|
|
|
|
BuildRequires: pkg-config
|
2022-01-22 23:18:07 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2024-04-23 07:01:33 +00:00
|
|
|
BuildRequires: pkgconfig(libbfio) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20240413
|
|
|
|
|
BuildRequires: pkgconfig(libcfile) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libclocale) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcnotify) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcpath) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcsplit) >= 20240414
|
|
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20240413
|
|
|
|
|
BuildRequires: pkgconfig(libfdatetime) >= 20240415
|
|
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20240415
|
|
|
|
|
BuildRequires: pkgconfig(libfole) >= 20240416
|
|
|
|
|
BuildRequires: pkgconfig(libfwps) >= 20240417
|
|
|
|
|
BuildRequires: pkgconfig(libfwsi) >= 20240423
|
|
|
|
|
BuildRequires: pkgconfig(libuna) >= 20240414
|
2022-01-22 23:18:07 +00:00
|
|
|
%python_subpackages
|
2022-11-27 11:27:07 +00:00
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%description
|
2014-08-14 12:58:09 +00:00
|
|
|
liblnk is a library and tools to access Windows Shortcut File (LNK) format files.
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
|
Summary: Library to access the Windows Shortcut File (LNK) format
|
2019-04-19 20:30:27 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 07:57:26 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
|
liblnk is a library to access Windows Shortcut File (LNK) files.
|
|
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
|
Summary: Tools to access the Windows Shortcut File (LNK) format
|
2019-04-19 20:30:27 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 07:57:26 +00:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
|
liblnk is a library to access Windows Shortcut File (LNK) files.
|
2021-06-09 10:38:36 +00:00
|
|
|
|
2013-04-19 07:57:26 +00:00
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for liblnk, a library to access Windows Shortcut Links
|
2021-06-09 10:38:36 +00:00
|
|
|
License: GFDL-1.3-or-later AND LGPL-3.0-or-later
|
2013-04-19 07:57:26 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %lname = %version
|
2023-01-03 16:18:40 +00:00
|
|
|
Requires: libbfio-devel
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
liblnk is a library to access Windows Shortcut File (LNK) files.
|
|
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
|
applications that want to make use of %name.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-06-09 10:38:36 +00:00
|
|
|
%autosetup -p1
|
2022-10-23 12:14:45 +00:00
|
|
|
cp %_sourcedir/*.pdf .
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%build
|
2022-01-22 23:18:07 +00:00
|
|
|
%{python_expand #
|
2022-08-09 08:09:32 +00:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
|
|
|
|
%configure --disable-static --enable-wide-character-type --enable-python \
|
|
|
|
|
PYTHON_VERSION="%{$python_bin_suffix}" \
|
|
|
|
|
LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 11:27:07 +00:00
|
|
|
grep ' '' ''local' config.log && exit 1
|
2021-06-09 10:38:36 +00:00
|
|
|
%make_build
|
2022-01-22 23:18:07 +00:00
|
|
|
%make_install DESTDIR="%_builddir/rt"
|
|
|
|
|
%make_build clean
|
|
|
|
|
}
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%install
|
2022-01-22 23:18:07 +00:00
|
|
|
mv %_builddir/rt/* %buildroot/
|
2024-04-30 08:34:30 +00:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2013-04-19 07:57:26 +00:00
|
|
|
|
2024-04-23 07:01:33 +00:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%files -n %lname
|
2020-12-30 03:45:49 +00:00
|
|
|
%license COPYING*
|
2013-04-19 07:57:26 +00:00
|
|
|
%_libdir/liblnk.so.*
|
|
|
|
|
|
2022-01-22 23:18:07 +00:00
|
|
|
%files -n %name-tools
|
2013-04-19 07:57:26 +00:00
|
|
|
%_bindir/lnk*
|
|
|
|
|
%_mandir/man1/lnkinfo.1*
|
|
|
|
|
|
2022-01-22 23:18:07 +00:00
|
|
|
%files -n %name-devel
|
2013-04-19 07:57:26 +00:00
|
|
|
%doc Windows_Shortcut_File_*.pdf
|
|
|
|
|
%_includedir/liblnk.h
|
|
|
|
|
%_includedir/liblnk/
|
|
|
|
|
%_libdir/liblnk.so
|
|
|
|
|
%_libdir/pkgconfig/liblnk.pc
|
|
|
|
|
%_mandir/man3/liblnk.3*
|
|
|
|
|
|
2022-01-22 23:18:07 +00:00
|
|
|
%files %python_files
|
2020-12-30 03:45:49 +00:00
|
|
|
%license COPYING*
|
2022-01-22 23:18:07 +00:00
|
|
|
%python_sitearch/pylnk.so
|
2013-04-19 07:57:26 +00:00
|
|
|
|
|
|
|
|
%changelog
|