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
|
|
|
#
|
2017-03-24 16:47:45 +01:00
|
|
|
# Copyright (c) 2017 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.
|
|
|
|
|
2008-02-25 17:10:06 +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
|
2008-08-06 01:43:20 +02:00
|
|
|
Version: 2.2.10
|
2012-07-21 12:29:37 +02:00
|
|
|
Release: 0
|
2015-02-19 10:03:28 +01:00
|
|
|
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
|
2017-03-24 16:47:45 +01:00
|
|
|
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
|
2015-02-24 20:54:29 +01:00
|
|
|
Patch5: indent-texi2html-5.0.patch
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: texi2html
|
2015-02-19 10:03:28 +01:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2008-02-25 17:10:06 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
2008-08-06 01:43:20 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1
|
2007-01-16 00:17:24 +01:00
|
|
|
%patch2
|
2008-08-06 01:43:20 +02:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4
|
2015-02-24 20:54:29 +01:00
|
|
|
%patch5 -p1
|
2007-01-16 00:17:24 +01:00
|
|
|
|
|
|
|
%build
|
2015-02-19 10:03:28 +01:00
|
|
|
%configure
|
|
|
|
# parallel builds are broken
|
|
|
|
make -j 1
|
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
|
|
|
|
mv %{buildroot}%{_datadir}/locale/zh_TW.Big5 %{buildroot}%{_datadir}/locale/zh_TW
|
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
|
2007-01-16 00:17:24 +01:00
|
|
|
%defattr(-, root, root)
|
2008-02-25 17:10:06 +01:00
|
|
|
%{_bindir}/*
|
2007-01-16 00:17:24 +01:00
|
|
|
%doc doc/indent.html
|
2017-03-24 16:47:45 +01:00
|
|
|
%{_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
|