procmail/procmail.spec

81 lines
2.2 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 11:14:10 -04:00
# hardened build if not overridden
%{!?_hardened_build:%global _hardened_build 1}
%if %{?_hardened_build}%{!?_hardened_build:0}
%global hardened_flags -pie -Wl,-z,relro,-z,now
%endif
2019-11-06 19:47:59 +08:00
Name: procmail
2023-07-24 16:02:02 +08:00
Version: 3.24
Release: 1
2019-11-06 19:47:59 +08:00
Summary: A program for filtering, sorting and storing email
2022-07-05 08:14:53 +00:00
License: GPLv2+ or Artistic-1.0-Perl
2023-07-24 16:02:02 +08:00
URL: https://github.com/BuGlessRB/%{name}
Source0: https://github.com/BuGlessRB/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
2019-09-30 11:14:10 -04:00
Source1: procmailrc
2023-07-24 16:02:02 +08:00
Patch0: procmail-3.24-rhconfig.patch
2019-09-30 11:14:10 -04:00
Patch1: procmail-3.15.1-man.patch
2023-07-24 16:02:02 +08:00
Patch2: procmail-3.22-truncate.patch
Patch3: procmail-3.24-ipv6.patch
BuildRequires: make gcc
2019-09-30 11:14:10 -04:00
%description
%{summary},It can be used both on mail clients and mail servers. It can be
used to filter out spam, checking for viruses, to send automatic replies, etc.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:14:10 -04:00
find examples -type f | xargs chmod 644
%build
make RPM_OPT_FLAGS="$(getconf LFS_CFLAGS)" autoconf.h
%make_build
%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_bindir} ${RPM_BUILD_ROOT}%{_mandir}/man{1,5}
make \
BASENAME=${RPM_BUILD_ROOT}%{_prefix} MANDIR=${RPM_BUILD_ROOT}%{_mandir} \
install
cp -p %{SOURCE1} telsas_procmailrc
%files
%defattr(-,root,root)
2023-07-24 16:02:02 +08:00
%doc Artistic
2019-11-06 19:47:59 +08:00
%license COPYING
2019-09-30 11:14:10 -04:00
%{_bindir}/*
%files help
%defattr(-,root,root)
%doc FAQ FEATURES HISTORY README KNOWN_BUGS examples telsas_procmailrc
%{_mandir}/man1/*.1.gz
%{_mandir}/man5/*.5.gz
%changelog
2023-07-24 16:02:02 +08:00
* Mon Jul 24 2023 yanglu <yanglu72@h-partners.com> - 3.24-1
- DESC:Update procmail version to 3.24
2022-07-05 08:14:53 +00:00
* Tue Jul 5 2022 Chenyx <chenyixiong3@huawei.com> - 3.22-53
- License compliance rectification
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 3.22-52
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-09-10 18:36:23 +08:00
* Thu Sep 10 2020 hanzhijun<hanzhijun1@huawei.com> - 3.22-51
- fix source url problem
2019-11-06 19:47:59 +08:00
* Mon Oct 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.22-50
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the location of COPYING
2019-09-30 11:14:10 -04:00
* Mon Sep 9 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.22-49
- Package init