Accepting request 286688 from home:pluskalm:branches:devel:tools

- Use url for source
- Add gpg signature
- Cleanup spec file with spec cleaner
- Remove useless configure option --with-pic

OBS-URL: https://build.opensuse.org/request/show/286688
OBS-URL: https://build.opensuse.org/package/show/devel:tools/indent?expand=0&rev=5
This commit is contained in:
2015-02-19 09:03:28 +00:00
committed by Git OBS Bridge
parent 48a5737f15
commit 9b7c52fcbe
6 changed files with 67 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package indent
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -17,30 +17,30 @@
Name: indent
BuildRequires: texinfo
Version: 2.2.10
Release: 0
Source: %{name}-%{version}.tar.bz2
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: %{name}-%{version}-nothing_is_void.diff
Patch1: %{name}-%{version}-warnings.diff
Patch2: %{name}-%{version}-lcall.diff
Patch3: %{name}-%{version}-cdw.diff
Patch4: %{name}-%{version}-man.diff
Url: http://www.gnu.org/software/indent
BuildRequires: texinfo
Requires(pre): %{install_info_prereq}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Indent Formats C Source Code
License: GPL-3.0+
Group: Development/Languages/C and C++
PreReq: %install_info_prereq
%description
indent can be used to make code easier to read. It can also convert
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
@@ -50,24 +50,19 @@ incomplete and malformed syntax.
%patch4
%build
%configure --with-pic
# Parallel make doesn't work
make
%configure
# parallel builds are broken
make -j 1
%install
make DESTDIR=$RPM_BUILD_ROOT install
# indent.html is installed with %doc below
rm -f $RPM_BUILD_ROOT/usr/doc/indent/indent.html $RPM_BUILD_ROOT%{_bindir}/texinfo2man $RPM_BUILD_ROOT/%{_infodir}/dir
mv $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW.Big5 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW
make DESTDIR=%{buildroot} install %{?_smp_mflags}
# 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
echo =============== TEST BEGIN ===============
make -C regression
echo =============== TEST END ===============
%clean
rm -rf $RPM_BUILD_ROOT
make %{?_smp_mflags} -C regression
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz