2007-01-16 00:17:24 +01:00
|
|
|
#
|
2012-07-21 12:29:37 +02:00
|
|
|
# spec file for package indent
|
2007-01-16 00:17:24 +01:00
|
|
|
#
|
2018-12-17 08:56:17 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:17:24 +01:00
|
|
|
#
|
2008-08-06 01:43:20 +02:00
|
|
|
# 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.
|
|
|
|
|
2018-12-17 10:41:56 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:17:24 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-02-25 17:10:06 +01:00
|
|
|
Name: indent
|
2018-12-17 08:56:17 +01:00
|
|
|
Version: 2.2.12
|
2012-07-21 12:29:37 +02:00
|
|
|
Release: 0
|
2018-12-17 08:56:17 +01:00
|
|
|
Summary: Indentation of Source Code in various styles
|
|
|
|
License: GPL-3.0-or-later
|
2015-02-19 10:03:28 +01:00
|
|
|
Group: Development/Languages/C and C++
|
2018-12-17 08:56:17 +01:00
|
|
|
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
|
2018-12-17 10:41:56 +01:00
|
|
|
Source2: %{name}.keyring
|
2015-02-24 20:54:29 +01:00
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: texi2html
|
2015-02-19 10:03:28 +01:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2007-01-16 00:17:24 +01:00
|
|
|
|
2008-02-25 17:10:06 +01:00
|
|
|
%description
|
2015-02-19 10:03:28 +01:00
|
|
|
Indent can be used to make code easier to read. It can also convert
|
2008-02-25 17:10:06 +01:00
|
|
|
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.
|
2007-01-16 00:17:24 +01:00
|
|
|
|
|
|
|
%prep
|
2008-02-25 17:10:06 +01:00
|
|
|
%setup -q
|
2007-01-16 00:17:24 +01:00
|
|
|
|
|
|
|
%build
|
2015-02-19 10:03:28 +01:00
|
|
|
%configure
|
2017-12-15 15:00:53 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:17:24 +01:00
|
|
|
|
|
|
|
%install
|
2017-03-24 16:47:45 +01:00
|
|
|
%make_install
|
2015-02-19 10:03:28 +01:00
|
|
|
# indent.html is installed with doc below
|
|
|
|
rm -f %{buildroot}%{_prefix}/doc/indent/indent.html %{buildroot}%{_bindir}/texinfo2man %{buildroot}/%{_infodir}/dir
|
2008-02-25 17:10:06 +01:00
|
|
|
%find_lang %{name}
|
2007-01-16 00:17:24 +01:00
|
|
|
|
2008-08-06 01:43:20 +02:00
|
|
|
%check
|
2015-02-19 10:03:28 +01:00
|
|
|
make %{?_smp_mflags} -C regression
|
2007-01-16 00:17:24 +01:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2015-02-24 20:54:29 +01:00
|
|
|
%preun
|
2007-01-16 00:17:24 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-02-25 17:10:06 +01:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%{_bindir}/*
|
2018-12-17 08:56:17 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc NEWS ChangeLog doc/indent.html
|
|
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
|
|
|
%{_mandir}/man1/indent.1%{?ext_man}
|
2007-01-16 00:17:24 +01:00
|
|
|
|
2008-02-25 17:10:06 +01:00
|
|
|
%changelog
|