OBS User unknown 2008-02-25 16:10:06 +00:00 committed by Git OBS Bridge
parent 8ce8c70573
commit 9967f9a71a
2 changed files with 57 additions and 54 deletions

View File

@ -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 Wed Jan 25 21:36:37 CET 2006 - mls@suse.de

View File

@ -1,52 +1,48 @@
# #
# spec file for package indent (Version 2.2.9) # 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 # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # 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 # norootforbuild
Name: indent
License: GPL Name: indent
Group: Development/Languages/C and C++ License: GPL v2 or later
Autoreqprov: on Group: Development/Languages/C and C++
Version: 2.2.9 AutoReqProv: on
Release: 193 Version: 2.2.9
Source: %{name}-%{version}.tar.bz2 Release: 288
Patch: %{name}-%{version}-overflow.patch Source: %{name}-%{version}.tar.bz2
Patch1: %{name}-%{version}-nothing_is_void.diff Patch: %{name}-%{version}-overflow.patch
Patch2: %{name}-%{version}-warnings.diff Patch1: %{name}-%{version}-nothing_is_void.diff
URL: ftp://ftp.gnu.org/pub/gnu/indent/ Patch2: %{name}-%{version}-warnings.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: ftp://ftp.gnu.org/pub/gnu/indent/
Summary: Indent Formats C Source Code BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq Summary: Indent Formats C Source Code
PreReq: %install_info_prereq
%description %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. from one style of writing C code to another. indent understands a
substantial amount of C syntax, but it also tries to cope with
indent understands a substantial amount of C syntax, but it also tries incomplete and malformed syntax.
to cope with incomplete and malformed syntax.
%define prefix /usr
%prep %prep
%setup %setup -q
%patch %patch
%patch1 -p1 %patch1 -p1
%patch2 %patch2
%build %build
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ export CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
--mandir=%{_mandir} \ %configure --with-pic
--prefix=%{prefix} \
--infodir=%{_infodir} \
--sysconfdir=%{_sysconfdir}
make make
%install %install
@ -56,9 +52,10 @@ rm $RPM_BUILD_ROOT/usr/doc/indent/indent.html
rm $RPM_BUILD_ROOT/usr/bin/texinfo2man rm $RPM_BUILD_ROOT/usr/bin/texinfo2man
mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \ mv $RPM_BUILD_ROOT/usr/share/locale/zh_TW.Big5 \
$RPM_BUILD_ROOT/usr/share/locale/zh_TW $RPM_BUILD_ROOT/usr/share/locale/zh_TW
%find_lang %{name}
%clean %clean
rm -rf $RPM_BUILD_ROOT; rm -rf $RPM_BUILD_ROOT
%post %post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
@ -66,57 +63,58 @@ rm -rf $RPM_BUILD_ROOT;
%postun %postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files %files -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
/usr/bin/* %{_bindir}/*
%doc doc/indent.html %doc doc/indent.html
%{_infodir}/indent.info*.gz %{_infodir}/indent.info*.gz
%{_mandir}/man1/indent.1.gz %{_mandir}/man1/indent.1.gz
/usr/share/locale/*/LC_MESSAGES/*.mo
%changelog -n indent %changelog
* Wed Jan 25 2006 - mls@suse.de * Sun Feb 24 2008 crrodriguez@suse.de
- use find_lang macro
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires - 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) - 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. - 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) - 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 - 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) - security fix for overflow (bug #33790)
* Sat Jan 10 2004 - adrian@suse.de * Sat Jan 10 2004 adrian@suse.de
- build as user - build as user
* Wed May 14 2003 - mmj@suse.de * Wed May 14 2003 mmj@suse.de
- Remove unwanted files - 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 - 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] - 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 - 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 - 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. - Don't run automake/autoconf.
* Sun Dec 03 2000 - smid@suse.cz * Sun Dec 03 2000 smid@suse.cz
- New version 2.2.6 - New version 2.2.6
* Thu Feb 10 2000 - kukuk@suse.de * Thu Feb 10 2000 kukuk@suse.de
- Update to 2.2.5 - Update to 2.2.5
- Move /usr/{info,man} -> /usr/share/{info,man} - 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 - Update to version 2.2.3
- Use BuildRoot - 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. - 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 - 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 - 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 - 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 - no m486 on alpha
- include <string.h> in indent.c - include <string.h> in indent.c