Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:X0F:PRES
p7zip-last
p7zip.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File p7zip.spec of Package p7zip-last
# # spec file for package p7zip # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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/ # # p7zip's GUI is nice... when it bothers to compile %define with_gui 1 %define with_kde 1 Name: p7zip Version: 15.14.1 Release: 0 Summary: 7-zip file compression program License: LGPL-2.1+ Group: Productivity/Archiving/Compression Url: http://p7zip.sourceforge.net/ Source: http://downloads.sourceforge.net/project/p7zip/p7zip/%{version}/p7zip_%{version}_src_all.tar.bz2 %if %with_gui Source1: 7zFM.desktop Recommends: p7zip-gui %endif %if %with_kde Source2: 7zG Suggests: p7zip-kde4 %endif BuildRequires: gcc-c++ BuildRequires: nasm BuildRequires: yasm BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1100 BuildRequires: fdupes %endif %description p7zip is a quick port of 7z.exe and 7za.exe (command line version of 7zip, see www.7-zip.org) for Unix. 7-Zip is a file archiver with highest compression ratio. Since 4.10, p7zip (like 7-zip) supports little-endian and big-endian machines. %if %with_gui %package -n p7zip-gui Summary: Official GUI for 7-zip file compression program Group: Productivity/Archiving/Compression BuildRequires: wxWidgets-3_0-devel BuildRequires: pkgconfig(gtk+-2.0) Supplements: p7zip %define _use_internal_dependency_generator 0 %define __find_requires %wx_requires %description -n p7zip-gui Best GUI for p7zip. %endif %if %with_kde %package -n p7zip-kde4 Summary: Official KDE4 GUI menu for 7-zip file compression program Group: Productivity/Archiving/Compression BuildRequires: kde4-filesystem BuildRequires: wxWidgets-3_0-devel BuildRequires: pkgconfig(gtk+-2.0) Requires: kde4-filesystem Requires: p7zip-gui Supplements: p7zip Supplements: p7zip-gui %description -n p7zip-kde4 KDE4 action menu for p7zip. %endif %prep %setup -q -n %{name}_%{version} %ifarch x86_64 cp makefile.linux_amd64_asm makefile.machine %else %ifarch ppc64 s390x cp makefile.linux_amd64 makefile.machine %else cp makefile.linux_any_cpu_gcc_4.X makefile.machine %endif %endif sed -i s,444,644,g install.sh sed -i s,555,755,g install.sh %if %{with buildgui} chmod 755 CPP/7zip/CMAKE/generate.sh rm GUI/kde4/p7zip_compress2.desktop %endif perl -pi -e 's/ -s / /' makefile.machine perl -pi -e 's/(\$\(LOCAL_FLAGS\))/'"%{optflags} -fno-strict-aliasing"' \\\n\t$1/' makefile.machine %if %with_gui # hack for GUI sed -i 's:/usr/lib/x86_64-linux-gnu/:%{_libdir}/:g' CPP/7zip/*/*/*.depend %endif %build %if %{with buildgui} pushd CPP/7zip/CMAKE/ ./generate.sh popd make %{?_smp_mflags} OPTFLAGS="%{optflags} -fno-strict-aliasing -Wl,-z,now -fPIC -pie" all2 7zG %else make %{?_smp_mflags} OPTFLAGS="%{optflags} -fno-strict-aliasing -Wl,-z,now -fPIC -pie" all2 %endif %if %with_gui make depend make -j1 7zFM %endif %if %with_kde make -j1 7zG %endif %install mkdir -p %{buildroot}/%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 ./install.sh \ %{_bindir} \ %{_libdir}/%{name} \ %{_mandir} \ %{_defaultdocdir}/%{name} \ %{buildroot} %if %with_gui # for GUI mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,32x32}/apps ln -s 7zCon.sfx %{buildroot}/%{_libdir}/%{name}/7z.sfx cp bin/7zFM %{buildroot}/%{_bindir} cp %{SOURCE1} %{buildroot}/%{_datadir}/applications/ cp -r GUI/Lang %{buildroot}/%{_libdir}/%{name}/ cp -r GUI/help %{buildroot}/%{_libdir}/%{name}/ cp GUI/p7zip_16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/p7zip.png cp GUI/p7zip_32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/p7zip.png %endif %if %with_kde mkdir -p %{buildroot}/%{_datadir}/kde4/services/ServiceMenus cp %{SOURCE2} %{buildroot}/%{_bindir} cp bin/7zG %{buildroot}/%{_libdir}/%{name}/ cp GUI/p7zipForFilemanager %{buildroot}/%{_bindir} cp GUI/kde4/*.desktop -t %{buildroot}/%{_datadir}/kde4/services/ServiceMenus %endif %if 0%{?suse_version} > 1100 %fdupes -s %{buildroot} %endif %check %if ! 0%{?qemu_user_space_build} make %{?_smp_mflags} test make %{?_smp_mflags} test_7z %endif %if %{with buildgui} %post gui %desktop_database_post %icon_theme_cache_post %postun gui %desktop_database_postun %icon_theme_cache_postun %endif %files %defattr(-,root,root) %dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/Codecs %{_libdir}/%{name}/[0-9a-z]* %{_libdir}/%{name}/Codecs/* %{_bindir}/7z %{_bindir}/7za %doc ChangeLog DOC/*.txt %{_mandir}/man1/* %if %{with buildgui} %exclude %{_libdir}/%{name}/7zG %endif %if %{with buildgui} %files gui %defattr(-,root,root) %{_bindir}/7zG %{_bindir}/p7zipForFilemanager %{_libdir}/%{name}/7zG %dir %{_libdir}/%{name}/Lang %{_libdir}/%{name}/Lang/*.txt %{_libdir}/%{name}/Lang/en.ttt %{_datadir}/icons/hicolor/*/apps/p7zip.png %dir %{_kf5_servicesdir}/ServiceMenus %{_kf5_servicesdir}/ServiceMenus/*.desktop %endif %if %with_gui %files -n p7zip-gui %defattr(-,root,root) %{_bindir}/7zFM %dir %{_libdir}/%{name}/Lang %{_libdir}/%{name}/Lang/* %dir %{_libdir}/%{name}/help %{_libdir}/%{name}/help/* %{_datadir}/icons/hicolor/16x16/apps/p7zip.png %{_datadir}/icons/hicolor/32x32/apps/p7zip.png %{_datadir}/applications/7zFM.desktop %endif %if %with_kde %files -n p7zip-kde4 %defattr(-,root,root) %{_bindir}/7zG %{_libdir}/%{name}/7zG %{_bindir}/p7zipForFilemanager %{_datadir}/kde4/services/ServiceMenus/*.desktop %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor