[packages/unittest-cpp] - initial
arekm
arekm at pld-linux.org
Wed Nov 30 14:33:57 CET 2016
commit ec56892711cf28f45f0a9081d09ac619e0ccf580
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Nov 30 14:33:42 2016 +0100
- initial
unittest-cpp.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
---
diff --git a/unittest-cpp.spec b/unittest-cpp.spec
new file mode 100644
index 0000000..c5ba8ad
--- /dev/null
+++ b/unittest-cpp.spec
@@ -0,0 +1,74 @@
+%bcond_without tests
+Summary: Lightweight unit testing framework for C++
+Name: unittest-cpp
+Version: 1.6.1
+Release: 1
+Group: Libraries
+License: MIT
+URL: https://github.com/unittest-cpp/unittest-cpp
+Source0: https://github.com/unittest-cpp/unittest-cpp/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: b4849a686b78ba198a51a49966b8ddba
+BuildRequires: autoconf
+BuildRequires: libtool
+
+%description
+%{name} is a lightweight unit testing framework for C++. Simplicity,
+portability, speed, and small footprint are all very important aspects
+of %{name}.
+
+%package devel
+Summary: Object files for development using %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains the object files necessary for
+developing test programs.
+
+%package static
+Summary: Static library for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description static
+The %{name}-static package contains the object files necessary for
+statically linking test programs.
+
+%prep
+%setup -q
+
+%build
+%configure
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_libdir}/libUnitTest++.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS
+%attr(755,root,root) %{_libdir}/libUnitTest++.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libUnitTest++.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/UnitTest++
+%attr(755,root,root) %{_libdir}/libUnitTest++.so
+%{_pkgconfigdir}/UnitTest++.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libUnitTest++.a
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/unittest-cpp.git/commitdiff/ec56892711cf28f45f0a9081d09ac619e0ccf580
More information about the pld-cvs-commit
mailing list