Accepting request 294909 from GNOME:Factory
- Implement shared library naming guidelines: move the library to libcheck0. The new package obsoletes 'check', as there is no other content. - Do not pass --enable-pic to configure: only static libs profit from this. - Add fdupes BuildRequires to eliminate the couple duplicates. - Move %install_info_delete from postun to preun: access to the .info files is required for successful execution. OBS-URL: https://build.opensuse.org/request/show/294909 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/check?expand=0&rev=29
This commit is contained in:
commit
87cb245ad3
@ -1 +1,3 @@
|
||||
check
|
||||
libcheck0
|
||||
obsoletes "check-<targettype> < <version>"
|
||||
provides "check-<targettype> = <version>"
|
||||
|
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 4 16:46:15 UTC 2015 - jengelh@inai.de
|
||||
|
||||
- Implement shared library naming guidelines: move the library to
|
||||
libcheck0. The new package obsoletes 'check', as there is no
|
||||
other content.
|
||||
- Do not pass --enable-pic to configure: only static libs profit
|
||||
from this.
|
||||
- Add fdupes BuildRequires to eliminate the couple duplicates.
|
||||
- Move %install_info_delete from postun to preun: access to the
|
||||
.info files is required for successful execution.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 23 21:27:32 UTC 2014 - dimstar@opensuse.org
|
||||
|
||||
|
40
check.spec
40
check.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package check
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2015 SUSE LINUX 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,6 +17,7 @@
|
||||
|
||||
|
||||
Name: check
|
||||
%define lname libcheck0
|
||||
Version: 0.9.14
|
||||
Release: 0
|
||||
Summary: Unit Test Framework for C
|
||||
@ -26,10 +27,21 @@ Url: http://check.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/project/check/check/0.9.14/%{name}-%{version}.tar.gz
|
||||
Source99: baselibs.conf
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkg-config
|
||||
|
||||
%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 interface for
|
||||
defining unit tests, limitating the developer the less possible.
|
||||
|
||||
%package -n %lname
|
||||
Summary: Unit Test Framework for C
|
||||
Group: System/Libraries
|
||||
Obsoletes: check < %version-%release
|
||||
Provides: check = %version-%release
|
||||
|
||||
%description -n %lname
|
||||
Check is a unit test framework for C. It features a simple interface for
|
||||
defining unit tests, limitating the developer the less possible. Tests
|
||||
are run in a separate address space, so Check cancatch both, assertion
|
||||
failures and code errors that cause segmentationfaults or other
|
||||
@ -37,11 +49,10 @@ signals. The output of unit tests can be used within source code
|
||||
editors and IDEs.
|
||||
|
||||
%package devel
|
||||
Summary: Unit Test Framework for C
|
||||
Summary: Development files for the CHECK unit test framework
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Requires: %lname = %version
|
||||
Requires: glibc-devel
|
||||
Recommends: pgk-config
|
||||
|
||||
%description devel
|
||||
Check is a unit test framework for C. It features a simple interface
|
||||
@ -58,28 +69,29 @@ code editors and IDEs.
|
||||
export CFLAGS="%{optflags} -std=gnu99"
|
||||
export CXXFLAGS="%{optflags} -std=gnu99"
|
||||
export FFLAGS="%{optflags} -std=gnu99"
|
||||
%configure --disable-static --with-pic
|
||||
%configure --disable-static
|
||||
make %{?_smp_mflags} docdir=%{_docdir}/%{name}
|
||||
|
||||
%install
|
||||
%makeinstall docdir=%{_docdir}/%{name}
|
||||
%make_install docdir=%{_docdir}/%{name}
|
||||
%{__cp} -a AUTHORS COPYING.LESSER THANKS TODO %{buildroot}%{_docdir}/%{name}
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
# a little duplicate documentation…
|
||||
%fdupes %buildroot/%_datadir
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
|
||||
%postun devel
|
||||
%preun devel
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
|
||||
%files
|
||||
%files -n %lname
|
||||
%defattr (-, root, root)
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/[ACNRST]*
|
||||
%doc COPYING*
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
@ -90,7 +102,7 @@ make %{?_smp_mflags} docdir=%{_docdir}/%{name}
|
||||
%doc %{_infodir}/%{name}.info*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%doc %{_docdir}/%{name}/example
|
||||
%{_docdir}/%{name}/
|
||||
%{_bindir}/checkmk
|
||||
%{_mandir}/man1/checkmk.1%{?ext_man}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user