1 | Name: nunit |
---|
2 | Version: 2.6.4 |
---|
3 | Release: 2%{?_dist_release} |
---|
4 | Summary: Unit-testing framework for all .NET languages |
---|
5 | Summary(ja): .NET 向けのユニットテストフレームワーク |
---|
6 | |
---|
7 | License: Zlib |
---|
8 | Url: http://www.nunit.org/ |
---|
9 | Group: Development/Tools |
---|
10 | |
---|
11 | Source0: https://github.com/nunit/nunitv2/archive/%{version}.tar.gz |
---|
12 | |
---|
13 | Source10: mono-find-requires |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-build |
---|
16 | BuildArch: noarch |
---|
17 | BuildRequires: mono-devel dos2unix libgdiplus-devel |
---|
18 | #%if 0%{?fedora_version} strace |
---|
19 | #BuildRequires: xorg-x11-fonts-truetype |
---|
20 | #%endif |
---|
21 | |
---|
22 | %global __mono_requires %{SOURCE10} |
---|
23 | |
---|
24 | %description |
---|
25 | NUnit is a unit testing framework for all .NET languages. It serves the |
---|
26 | same purpose as JUnit does in the Java world. It supports test |
---|
27 | categories, testing for exceptions and writing test results in plain |
---|
28 | text or XML. |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development files for NUnit |
---|
32 | Summary(ja): NUnit の開発用ファイル |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: nunit = %{version}-%{release} |
---|
35 | |
---|
36 | %description devel |
---|
37 | This package contains development files for NUnit integration. |
---|
38 | |
---|
39 | %prep |
---|
40 | %setup -q -n nunitv2-%{version} |
---|
41 | chmod +x %{SOURCE10} |
---|
42 | |
---|
43 | %build |
---|
44 | xbuild nunit.sln /t:Build /p:Configuration=Debug |
---|
45 | |
---|
46 | %install |
---|
47 | rm -rf %{buildroot} |
---|
48 | mkdir -p "%{buildroot}%{_prefix}/lib/nunit" |
---|
49 | cp -a bin/Debug/* "%{buildroot}%{_prefix}/lib/nunit" |
---|
50 | |
---|
51 | #mkdir -p "%{buildroot}%{_docdir}/%{name}" |
---|
52 | #cp -a license.txt "%{buildroot}%{_docdir}/%{name}/" |
---|
53 | #cp -a doc "%{buildroot}%{_docdir}/%{name}/" |
---|
54 | #cp -a samples "%{buildroot}%{_docdir}/%{name}/" |
---|
55 | rm -rf docs_to_include |
---|
56 | mkdir -p docs_to_include |
---|
57 | cp -a license.txt docs_to_include |
---|
58 | cp -a doc docs_to_include |
---|
59 | cp -a samples docs_to_include |
---|
60 | |
---|
61 | pushd docs_to_include |
---|
62 | find . -type f -exec dos2unix {} \; |
---|
63 | popd |
---|
64 | |
---|
65 | mkdir -p "%{buildroot}%{_bindir}" |
---|
66 | echo '#!/bin/sh |
---|
67 | exec /usr/bin/mono %{_prefix}/lib/nunit/nunit.exe "$@"' > "%{buildroot}%{_bindir}/nunit" |
---|
68 | chmod +x "%{buildroot}%{_bindir}/nunit" |
---|
69 | |
---|
70 | #cd %{buildroot}%{_docdir}/%{name}/ |
---|
71 | #find . -type f -exec dos2unix {} \; |
---|
72 | |
---|
73 | for i in nunit.core.dll nunit.core.interfaces.dll nunit.framework.dll nunit.util.dll lib/nunit-console-runner.dll lib/nunit-gui-runner.dll lib/nunit.uiexception.dll lib/nunit.uikit.dll framework/nunit.mocks.dll ; do |
---|
74 | gacutil -i %{buildroot}%{_prefix}/lib/nunit/$i -package nunit -root %{buildroot}%{_prefix}/lib |
---|
75 | rm -f %{buildroot}%{_prefix}/lib/nunit/$i |
---|
76 | done |
---|
77 | |
---|
78 | mkdir -p %{buildroot}%{_datadir}/pkgconfig |
---|
79 | cat <<EOF > %{buildroot}%{_datadir}/pkgconfig/nunit.pc |
---|
80 | prefix=%{_prefix} |
---|
81 | exec_prefix=\${prefix} |
---|
82 | libdir=\${exec_prefix}/lib |
---|
83 | pkglibdir=\${prefix}/lib/mono/nunit |
---|
84 | |
---|
85 | Name: NUnit |
---|
86 | Description: Testing framework for .NET |
---|
87 | Version: %{version} |
---|
88 | Libs: -r:\${pkglibdir}/nunit.core.dll -r:\${pkglibdir}/nunit.core.interfaces.dll -r:\${pkglibdir}/nunit.framework.dll -r:\${pkglibdir}/nunit.util.dll r:\${pkglibdir}/nunit-console-runner.dll r:\${pkglibdir}/nunit-gui-runner.dll r:\${pkglibdir}/nunit.uiexception.dll r:\${pkglibdir}/nunit.uikit.dll r:\${pkglibdir}/nunit.mocks.dll |
---|
89 | EOF |
---|
90 | |
---|
91 | #fdupes %{buildroot}%{_prefix} |
---|
92 | |
---|
93 | %clean |
---|
94 | rm -rf %{buildroot} |
---|
95 | |
---|
96 | %files |
---|
97 | %defattr(-,root,root) |
---|
98 | %doc docs_to_include/* |
---|
99 | %{_bindir}/nunit |
---|
100 | %{_prefix}/lib/nunit |
---|
101 | %{_prefix}/lib/mono/nunit |
---|
102 | %{_prefix}/lib/mono/gac/nunit* |
---|
103 | #{_docdir}/nunit |
---|
104 | |
---|
105 | %files devel |
---|
106 | %defattr(-, root, root) |
---|
107 | %{_datadir}/pkgconfig/nunit.pc |
---|
108 | |
---|
109 | %changelog |
---|
110 | * Tue May 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.6.4-2 |
---|
111 | - initial build for VineLinux |
---|
112 | |
---|
113 | * Mon Dec 22 2014 mailaender@opensuse.org |
---|
114 | - avoid the broken release ZIP file https://github.com/nunit/nunitv2/issues/35 |
---|
115 | - fix the pkgconfig file for MonoDevelop |
---|
116 | - build with Debug symbols |
---|
117 | - place copies into the global assembly cache |
---|
118 | * Sun Dec 21 2014 mailaender@opensuse.org |
---|
119 | - initial packaging |
---|