%define version 0.1.0 %define release 1 %define name ipasserelle-phpmyadmin Name: %{name} Version: %{version} Release: %{release}%{?dist} Summary: phpMyAdmin for iPasserelle Group: System Environment/Applications License: GPLv3+ URL: http://www.ipasserelle.com Source0: %{name}-%{version}.tar.gz BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildArch: noarch BuildRequires: e-smith-devtools Requires: ipasserelle-base Requires: smeserver-webapps-common >= 0.2.7 Requires: smeserver-lemonldap-ng >= 0.2.3 Requires: phpMyAdmin3 Obsoletes: phpmyadmin Obsoletes: smeserver-phpmyadmin %description phpMyAdmin integration for iPasserelle %changelog * Tue Oct 9 2012 Daniel Berteaud - 0.1.0-1.sme - Initial release %prep %setup -q %build perl ./createlinks %install rm -rf $RPM_BUILD_ROOT rm -f %{name}-%{version}-filelist (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist \ $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist echo "%doc CHANGELOG.git" >> %{name}-%{version}-%{release}-filelist %files -f %{name}-%{version}-%{release}-filelist %clean rm -rf $RPM_BUILD_ROOT %post %postun