- Cleanup with spec-cleaner

- Sort out the %prep finds that are no longer needed.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/re2c?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal 2014-05-12 15:04:11 +00:00 committed by Git OBS Bridge
parent a5abf0ff06
commit 2848130b64
2 changed files with 18 additions and 22 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 12 15:03:28 UTC 2014 - tchvatal@suse.com
- Cleanup with spec-cleaner
- Sort out the %prep finds that are no longer needed.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 3 03:10:02 UTC 2013 - crrodriguez@opensuse.org Sat Aug 3 03:10:02 UTC 2013 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package re2c # spec file for package re2c
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,15 +17,15 @@
Name: re2c Name: re2c
BuildRequires: gcc-c++
Version: 0.13.6 Version: 0.13.6
Release: 0 Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://re2c.org/
Source: %{name}-%{version}.tar.gz
Summary: Tool for generating C-based recognizers from regular expressions Summary: Tool for generating C-based recognizers from regular expressions
License: SUSE-Public-Domain License: SUSE-Public-Domain
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://re2c.org/
Source: %{name}-%{version}.tar.gz
BuildRequires: gcc-c++
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
re2c is a tool for writing fast and flexible lexers. Unlike other such re2c is a tool for writing fast and flexible lexers. Unlike other such
@ -34,35 +34,25 @@ regular expressions. This makes it suitable for a wide variety of
applications. The generated scanners approach hand-crafted ones in applications. The generated scanners approach hand-crafted ones in
terms of size and speed. terms of size and speed.
Authors:
--------
Dan Nuffer
%prep %prep
%setup -q %setup -q
find -type d -name .svn -print0 | xargs -r0 rm -rf find lessons examples -type f -print0 \
find CHANGELOG lessons examples -type f -print0 \
| xargs -r0 chmod -v a-x | xargs -r0 chmod -v a-x
%build %build
%configure %configure
%{__make} %{?_smp_mflags} re2c make %{?_smp_mflags} re2c
#regenerate file scanner.cc #regenerate file scanner.cc
%{__rm} -f scanner.cc rm -f scanner.cc
./re2c -g scanner.re > scanner.cc ./re2c -g scanner.re > scanner.cc
%{__rm} -f re2c scanner.o rm -f re2c scanner.o
%{__make} %{?_smp_mflags} make %{?_smp_mflags}
%check %check
%{__make} test make test %{?_smp_mflags}
%install %install
%makeinstall make DESTDIR=%{buildroot} install %{?_smp_mflags}
%clean
%{__rm} -rf %{buildroot}
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)