]> git.pld-linux.org Git - packages/bcunit.git/commitdiff
- up to 3.0.2 auto/th/bcunit-3.0.2-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 26 Sep 2018 09:49:19 +0000 (11:49 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 26 Sep 2018 09:49:19 +0000 (11:49 +0200)
bcunit.spec [new file with mode: 0644]
lib.patch [new file with mode: 0644]

diff --git a/bcunit.spec b/bcunit.spec
new file mode 100644 (file)
index 0000000..2160b3d
--- /dev/null
@@ -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 (file)
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})
This page took 0.107155 seconds and 4 git commands to generate.