5e4303a5f3
- cleanup with spec-cleaner - get rid of %{name} and %{version} macros in the patch names OBS-URL: https://build.opensuse.org/request/show/482507 OBS-URL: https://build.opensuse.org/package/show/devel:tools/indent?expand=0&rev=9
84 lines
2.5 KiB
RPMSpec
84 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package indent
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: indent
|
|
Version: 2.2.10
|
|
Release: 0
|
|
Summary: Indent Formats C Source Code
|
|
License: GPL-3.0+
|
|
Group: Development/Languages/C and C++
|
|
Url: http://www.gnu.org/software/indent
|
|
Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
|
|
Source1: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
|
|
Source2: %{name}.keyring
|
|
Patch0: indent-2.2.10-nothing_is_void.diff
|
|
Patch1: indent-2.2.10-warnings.diff
|
|
Patch2: indent-2.2.10-lcall.diff
|
|
Patch3: indent-2.2.10-cdw.diff
|
|
Patch4: indent-2.2.10-man.diff
|
|
Patch5: indent-texi2html-5.0.patch
|
|
BuildRequires: makeinfo
|
|
BuildRequires: texi2html
|
|
Requires(pre): %{install_info_prereq}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Indent can be used to make code easier to read. It can also convert
|
|
from one style of writing C code to another. indent understands a
|
|
substantial amount of C syntax, but it also tries to cope with
|
|
incomplete and malformed syntax.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
%patch1
|
|
%patch2
|
|
%patch3 -p1
|
|
%patch4
|
|
%patch5 -p1
|
|
|
|
%build
|
|
%configure
|
|
# parallel builds are broken
|
|
make -j 1
|
|
|
|
%install
|
|
%make_install
|
|
# indent.html is installed with doc below
|
|
rm -f %{buildroot}%{_prefix}/doc/indent/indent.html %{buildroot}%{_bindir}/texinfo2man %{buildroot}/%{_infodir}/dir
|
|
mv %{buildroot}%{_datadir}/locale/zh_TW.Big5 %{buildroot}%{_datadir}/locale/zh_TW
|
|
%find_lang %{name}
|
|
|
|
%check
|
|
make %{?_smp_mflags} -C regression
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root)
|
|
%{_bindir}/*
|
|
%doc doc/indent.html
|
|
%{_infodir}/%{name}.info%{ext_info}
|
|
%{_mandir}/man1/indent.1%{ext_man}
|
|
|
|
%changelog
|