[packages/bcunit] - up to 3.0.2
arekm
arekm at pld-linux.org
Wed Sep 26 11:49:35 CEST 2018
commit 40f28163563c15553594be3f5fe501f90e24bddb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Sep 26 11:49:19 2018 +0200
- up to 3.0.2
bcunit.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
lib.patch | 10 ++++++++
2 files changed, 89 insertions(+)
---
diff --git a/bcunit.spec b/bcunit.spec
new file mode 100644
index 0000000..2160b3d
--- /dev/null
+++ b/bcunit.spec
@@ -0,0 +1,79 @@
+Summary: Provide C programmers basic testing functionality
+Name: bcunit
+Version: 3.0.2
+Release: 1
+License: GPL v2+
+Group: Libraries
+Source0: https://linphone.org/releases/sources/bcunit/%{name}-%{version}.tar.gz
+# Source0-md5: 3c197563b790131da8ad1be6a23f9c91
+Patch0: lib.patch
+URL: https://linphone.org/
+BuildRequires: cmake
+BuildRequires: ncurses-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+BCUnit is a unit testing framework for C, derived from CUnit. (B)CUnit
+provides various interfaces to the framework, some of which are
+platform dependent (e.g. curses on *nix). The framework complies with
+the conventional structure of test cases bundled into suites which are
+registered with the framework for running.
+
+%package devel
+Summary: Header files and develpment documentation for bcunit
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+Header files and develpment documentation for bcunit.
+
+%package static
+Summary: Static bcunit library
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static bcunit library.
+
+%prep
+%setup -q -n BCunit-%{version}-Source
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%{cmake} \
+ -DENABLE_STATIC=OFF \
+ -DENABLE_AUTOMATED=ON \
+ -DENABLE_BASIC=ON \
+ -DENABLE_CONSOLE=ON \
+ -DENABLE_CURSES=ON \
+ -DENABLE_EXAMPLES=ON \
+ ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libbcunit.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbcunit.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbcunit.so
+%{_includedir}/BCUnit
+%{_pkgconfigdir}/bcunit.pc
+%{_datadir}/BCunit
diff --git a/lib.patch b/lib.patch
new file mode 100644
index 0000000..ef5fb87
--- /dev/null
+++ b/lib.patch
@@ -0,0 +1,10 @@
+--- BCunit-3.0.2-Source/BCUnit/Sources/CMakeLists.txt~ 2017-07-20 16:06:38.000000000 +0200
++++ BCunit-3.0.2-Source/BCUnit/Sources/CMakeLists.txt 2018-09-26 11:47:06.695729380 +0200
+@@ -169,6 +169,7 @@ if(ENABLE_STATIC)
+ endif()
+ if(ENABLE_SHARED)
+ add_library(bcunit SHARED ${SOURCE_FILES})
++ set_target_properties(bcunit PROPERTIES SOVERSION 1)
+ set_target_properties(bcunit PROPERTIES VERSION 1.0.1)
+ if(CURSES_LIBRARIES)
+ target_link_libraries(bcunit ${CURSES_LIBRARIES})
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/bcunit.git/commitdiff/40f28163563c15553594be3f5fe501f90e24bddb
More information about the pld-cvs-commit
mailing list