]> git.pld-linux.org Git - packages/bcunit.git/commitdiff
- updated to 20200822 snapshot (unreleased junit xml API is required by bctoolbox... auto/th/bcunit-3.0.2-3.20200822.1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Sep 2020 07:53:14 +0000 (09:53 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Sep 2020 07:53:14 +0000 (09:53 +0200)
- added examples patch (fixes examples build)

bcunit-examples.patch [new file with mode: 0644]
bcunit.spec

diff --git a/bcunit-examples.patch b/bcunit-examples.patch
new file mode 100644 (file)
index 0000000..c961aad
--- /dev/null
@@ -0,0 +1,11 @@
+--- bcunit-74021cc7cb20a4e177748dd2948173e1f9c270ae/Examples/CMakeLists.txt.orig       2020-08-21 12:47:22.000000000 +0200
++++ bcunit-74021cc7cb20a4e177748dd2948173e1f9c270ae/Examples/CMakeLists.txt    2020-09-25 20:59:41.522353756 +0200
+@@ -22,7 +22,7 @@
+ add_library(bcunitexamples STATIC ExampleTests.c)
+-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
++include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/BCUnit/Headers ${CMAKE_SOURCE_DIR}/BCUnit/Headers)
+ if(ENABLE_BASIC)
+       add_subdirectory(BasicTest)
index cd8509aeb792aac5d2266fcc917f0b83b948495c..5bbb2c29a8503082fdc9b6192a942fcb24f027cd 100644 (file)
@@ -6,16 +6,19 @@ Summary:      Provide C programmers basic testing functionality
 Summary(pl.UTF-8):     Podstawowa funkcjonalność testów dla programistów C
 Name:          bcunit
 Version:       3.0.2
-Release:       3
+%define        gitref  74021cc7cb20a4e177748dd2948173e1f9c270ae
+%define        snap    20200822
+%define        rel     1
+Release:       3.%{snap}.%{rel}
 License:       LGPL v2+
 Group:         Libraries
 #Source0Download: https://gitlab.linphone.org/BC/public/bcunit/tags
-#Source0:      https://gitlab.linphone.org/BC/public/bcunit/-/archive/%{version}/%{name}-%{version}.tar.bz2
-Source0:       https://linphone.org/releases/sources/bcunit/%{name}-%{version}.tar.gz
-# Source0-md5: 3c197563b790131da8ad1be6a23f9c91
+Source0:       https://gitlab.linphone.org/BC/public/bcunit/-/archive/%{gitref}/%{name}-%{snap}.tar.bz2
+# Source0-md5: 9cd76b8e474697898993e0ba28e9b921
 Patch0:                lib.patch
+Patch1:                %{name}-examples.patch
 URL:           https://linphone.org/
-BuildRequires: cmake
+BuildRequires: cmake >= 3.1
 BuildRequires: ncurses-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -58,8 +61,9 @@ Static BCUnit library.
 Statyczna biblioteka BCUnit.
 
 %prep
-%setup -q -n BCunit-%{version}-Source
+%setup -q -n %{name}-%{gitref}
 %patch0 -p1
+%patch1 -p1
 
 %build
 # sources contain "build" directory, so use alternative builddir
@@ -99,7 +103,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
+%doc AUTHORS ChangeLog NEWS README.md TODO
 %attr(755,root,root) %{_libdir}/libbcunit.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libbcunit.so.1
 %dir %{_datadir}/BCUnit
This page took 0.161562 seconds and 4 git commands to generate.