Accepting request 83081 from home:jengelh:bl-c

- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel building

OBS-URL: https://build.opensuse.org/request/show/83081
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/check?expand=0&rev=15
This commit is contained in:
Vincent Untz 2011-09-21 15:39:18 +00:00 committed by Git OBS Bridge
parent 023c68ccfe
commit 80a129f1f3
2 changed files with 16 additions and 7 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Sat Sep 17 22:50:08 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel building
-------------------------------------------------------------------
Sat Apr 24 11:38:15 UTC 2010 - coolo@novell.com
- buildrequire pkg-config to fix provides
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 2 08:44:49 UTC 2010 - puzel@novell.com Tue Feb 2 08:44:49 UTC 2010 - puzel@novell.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package check (Version 0.9.8) # spec file for package check
# #
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 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
@ -19,7 +19,7 @@
Name: check Name: check
Version: 0.9.8 Version: 0.9.8
Release: 2 Release: 3
License: LGPLv2.1+ License: LGPLv2.1+
Summary: Unit Test Framework for C Summary: Unit Test Framework for C
Url: http://check.sourceforge.net/ Url: http://check.sourceforge.net/
@ -27,6 +27,7 @@ Group: Development/Libraries/C and C++
Source: %{name}-%{version}.tar.bz2 Source: %{name}-%{version}.tar.bz2
Source99: baselibs.conf Source99: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
%description %description
Check is a unit test framework for C. It features a simple interfacefor Check is a unit test framework for C. It features a simple interfacefor
@ -60,16 +61,13 @@ export CFLAGS="%{optflags} -std=gnu99"
export CXXFLAGS="%{optflags} -std=gnu99" export CXXFLAGS="%{optflags} -std=gnu99"
export FFLAGS="%{optflags} -std=gnu99" export FFLAGS="%{optflags} -std=gnu99"
%configure --disable-static --with-pic %configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name} make %{?_smp_mflags} docdir=%{_docdir}/%{name}
%install %install
%makeinstall docdir=%{_docdir}/%{name} %makeinstall docdir=%{_docdir}/%{name}
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO %{buildroot}%{_docdir}/%{name} %{__cp} -a AUTHORS COPYING.LESSER THANKS TODO %{buildroot}%{_docdir}/%{name}
%{__rm} -f %{buildroot}%{_libdir}/*.la %{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%post devel %post devel