From 454cf4e261c0bc99fe65b24ae2e18c3597808198 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Fri, 21 Mar 2014 16:26:11 +0100 Subject: [PATCH] - new --- cmocka.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 cmocka.spec diff --git a/cmocka.spec b/cmocka.spec new file mode 100644 index 0000000..bcec952 --- /dev/null +++ b/cmocka.spec @@ -0,0 +1,69 @@ +Summary: Fork of Google's cmockery unit testing framework +Summary(pl.UTF-8): Odgałęzienie szkieletu testów jednostkowych cmockery Google'a +Name: cmocka +Version: 0.3.2 +Release: 1 +License: Apache v2.0 +Group: Libraries +#Source0Download: https://open.cryptomilk.org/projects/cmocka/files +Source0: https://open.cryptomilk.org/attachments/download/34/%{name}-%{version}.tar.xz +# Source0-md5: a497564ff98ebc4241709d62aa1078af +URL: http://cmocka.org/ +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +cmocka is a fork for Google's cmockery unit testing framework +() to fix bugs and support it in +future. + +%description -l pl.UTF-8 +cmocka to odgałęzienie szkieletu testów jednostkowych cmockery +Google'a () mające na celu +poprawienie błędów i wsparcie w przyszłości. + +%package devel +Summary: Development files for cmocka framework +Summary(pl.UTF-8): Pliki programistyczne szkieletu cmocka +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Development files for cmocka framework. + +%description devel -l pl.UTF-8 +Pliki programistyczne szkieletu cmocka. + +%prep +%setup -q + +%build +install -d build +cd build +%cmake .. +%{__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 README +%attr(755,root,root) %{_libdir}/libcmocka.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libcmocka.so.0 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libcmocka.so +%{_includedir}/cmocka.h +%{_pkgconfigdir}/cmocka.pc -- 2.44.0