%define package 7zip %define version 15.14 %define release 1 Name: wpkg-%{package} Version: %{version} Release: %{release}%{?dist} Summary: %{package} for WPKG on iPasserelle Group: System/Softwares URL: http://www.ipasserelle.com Source0: %{name}-%{version}.tar.gz License: misc BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: unix2dos Requires: ipasserelle-gp %description %{package} for WPKG on iPasserelle %prep %setup -q -n %{name}-%{version} %build unix2dos packages/* unix2dos softwares/reg.bat %install /bin/rm -rf %{buildroot} mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package} cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}/ cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/ %clean /bin/rm -rf %{buildroot} %files %defattr(-,root,root) %doc CHANGELOG.git /home/e-smith/files/shares/wpkg/files/ %changelog * Wed Jan 13 2016 Daniel Berteaud - 15.14-1 - Update to 15.14 * Mon Nov 23 2015 Daniel Berteaud - 15.12 - Update to 15.12 * Thu Sep 6 2012 Daniel Berteaud - 9.20-2 - Add an small unzip.bat script * Thu Jun 7 2012 Daniel Berteaud - 9.20-1 - Change version scheme * Thu May 31 2012 Daniel Berteaud - initial release with 7zip 9.20