From 9967f9a71abe6fee4f773a024567893ea3bfdf1b30f5d7fabebe2aacc217a8d1 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 25 Feb 2008 16:10:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/indent?expand=0&rev=2 --- indent.changes | 5 +++ indent.spec | 106 ++++++++++++++++++++++++------------------------- 2 files changed, 57 insertions(+), 54 deletions(-) diff --git a/indent.changes b/indent.changes index 81be64e..f838a6c 100644 --- a/indent.changes +++ b/indent.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 24 18:10:35 CET 2008 - crrodriguez@suse.de + +- use find_lang macro + ------------------------------------------------------------------- Wed Jan 25 21:36:37 CET 2006 - mls@suse.de diff --git a/indent.spec b/indent.spec index 5fc87e3..7b95a49 100644 --- a/indent.spec +++ b/indent.spec @@ -1,52 +1,48 @@ # # spec file for package indent (Version 2.2.9) # -# Copyright (c) 2004 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # -# Please submit bugfixes or comments via http://www.suse.de/feedback/ +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild -Name: indent -License: GPL -Group: Development/Languages/C and C++ -Autoreqprov: on -Version: 2.2.9 -Release: 193 -Source: %{name}-%{version}.tar.bz2 -Patch: %{name}-%{version}-overflow.patch -Patch1: %{name}-%{version}-nothing_is_void.diff -Patch2: %{name}-%{version}-warnings.diff -URL: ftp://ftp.gnu.org/pub/gnu/indent/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Summary: Indent Formats C Source Code -PreReq: %install_info_prereq + +Name: indent +License: GPL v2 or later +Group: Development/Languages/C and C++ +AutoReqProv: on +Version: 2.2.9 +Release: 288 +Source: %{name}-%{version}.tar.bz2 +Patch: %{name}-%{version}-overflow.patch +Patch1: %{name}-%{version}-nothing_is_void.diff +Patch2: %{name}-%{version}-warnings.diff +Url: ftp://ftp.gnu.org/pub/gnu/indent/ +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: Indent Formats C Source Code +PreReq: %install_info_prereq %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. +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. -%define prefix /usr %prep -%setup +%setup -q %patch %patch1 -p1 %patch2 %build -CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ - --mandir=%{_mandir} \ - --prefix=%{prefix} \ - --infodir=%{_infodir} \ - --sysconfdir=%{_sysconfdir} +export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" +%configure --with-pic make %install @@ -56,9 +52,10 @@ rm $RPM_BUILD_ROOT/usr/doc/indent/indent.html rm $RPM_BUILD_ROOT/usr/bin/texinfo2man mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \ $RPM_BUILD_ROOT/usr/share/locale/zh_TW +%find_lang %{name} %clean -rm -rf $RPM_BUILD_ROOT; +rm -rf $RPM_BUILD_ROOT %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz @@ -66,57 +63,58 @@ rm -rf $RPM_BUILD_ROOT; %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%files +%files -f %{name}.lang %defattr(-, root, root) -/usr/bin/* +%{_bindir}/* %doc doc/indent.html %{_infodir}/indent.info*.gz %{_mandir}/man1/indent.1.gz -/usr/share/locale/*/LC_MESSAGES/*.mo -%changelog -n indent -* Wed Jan 25 2006 - mls@suse.de +%changelog +* Sun Feb 24 2008 crrodriguez@suse.de +- use find_lang macro +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Mon Dec 13 2004 - sndirsch@suse.de +* Tue Dec 14 2004 sndirsch@suse.de - moved chinese mo file to correct directory (Bug #47262) -* Wed Sep 15 2004 - aj@suse.de +* Wed Sep 15 2004 aj@suse.de - Fix compiler warnings. -* Wed Jun 30 2004 - tcrhak@suse.cz +* Wed Jun 30 2004 tcrhak@suse.cz - removed texinfo2man from the file list (bug #42247) -* Fri Apr 16 2004 - mmj@suse.de +* Fri Apr 16 2004 mmj@suse.de - Functions that are void should be declared as such -* Thu Mar 04 2004 - tcrhak@suse.cz +* Thu Mar 04 2004 tcrhak@suse.cz - security fix for overflow (bug #33790) -* Sat Jan 10 2004 - adrian@suse.de +* Sat Jan 10 2004 adrian@suse.de - build as user -* Wed May 14 2003 - mmj@suse.de +* Wed May 14 2003 mmj@suse.de - Remove unwanted files -* Thu Apr 24 2003 - ro@suse.de +* Thu Apr 24 2003 ro@suse.de - fix install_info --delete call and move from preun to postun -* Thu Feb 13 2003 - mmj@suse.de +* Thu Feb 13 2003 mmj@suse.de - Add %%install_info macro [#23428] -* Mon Jan 06 2003 - tcrhak@suse.cz +* Mon Jan 06 2003 tcrhak@suse.cz - update to version 2.2.9 -* Sat Jul 13 2002 - tcrhak@suse.cz +* Sat Jul 13 2002 tcrhak@suse.cz - update to version 2.2.8a -* Thu Oct 04 2001 - schwab@suse.de +* Thu Oct 04 2001 schwab@suse.de - Don't run automake/autoconf. -* Sun Dec 03 2000 - smid@suse.cz +* Sun Dec 03 2000 smid@suse.cz - New version 2.2.6 -* Thu Feb 10 2000 - kukuk@suse.de +* Thu Feb 10 2000 kukuk@suse.de - Update to 2.2.5 - Move /usr/{info,man} -> /usr/share/{info,man} -* Sun Oct 10 1999 - kukuk@suse.de +* Sun Oct 10 1999 kukuk@suse.de - Update to version 2.2.3 - Use BuildRoot -* Mon Sep 13 1999 - bs@suse.de +* Mon Sep 13 1999 bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. -* Tue Sep 07 1999 - kukuk@suse.de +* Tue Sep 07 1999 kukuk@suse.de - Add make to build section -* Thu Aug 26 1999 - kukuk@suse.de +* Thu Aug 26 1999 kukuk@suse.de - Update to version 2.2.0 -* Tue Feb 23 1999 - ro@suse.de +* Tue Feb 23 1999 ro@suse.de - dont redefine memcpy for glibc-2.1 -* Thu Jan 21 1999 - ro@suse.de +* Thu Jan 21 1999 ro@suse.de - no m486 on alpha - include in indent.c