2023-06-03 09:28:35 +02:00
|
|
|
%define name ${REPO_NAME}
|
|
|
|
%define version 1.0
|
|
|
|
%define release 1
|
2024-03-14 11:23:07 +01:00
|
|
|
Summary: This is what ${REPO_NAME} does.
|
2023-06-03 09:28:35 +02:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}%{?dist}
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
License: GNU GPL version 2
|
|
|
|
Group: SMEserver/addon
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
BuildArchitectures: noarch
|
|
|
|
BuildRequires: e-smith-devtools
|
|
|
|
Requires: e-smith-release >= 10.0
|
|
|
|
AutoReqProv: no
|
|
|
|
|
|
|
|
%description
|
|
|
|
${REPO_DESCRIPTION}
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
|
|
|
- Initial code - create RPM [SME:99999]
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2024-03-14 11:19:16 +01:00
|
|
|
%setup -q
|
2023-06-03 09:28:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
perl createlinks
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
(cd root ; find . -depth -print | cpio -dump $$RPM_BUILD_ROOT)
|
|
|
|
rm -f %{name}-%{version}-filelist
|
|
|
|
/sbin/e-smith/genfilelist $$RPM_BUILD_ROOT \
|
|
|
|
> %{name}-%{version}-filelist
|
|
|
|
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
|
|
|
#--dir <dir> 'attr(755,user,grp)' \
|
|
|
|
#--file <file> 'attr(755,root,root)' \
|
|
|
|
|
|
|
|
%clean
|
|
|
|
cd ..
|
|
|
|
rm -rf %{name}-%{version}
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
#uninstall
|
|
|
|
%files -f %{name}-%{version}-filelist
|
|
|
|
%defattr(-,root,root)
|