forked from sailfishos/testrunner-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestrunner-lite.spec
114 lines (87 loc) · 2.87 KB
/
testrunner-lite.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
Name: testrunner-lite
Version: 1.8.0
# build.meego.com proposed patch > Release:7.1
Release:7.1
Summary: Generic test executor tool
Group: Development/Tools
License: LGPL 2.1
URL: http://meego.com
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: autoconf, doxygen, libxml2-devel, check-devel, libcurl-devel, libtool, libssh2-devel, libuuid-devel
# libxml2 and libcurl are implicit dependencies
Requires: test-definition, openssh, testrunner-lite-hwinfo, libssh2, libuuid
%package tests
Summary: Unit tests for testrunner-lite
Requires: testrunner-lite
%package regression-tests
Summary: Regression tests for testrunner-lite
Requires: testrunner-lite, test-definition, libxml2, diffutils
%package docs
Summary: Testrunner-lite doxygen documentation in html format
%package hwinfo-maemo
Summary: Provides commands for hardware information obtaining
Requires: coreutils
Provides: testrunner-lite-hwinfo
Conflicts: testrunner-lite-hwinfo-meego
%package hwinfo-meego
Summary: Provides commands for hardware information obtaining
Requires: coreutils
Provides: testrunner-lite-hwinfo
Conflicts: testrunner-lite-hwinfo-maemo
%description
Generic test executor tool
%description tests
Unit tests for testrunner-lite
%description regression-tests
Regression tests for testrunner-lite
%description docs
Testrunner-lite doxygen documentation in html format
%description hwinfo-maemo
Library for obtaining hardware information in maemo environment
%description hwinfo-meego
Library for obtaining hardware information in meego environment
%prep
%setup -n %{name}-%{version}
%build
CFLAGS="-DVERSIONSTR=%{version} -ldl"
autoreconf --install
%configure --enable-libssh2
make %{?_smp_mflags}
make html %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%files tests
%defattr(-,root,root,-)
%{_libdir}/testrunner-lite-tests/*
%{_datadir}/testrunner-lite-tests/*
%files regression-tests
%defattr(-,root,root,-)
%{_datadir}/testrunner-lite-regression-tests/*
%files docs
%defattr(-,root,root,-)
# 3 files in documention causes a duplicate warning by rpmlint
%doc %{_docdir}/testrunner-lite/*
%{_mandir}/man1/testrunner-lite.1.gz
# need to remove executable flag because rpmlint complains about it
%attr(644,root,root) %{_docdir}/testrunner-lite/html/installdox
%files hwinfo-maemo
%defattr(-,root,root,-)
%{_libdir}/testrunner-lite-hwinfo-maemo*
%post hwinfo-maemo
ln -s %{_libdir}/testrunner-lite-hwinfo-maemo.so %{_libdir}/testrunner-lite-hwinfo.so
%postun hwinfo-maemo
rm %{_libdir}/testrunner-lite-hwinfo.so
%files hwinfo-meego
%defattr(-,root,root,-)
%{_libdir}/testrunner-lite-hwinfo-meego*
%post hwinfo-meego
ln -s %{_libdir}/testrunner-lite-hwinfo-meego.so %{_libdir}/testrunner-lite-hwinfo.so
%postun hwinfo-meego
rm %{_libdir}/testrunner-lite-hwinfo.so