67 lines
1.5 KiB
RPMSpec
67 lines
1.5 KiB
RPMSpec
%define buildroot %_topdir/BUILD
|
|
AutoProv: no
|
|
%undefine __find_provides
|
|
AutoReq: no
|
|
%undefine __find_requires
|
|
# Do not try autogenerate prereq/conflicts/obsoletes and check files
|
|
%undefine __check_files
|
|
%undefine __find_prereq
|
|
%undefine __find_conflicts
|
|
%undefine __find_obsoletes
|
|
# Be sure buildpolicy set to do nothing
|
|
%define __spec_install_post %{nil}
|
|
# Something that need for rpm-4.1
|
|
%define _missing_doc_files_terminate_build 0
|
|
|
|
#RPMVERSION: 4.18.2
|
|
|
|
#INSTPREFIXES: /
|
|
#OS: linux
|
|
#ARCH: noarch
|
|
BuildArch: noarch
|
|
Name: inform7
|
|
Version: 1.0.2
|
|
Release: 1
|
|
License: GPL
|
|
Group: none
|
|
Summary: АПК 'Знайка'
|
|
|
|
URL: https://arpa.net
|
|
Vendor: Home
|
|
Packager: developer
|
|
|
|
Source: %_topdir/SOURCE/%name-%version.tar.gz
|
|
|
|
Prefix: /
|
|
Requires: desktop-file-utils
|
|
Requires: dotnet-5.0
|
|
Requires: libX11-devel
|
|
Requires: libvlc-devel
|
|
#Requires: rpmlib(CompressedFileNames) <= 3.0.4-1
|
|
#Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
|
|
#suggest
|
|
#enhance
|
|
%description
|
|
АПК 'Знайка'
|
|
|
|
%prep
|
|
rm -rf %buildroot/*
|
|
%setup -c
|
|
cp -r $RPM_BUILD_ROOT/%name-%version/* $RPM_BUILD_ROOT/
|
|
|
|
%files
|
|
/usr
|
|
|
|
%post -p /bin/sh
|
|
#!/bin/sh
|
|
set -e
|
|
desktop-file-install /usr/local/share/applications/Inform7.desktop
|
|
update-desktop-database
|
|
ln -fs /usr/local/bin/Inform7/51-znayka-keyboard.rules /lib/udev/rules.d/
|
|
%postun -p /bin/sh
|
|
#!/bin/sh
|
|
set -e
|
|
update-desktop-database
|
|
unlink /lib/udev/rules.d/51-znayka-keyboard.rules
|
|
%changelog
|