Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
22fc7607e5 |
@@ -1,15 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Mon Feb 26 11:02:25 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
|
||||||
|
|
||||||
- Use %autosetup macro. Allows to eliminate the usage of deprecated
|
|
||||||
PatchN.
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Tue Feb 6 08:08:12 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
|
||||||
|
|
||||||
- Disable LTO to avoid undefined symbols on some platforms
|
|
||||||
- Clean the spec file up a bit
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Oct 22 10:37:14 UTC 2015 - idonmez@suse.com
|
Thu Oct 22 10:37:14 UTC 2015 - idonmez@suse.com
|
||||||
|
|
||||||
|
34
cunit.spec
34
cunit.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package cunit
|
# spec file for package cunit
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# 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
|
||||||
@@ -12,12 +12,10 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{!?make_build:%global make_build make %{?_smp_mflags}}
|
|
||||||
%define _lto_cflags %{nil}
|
|
||||||
%define _name CUnit
|
%define _name CUnit
|
||||||
%define _version 2.1-3
|
%define _version 2.1-3
|
||||||
%define _libname libcunit1
|
%define _libname libcunit1
|
||||||
@@ -25,17 +23,18 @@ Name: cunit
|
|||||||
Version: 2.1.3
|
Version: 2.1.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: It provides C programmers a basic testing functionality
|
Summary: It provides C programmers a basic testing functionality
|
||||||
License: LGPL-2.0-only
|
License: LGPL-2.0
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://cunit.sourceforge.net/
|
Url: http://cunit.sourceforge.net/
|
||||||
Source0: https://download.sourceforge.net/cunit/%{_name}-%{_version}.tar.bz2
|
Source0: http://download.sourceforge.net/cunit/%{_name}-%{_version}.tar.bz2
|
||||||
Patch0: cunit-link-ncurses.diff
|
Patch0: cunit-link-ncurses.diff
|
||||||
Patch1: cunit-ncurses6.patch
|
Patch1: cunit-ncurses6.patch
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkg-config
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CUnit is a unit testing framework for C.
|
CUnit is a unit testing framework for C.
|
||||||
@@ -47,7 +46,7 @@ Summary: CUnit development files
|
|||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{_libname} = %{version}
|
Requires: %{_libname} = %{version}
|
||||||
Requires: ncurses-devel
|
Requires: ncurses-devel
|
||||||
Requires: pkgconfig
|
Requires: pkg-config
|
||||||
%if 0%{?suse_version} || 0%{?fedora_version}
|
%if 0%{?suse_version} || 0%{?fedora_version}
|
||||||
Recommends: %{name}-doc = %{version}
|
Recommends: %{name}-doc = %{version}
|
||||||
%endif
|
%endif
|
||||||
@@ -75,7 +74,9 @@ CUnit is a unit testing framework for C.
|
|||||||
This package installs the CUnit shared library.
|
This package installs the CUnit shared library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{_name}-%{_version}
|
%setup -q -n %{_name}-%{_version}
|
||||||
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
chmod -x AUTHORS ChangeLog COPYING NEWS README TODO doc/*.html doc/*.css
|
chmod -x AUTHORS ChangeLog COPYING NEWS README TODO doc/*.html doc/*.css
|
||||||
|
|
||||||
@@ -89,10 +90,10 @@ autoreconf -fi
|
|||||||
--enable-curses \
|
--enable-curses \
|
||||||
--enable-examples \
|
--enable-examples \
|
||||||
--enable-test
|
--enable-test
|
||||||
%make_build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
||||||
find %{buildroot} -type f -name "*.la" -delete -print
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||||||
rm -rf %{buildroot}%{_prefix}/doc
|
rm -rf %{buildroot}%{_prefix}/doc
|
||||||
# arch dependent files
|
# arch dependent files
|
||||||
@@ -106,20 +107,23 @@ rm doc/Makefile*
|
|||||||
rm doc/Jamfile*
|
rm doc/Jamfile*
|
||||||
|
|
||||||
%post -n %{_libname} -p /sbin/ldconfig
|
%post -n %{_libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{_libname} -p /sbin/ldconfig
|
%postun -n %{_libname} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{_libname}
|
%files -n %{_libname}
|
||||||
%license COPYING
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS ChangeLog NEWS README TODO
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
||||||
%{_libdir}/libcunit.so.*
|
%{_libdir}/libcunit.so.*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%doc doc/*
|
%doc doc/*
|
||||||
%dir %{_datadir}/CUnit
|
%dir %{_datadir}/CUnit
|
||||||
%{_datadir}/CUnit/*
|
%{_datadir}/CUnit/*
|
||||||
%{_mandir}/man3/CUnit.3%{?ext_man}
|
%{_mandir}/man3/CUnit.3.gz
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
%dir %{_includedir}/CUnit
|
%dir %{_includedir}/CUnit
|
||||||
%{_includedir}/CUnit/*
|
%{_includedir}/CUnit/*
|
||||||
%dir %{_libdir}/CUnit
|
%dir %{_libdir}/CUnit
|
||||||
|
Reference in New Issue
Block a user