# spec file for phar-gui # # Copyright (c) 2014 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/3.0/ # # Please, preserve the changelog entries # %global gh_commit edbd631f37630839e6d05cf5e0adc4503a02cbb1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_date 20140417 %global gh_owner jgmdev %global gh_project phar-gui Name: %{gh_project} Summary: A graphical user interface for phar files Version: 1.0 %if 0%{?gh_date} Release: 0.1.%{gh_date}git%{gh_short}%{?dist} %else Release: 1%{?dist} %endif License: MIT Group: Development/Libraries URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{gh_commit}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch # To ensure we are not going to build where extension is missing BuildRequires: php-pecl(wxwidgets) Requires: php-cli Requires: php-phar Requires: php-spl Requires: php-pecl(wxwidgets) %description A graphical user interface developed with wxPHP to manage, extract and view the content of PHP phar files. The interface of the application was developed with wxFormBuilder and its source code can serve as an example of how to integrate graphical user interfaces designed with wxFormBuilder in your code. Features: - Create phar files - View the content of a phar - Extract all the content of a phar file - Extract single files in the phar - Add empty directories to a phar file - Add external files to a phar - Delete files from a phar - Modify phar file stub - Modify phar file alias - View the code of php files inside the phar by double clicking them. %prep %setup -q -n %{gh_project}-%{gh_commit} # Not usable as a launcher chmod -x main.php sed -e '/^#!/d' -i main.php # Create the launcher cat < - 1.0.0-0.1.20140417gitedbd631 - Initial packaging