summaryrefslogtreecommitdiff
path: root/cmockery_0_1_2/packages/rpm/rpm.spec
blob: 032485cd6c29b11449ffdeeea5a6911a6ebd699b (plain)
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
## This is a boilerplate file for Google opensource projects.
## To make it useful, replace <<TEXT>> with actual text for your project.
## Also, look at comments with "## double hashes" to see if any are worth
## uncommenting or modifying.

%define	RELEASE	1
%define rel     %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define	prefix	/usr

Name: %NAME
Summary: Lightweight C unit testing framework.
Version: %VERSION
Release: %rel
Group: Development/Libraries
URL: http://code.google.com/p/cmockery
License: Apache
Vendor: Google
Packager: Google Inc. <opensource@google.com>
Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz
Distribution: Redhat 7 and above.
Buildroot: %{_tmppath}/%{name}-root
Prefix: %prefix

%description
The %name package contains a lightweight library to simplify and generalize the
process of writing unit tests for C applications.

%package devel
Summary: Lightweight C unit testing framework.
Group: Development/Libraries
Requires: %{NAME} = %{VERSION}

%description devel
The %name package contains static and debug libraries and header files for the
development of test applications using %name.

%changelog
    * Mon Aug 25 2008 <opensource@google.com>
    - First draft

%prep
%setup

%build
./configure
make prefix=%prefix

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)

## Mark all installed files within /usr/share/doc/{package name} as
## documentation.  This depends on the following two lines appearing in
## Makefile.am:
##     docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
##     dist_doc_DATA = AUTHORS COPYING ChangeLog INSTALL NEWS README
%docdir %{prefix}/share/doc/%{NAME}-%{VERSION}
%{prefix}/share/doc/%{NAME}-%{VERSION}/*

%{prefix}/lib/libcmockery.so.0
%{prefix}/lib/libcmockery.so.0.0.0


%files devel
%defattr(-,root,root)

%{prefix}/include/google
%{prefix}/lib/libcmockery.a
%{prefix}/lib/libcmockery.la
%{prefix}/lib/libcmockery.so