]> git.pld-linux.org Git - packages/criterion.git/blame - criterion.spec
- rel 2; fix i686 build
[packages/criterion.git] / criterion.spec
CommitLineData
87c05200
AM
1Summary: A cross-platform C and C++ unit testing framework for the 21th century
2Name: criterion
3Version: 2.3.3
aa7e236b 4Release: 2
87c05200
AM
5License: LGPL v2.1+
6Group: Libraries
7Source0: https://github.com/Snaipe/Criterion/releases/download/v%{version}/%{name}-v%{version}.tar.bz2
8# Source0-md5: 0305dbb5e00f04fd65b22e9ad82ba952
9URL: https://github.com/Snaipe/Criterion
10BuildRequires: cmake >= 2.8.0
11BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13%description
14A dead-simple, yet extensible, C and C++ unit testing framework.
15
16%package devel
17Summary: Header files for criterion library
18Summary(pl.UTF-8): Pliki nagłówkowe biblioteki criterion
19Group: Development/Libraries
20Requires: %{name} = %{version}-%{release}
21Requires: libstdc++-devel
22
23%description devel
24Header files for criterion library.
25
26%description devel -l pl.UTF-8
27Pliki nagłówkowe biblioteki criterion.
28
29%prep
30%setup -q -n %{name}-v%{version}
31
32%build
33install -d build
34cd build
35%cmake ..
36%{__make}
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
41%{__make} -C build install \
42 DESTDIR=$RPM_BUILD_ROOT
43
aa7e236b
AM
44%if "%{_lib}" != "lib"
45 install -d $RPM_BUILD_ROOT%{_libdir}
46 mv $RPM_BUILD_ROOT{%{_prefix}/lib/*,%{_libdir}}
47%endif
87c05200
AM
48
49%find_lang Criterion
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%post -p /sbin/ldconfig
55%postun -p /sbin/ldconfig
56
57
58%files -f Criterion.lang
59%defattr(644,root,root,755)
60%doc ChangeLog doc/*.txt
61%attr(755,root,root) %{_libdir}/libcriterion.so.*.*.*
62%attr(755,root,root) %ghost %{_libdir}/libcriterion.so.3
63
64%files devel
65%defattr(644,root,root,755)
66%attr(755,root,root) %{_libdir}/libcriterion.so
67%{_includedir}/criterion
68%{_npkgconfigdir}/criterion.pc
This page took 0.101607 seconds and 4 git commands to generate.