Accepting request 233624 from devel:tools:compiler
- Cleanup with spec-cleaner - Sort out the %prep finds that are no longer needed. OBS-URL: https://build.opensuse.org/request/show/233624 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/re2c?expand=0&rev=24
This commit is contained in:
commit
66d97151e6
@ -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
|
||||
|
||||
|
34
re2c.spec
34
re2c.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -17,15 +17,15 @@
|
||||
|
||||
|
||||
Name: re2c
|
||||
BuildRequires: gcc-c++
|
||||
Version: 0.13.6
|
||||
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
|
||||
License: SUSE-Public-Domain
|
||||
Group: Development/Libraries/C and C++
|
||||
Url: http://re2c.org/
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
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
|
||||
terms of size and speed.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Dan Nuffer
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
find -type d -name .svn -print0 | xargs -r0 rm -rf
|
||||
find CHANGELOG lessons examples -type f -print0 \
|
||||
find lessons examples -type f -print0 \
|
||||
| xargs -r0 chmod -v a-x
|
||||
|
||||
%build
|
||||
%configure
|
||||
%{__make} %{?_smp_mflags} re2c
|
||||
make %{?_smp_mflags} re2c
|
||||
#regenerate file scanner.cc
|
||||
%{__rm} -f scanner.cc
|
||||
rm -f scanner.cc
|
||||
./re2c -g scanner.re > scanner.cc
|
||||
%{__rm} -f re2c scanner.o
|
||||
%{__make} %{?_smp_mflags}
|
||||
rm -f re2c scanner.o
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user