mirror of
https://abf.rosa.ru/djam/peazip.git
synced 2025-02-23 14:02:54 +00:00
Automatic import for version 5.2.1-1
This commit is contained in:
commit
3710e6789e
3 changed files with 78 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
sources:
|
||||||
|
"peazip-5.2.1.src.zip": 358d4e62869a7568be90571457050f7b46aff0b3
|
2
altconf.txt
Normal file
2
altconf.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[alternative configuration's path: specify a location for bookmarks.txt, conf.txt and rnd (either absolute or relative path, use " and ' if needed); write "same" to use this path, "appdata" to use user's application data or home path]
|
||||||
|
appdata
|
74
peazip.spec
Normal file
74
peazip.spec
Normal file
|
@ -0,0 +1,74 @@
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
|
Summary: File and archive manager
|
||||||
|
Name: peazip
|
||||||
|
Version: 5.2.1
|
||||||
|
Release: 1
|
||||||
|
License: LGPLv3+
|
||||||
|
Group: File tools
|
||||||
|
Url: http://peazip.sourceforge.net/peazip-linux.html
|
||||||
|
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.src.zip
|
||||||
|
# configure to run in users home appdata
|
||||||
|
Source1: altconf.txt
|
||||||
|
BuildRequires: icoutils
|
||||||
|
BuildRequires: lazarus >= 1.0.8
|
||||||
|
BuildRequires: pkgconfig(gtk+-2.0)
|
||||||
|
Requires: p7zip
|
||||||
|
Requires: upx >= 3.09
|
||||||
|
|
||||||
|
%description
|
||||||
|
PeaZip is a free cross-platform file archiver that provides an unified portable
|
||||||
|
GUI for many Open Source technologies like 7-Zip, FreeArc, PAQ, UPX...
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc readme copying.txt
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*.png
|
||||||
|
%{_datadir}/applications/*.desktop
|
||||||
|
%{_libdir}/%{name}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}.src
|
||||||
|
chmod +w res/lang
|
||||||
|
|
||||||
|
%build
|
||||||
|
lazbuild -B project_peach.lpi project_pea.lpi project_gwrap.lpi
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
mkdir -p %{buildroot}%{_libdir}/%{name}
|
||||||
|
rm -rf res/icons
|
||||||
|
cp -r res %{buildroot}%{_libdir}/%{name}
|
||||||
|
cp %{SOURCE1} %{buildroot}%{_libdir}/%{name}/res
|
||||||
|
|
||||||
|
#install helper apps
|
||||||
|
mkdir -p %{buildroot}%{_libdir}/%{name}/res/{7z,upx}
|
||||||
|
ln -s %{_bindir}/7z %{buildroot}%{_libdir}/%{name}/res/7z
|
||||||
|
ln -s %{_bindir}/upx %{buildroot}%{_libdir}/%{name}/res/upx
|
||||||
|
|
||||||
|
install pea %{buildroot}%{_libdir}/%{name}/res
|
||||||
|
ln -s %{_libdir}/%{name}/res/pea %{buildroot}%{_bindir}/pea
|
||||||
|
install %{name} %{buildroot}%{_libdir}/%{name}
|
||||||
|
ln -s %{_libdir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
|
install pealauncher %{buildroot}%{_libdir}/%{name}/res
|
||||||
|
ln -s %{_libdir}/%{name}/res/pealauncher %{buildroot}%{_bindir}/pealauncher
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||||||
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
|
||||||
|
[Desktop Entry]
|
||||||
|
Encoding=UTF-8
|
||||||
|
Name=PeaZip
|
||||||
|
MimeType=application/x-gzip;application/x-lha;application/x-tar;application/x-tgz;application/x-tbz;application/x-tbz2;application/x-zip;application/zip;application/x-bzip;application/x-rar;application/x-tarz;application/x-archive;application/x-bzip2;application/x-jar;application/x-deb;application/x-ace;application/x-7z;application/x-arc;application/x-arj;application/x-compress;application/x-cpio;
|
||||||
|
Exec=%{name}
|
||||||
|
Icon=%{name}
|
||||||
|
Type=Application
|
||||||
|
Terminal=false
|
||||||
|
Categories=GTK;KDE;Utility;System;Archiving;
|
||||||
|
EOF
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_iconsdir}/hicolor/256x256/apps
|
||||||
|
icotool -x -i 1 -o %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png %{name}.ico
|
||||||
|
rm -rf %{buildroot}%{_libdir}/%{name}/res/icons
|
||||||
|
|
Loading…
Add table
Reference in a new issue