diff --git a/re2c.changes b/re2c.changes index fbe3f38..4e31697 100644 --- a/re2c.changes +++ b/re2c.changes @@ -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 diff --git a/re2c.spec b/re2c.spec index 2c98f17..053841a 100644 --- a/re2c.spec +++ b/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,-)