Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1
unittest-cpp
unittest-cpp.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File unittest-cpp.spec of Package unittest-cpp
# # spec file for package unittest-cpp # # Copyright (c) 2016 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: unittest-cpp %define lname libUnitTest++-2_0_0 Version: 2.0.0 Release: 0 Summary: A unit testing framework for C++ License: MIT Group: Development/Libraries/C and C++ Url: https://github.com/unittest-cpp Source: %{name}-%{version}.tar.xz # PATCH-FIX-UPSTREAM correct lib64 install pathes Patch1: fix-install.patch Patch2: shared.patch BuildRequires: cmake BuildRequires: pkgconfig BuildRequires: gcc-c++ %description UnitTest++ is a unit testing framework for C++. It was designed to do test-driven development on a wide variety of platforms. UnitTest++ is mostly standard C++ and makes minimal use of advanced library and language features. %package -n %{lname} Summary: A unit testing framework for C++ Group: System/Libraries %description -n %{lname} UnitTest++ is a unit testing framework for C++. It was designed to do test-driven development on a wide variety of platforms. UnitTest++ is mostly standard C++ and makes minimal use of advanced library and language features. %package devel Summary: Development files for unittest-cpp Group: Development/Libraries/C and C++ Requires: %{lname} = %{version} %description devel A lightweight unit testing framework for C++. This package contains header files and libraries needed to develop application that use %{name}. %prep %setup -q %patch1 -p1 %patch2 -p1 %build %cmake %install export LD_LIBRARY_PATH=. # tests want this %cmake_install # add missing devel symlink ln -s libUnitTest++-%{version}.so "%{buildroot}/%{_libdir}/libUnitTest++.so" # replace broken .pc file perl -i -lpe 's{^Version:\s*$}{Version: %{version}}' "%{buildroot}/%{_libdir}/pkgconfig"/*.pc %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig %files -n %{lname} %defattr(-,root,root) %{_libdir}/libUnitTest++-2*.so %files devel %defattr(-,root,root) %doc AUTHORS LICENSE README.md %{_includedir}/UnitTest++ %{_libdir}/pkgconfig/UnitTest++.pc %{_libdir}/cmake/ %{_libdir}/libUnitTest++.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor