Pavol Rusnak 2010-02-25 08:36:53 +00:00 committed by Git OBS Bridge
parent 849afd724e
commit 063ece5ae6

View File

@ -1,15 +1,13 @@
Name: coccinelle Name: coccinelle
Version: 0.2.1 Version: 0.2.1
Release: 0 Release: 0
Summary: Semantic patch utility Summary: Semantic patch utility
License: GPL2 License: GPL2
Group: Productivity/Text/Utilities Group: Productivity/Text/Utilities
URL: http://www.emn.fr/x-info/coccinelle/ URL: http://coccinelle.lip6.fr/
# repacked from http://coccinelle.lip6.fr/distrib/coccinelle-0.2.1.tgz
#Source: http://coccinelle.lip6.fr/distrib/coccinelle-0.2.1.tgz Source: %{name}-%{version}.tar.bz2
Source: %name-%version.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRoot: %_tmppath/%name-%version-build
BuildRequires: ncurses-devel ocaml python-devel BuildRequires: ncurses-devel ocaml python-devel
%description %description
@ -28,26 +26,20 @@ used (by us and others) for finding and fixing bugs in systems code.
%setup -q %setup -q
%build %build
./configure --prefix=%_prefix --opt # not autotools configure, don't use macro
./configure --prefix=%{_prefix} --opt
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
b="%buildroot" # We primarily want spatch
rm -Rf "$b" install -D -m 0755 spatch %{buildroot}%{_bindir}/spatch
mkdir "$b" install -D -m 0644 docs/spatch.1 %{buildroot}%{_mandir}/man1/spatch.1
#make install DESTDIR="%buildroot"
#
# We primarily want spatch.
#
mkdir -p "$b/%_bindir" "$b/%_mandir/man1"
install -pm0755 spatch "$b/%_bindir/"
install -pm0644 docs/spatch.1 "$b/%_mandir/man1/"
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%_bindir/*
%doc %_mandir/*/*
%doc authors.txt bugs.txt changes.txt copyright.txt credits.txt %doc authors.txt bugs.txt changes.txt copyright.txt credits.txt
%doc license.txt readme.txt %doc license.txt readme.txt
%doc %{_mandir}/man1/*
%{_bindir}/*
%changelog %changelog