Accepting request 293395 from home:jengelh:branches:GNOME:Factory

- Implement shared library naming guidelines

OBS-URL: https://build.opensuse.org/request/show/293395
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/check?expand=0&rev=31
This commit is contained in:
Dominique Leuenberger 2015-04-08 07:34:52 +00:00 committed by Git OBS Bridge
parent d95b270e58
commit 5e96aca333
3 changed files with 33 additions and 14 deletions

View File

@ -1 +1,3 @@
check libcheck0
obsoletes "check-<targettype> < <version>"
provides "check-<targettype> = <version>"

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Mar 4 16:46:15 UTC 2015 - jengelh@inai.de
- Implement shared library naming guidelines
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 23 21:27:32 UTC 2014 - dimstar@opensuse.org Sat Aug 23 21:27:32 UTC 2014 - dimstar@opensuse.org

View File

@ -1,7 +1,7 @@
# #
# spec file for package check # 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 # 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
@ -17,6 +17,7 @@
Name: check Name: check
%define lname libcheck0
Version: 0.9.14 Version: 0.9.14
Release: 0 Release: 0
Summary: Unit Test Framework for C 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 Source: http://downloads.sourceforge.net/project/check/check/0.9.14/%{name}-%{version}.tar.gz
Source99: baselibs.conf Source99: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: pkg-config 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 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 defining unit tests, limitating the developer the less possible. Tests
are run in a separate address space, so Check cancatch both, assertion are run in a separate address space, so Check cancatch both, assertion
failures and code errors that cause segmentationfaults or other 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. editors and IDEs.
%package devel %package devel
Summary: Unit Test Framework for C Summary: Development files for the CHECK unit test framework
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %lname = %version
Requires: glibc-devel Requires: glibc-devel
Recommends: pgk-config
%description devel %description devel
Check is a unit test framework for C. It features a simple interface 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 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
make %{?_smp_mflags} docdir=%{_docdir}/%{name} make %{?_smp_mflags} docdir=%{_docdir}/%{name}
%install %install
%makeinstall docdir=%{_docdir}/%{name} %make_install 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
# a little duplicate documentation…
%fdupes %buildroot/%_datadir
%post -p /sbin/ldconfig %post -n %lname -p /sbin/ldconfig
%post devel %post devel
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig
%postun devel %postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files %files -n %lname
%defattr (-, root, root) %defattr (-, root, root)
%doc %dir %{_docdir}/%{name} %doc COPYING*
%doc %{_docdir}/%{name}/[ACNRST]*
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
@ -90,7 +102,7 @@ make %{?_smp_mflags} docdir=%{_docdir}/%{name}
%doc %{_infodir}/%{name}.info* %doc %{_infodir}/%{name}.info*
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc
%doc %{_docdir}/%{name}/example %{_docdir}/%{name}/
%{_bindir}/checkmk %{_bindir}/checkmk
%{_mandir}/man1/checkmk.1%{?ext_man} %{_mandir}/man1/checkmk.1%{?ext_man}