antiword/antiword.spec

75 lines
2.3 KiB
RPMSpec

Name: antiword
Version: 0.37
Release: 6mamba
Summary: Antiword is a free MS Word reader for Linux and RISC OS
Group: Applications/Text
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.winfield.demon.nl/
Source: http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
Patch: %{name}-0.37-can_2005_3126.patch
Patch1: antiword-0.37-fix-flags.patch
Patch2: antiword-0.37-bGetPPS-Prevent-buffer-overflow-of-atPPSlist-_szName.patch
Patch3: antiword-0.37-manpage-hyphen-to-minus.patch
Patch4: antiword-0.37-docx.patch
Patch5: antiword-0.37-remove-cjb.net-references.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%description
Antiword is a free MS Word reader for Linux and RISC OS.
%debug_package
%prep
%setup -q
%patch -p1 -b .can_2005_3126
%patch1 -p1 -b .fix-flags
%patch2 -p1 -b .bGetPPS-Prevent-buffer-overflow-of-atPPSlist-_szName
%patch3 -p1 -b .manpage-hyphen-to-minus
%patch4 -p1 -b .docx
%patch5 -p1 -b .remove-cjb.net-references
%build
%make \
LOCAL_INSTALL_DIR=%{_bindir} \
LOCAL_RESOURCES_DIR=%{_datadir}/antiword
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall \
LOCAL_INSTALL_DIR=%{buildroot}%{_bindir} \
LOCAL_RESOURCES_DIR=%{buildroot}%{_datadir}/antiword
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/antiword
%attr(0755,root,root) %{_bindir}/kantiword
%dir %{_datadir}/antiword
%{_datadir}/antiword/*
%changelog
* Fri Jan 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.37-6mamba
- added debug package and patches from Fedora
* Mon Aug 19 2013 Automatic Build System <autodist@mambasoft.it> 0.37-5mamba
- automatic rebuild by autodist
* Sat Jul 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.37-4mamba
- specfile updated
* Wed Jan 18 2006 Davide Madrisan <davide.madrisan@qilinux.it> 0.37-3qilnx
- security fix CAN-2005-3126 (qibug#113)
* Thu Jan 12 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.37-2qilnx
- specfile fixed
* Tue Dec 27 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 0.37-1qilnx
- package created by autospec