diff --git a/baselibs.conf b/baselibs.conf index 4451136..43197dd 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -1 +1,3 @@ -check +libcheck0 + obsoletes "check- < " + provides "check- = " diff --git a/check.changes b/check.changes index b22d53c..7a91726 100644 --- a/check.changes +++ b/check.changes @@ -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 diff --git a/check.spec b/check.spec index 4de2ed6..6693194 100644 --- a/check.spec +++ b/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 %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}