63 lines
1.4 KiB
RPMSpec
63 lines
1.4 KiB
RPMSpec
|
%global git_date 20230323
|
||
|
%global git_hash 67bca73
|
||
|
%global git_ver 1.5.1
|
||
|
%global rel 2
|
||
|
%global src_name %{name}-%{git_date}-%{git_hash}.tar.xz
|
||
|
|
||
|
Name: unshield
|
||
|
Version: %{git_ver}^%{git_date}g%{git_hash}
|
||
|
Release: %{rel}%{?dist}
|
||
|
Summary: Install InstallShield applications on a Pocket PC
|
||
|
|
||
|
License: MIT
|
||
|
URL: https://github.com/twogood/unshield
|
||
|
Source0: %{url}/%{src_name}
|
||
|
|
||
|
BuildRequires: zlib-devel
|
||
|
BuildRequires: cmake
|
||
|
BuildRequires: gcc
|
||
|
|
||
|
%description
|
||
|
This tool allows the extraction of InstallShield format cabinet files (which
|
||
|
are different from Microsoft cabinet files). It was initially developed as a
|
||
|
part of the SynCE project to aid with installing applications for Pocket PC
|
||
|
devices, which were often contained in InstallShield installers, but these days
|
||
|
that is rather less likely to be the primary use case.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Files needed for software development with %{name}
|
||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
||
|
%description devel
|
||
|
The %{name}-devel package contains the files needed for development with
|
||
|
%{name}.
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{name}
|
||
|
|
||
|
%build
|
||
|
%cmake
|
||
|
%cmake_build
|
||
|
|
||
|
%install
|
||
|
%cmake_install
|
||
|
|
||
|
%ldconfig_scriptlets
|
||
|
|
||
|
%files
|
||
|
%license LICENSE
|
||
|
%doc README.md
|
||
|
%{_bindir}/unshield
|
||
|
%{_mandir}/man1/unshield.1.*
|
||
|
%{_libdir}/libunshield.so.0
|
||
|
%{_libdir}/libunshield.so.0.0.0
|
||
|
|
||
|
%files devel
|
||
|
%{_libdir}/libunshield.so
|
||
|
%{_includedir}/libunshield.h
|
||
|
%{_libdir}/pkgconfig/libunshield.pc
|
||
|
|
||
|
%changelog
|
||
|
%autochangelog
|
||
|
|