Updated spec file for version 1.1.0 containing test package
[qa-tools:test-definition.git] / test-definition.spec
1 Name:           test-definition         
2 Version:        1.1.0
3 Release:        1%{?dist}
4 Summary:        Provides schemas for validating test definition XML
5
6 Group:          testing
7 License:        GPL
8 URL:            http://meego.com
9 Source0:        %{name}_%{version}-1+0m6.tar.gz
10 BuildArch:      noarch
11 BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
12
13 #BuildRequires:
14 #Requires:
15
16 %package tests
17 Summary: Acceptance tests for schemas in package test-definition
18 Requires: test-definition, ci-testing, libxml2-utils
19
20 %description
21 Provides two validation schemas; testdefinition-syntax.xsd for validating XML schematics and
22 more strict testdefinition-tm_terms.xsd for validating schematics + certain mandatory attributes.
23 See: https://projects.maemo.org/docs/testing/xml-definition.html.
24
25 %description tests
26 Acceptance tests for schemas in package test-definition
27
28
29 %prep
30 %setup -q -n %{name}-%{version}
31
32
33 %build
34 echo Nothing to build for test-definition
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 mkdir -p $RPM_BUILD_ROOT/usr/share/test-definition
39 mkdir -p $RPM_BUILD_ROOT/usr/share/man/man5
40 cp data/testdefinition-syntax.xsd $RPM_BUILD_ROOT/usr/share/test-definition/
41 cp data/testdefinition-tm_terms.xsd $RPM_BUILD_ROOT/usr/share/test-definition/
42
43 groff -man -Tascii doc/test-definition.man > doc/test-definition.5
44 cp doc/test-definition.5 $RPM_BUILD_ROOT/usr/share/man/man5
45
46 mkdir -p $RPM_BUILD_ROOT/usr/share/test-definition-tests
47 mkdir -p $RPM_BUILD_ROOT/usr/share/test-definition-tests/data
48 cp tests/tests.xml $RPM_BUILD_ROOT/usr/share/test-definition-tests
49 cp tests/data/* $RPM_BUILD_ROOT/usr/share/test-definition-tests/data
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54
55 %files
56 %defattr(-,root,root,-)
57 %doc
58 %{_mandir}/man5/test-definition.5.gz
59 /usr/share/test-definition/*
60
61 %files tests
62 %defattr(-,root,root,-)
63 /usr/share/test-definition-tests/*
64
65
66 %changelog
67 * Fri Jun 4 2010 Sami Lahtinen <ext-sami.t.lahtinen@nokia.com> 1.1.0
68 - Test package for test-definition
69 * Mon May 10 2010 Timo Harkonen <timo.harkonen@digia.com> 1.0.1
70 - Initial RPM packaging