Spec file update

tags/smeserver-expire-accounts-0.1.7-1 0.1.1_el5
Daniel Berteaud 9 years ago
parent 15fa733e73
commit 1681006fe3
  1. 25
      smeserver-expire-accounts.spec

@ -1,5 +1,5 @@
%define version 0.0.1 %define version 0.1.0
%define release 0.beta4 %define release 1
%define name smeserver-expire-accounts %define name smeserver-expire-accounts
@ -8,7 +8,7 @@ Name: %{name}
Version: %{version} Version: %{version}
Release: %{release}%{?dist} Release: %{release}%{?dist}
License: GPL License: GPL
Group: Networking/Daemons Group: Applications/System
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
@ -19,26 +19,32 @@ BuildRequires: gettext
Requires: e-smith-base >= 5.2.0 Requires: e-smith-base >= 5.2.0
Requires: qmail Requires: qmail
Requires: qmail-autoresponder Requires: qmail-autoresponder
Requires: perl(DateTime)
Requires: pbzip2
Requires: /bin/tar
%description %description
With this, you can set an expiration date for user accounts With this, you can set an expiration date for user accounts
%changelog
* Thu Jan 14 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme
- Initial release
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%build %build
#perl createlinks perl createlinks
/sbin/e-smith/generate-lexicons /sbin/e-smith/generate-lexicons
%{__mkdir_p} root/home/e-smith/files/archives/users
%if 0%{?rhel} <= 5
%{__mkdir_p} root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/
mv root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/expireaccounts.pm \
root/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/
%endif
%install %install
/bin/rm -rf $RPM_BUILD_ROOT /bin/rm -rf $RPM_BUILD_ROOT
(cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) (cd root; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
/bin/rm -f %{name}-%{version}-filelist /bin/rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
--dir home/e-smith/files/archives/users 'attr(0750,root,root)' \
> %{name}-%{version}-filelist > %{name}-%{version}-filelist
%files -f %{name}-%{version}-filelist %files -f %{name}-%{version}-filelist
@ -53,3 +59,6 @@ rm -rf $RPM_BUILD_ROOT
%preun %preun
%changelog
* Wed Mar 30 2016 Daniel Berteaud <daniel@firewall-services.com> - 0.1.0-1.sme
- Initial release

Loading…
Cancel
Save