-
Notifications
You must be signed in to change notification settings - Fork 0
/
mockpp.spec.in
65 lines (51 loc) · 1.49 KB
/
mockpp.spec.in
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
%define RELEASE 2
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
Name: @PACKAGE@
Version: @VERSION@
Release: %rel
Summary: Mock Objects for C++
License: LGPL
Group: Development/Libraries
Vendor: The mockpp Project
Packager: [email protected]
Url: http://mockpp.sourceforge.net/
Requires: cppunit >= 1.10.0
BuildRequires: doxygen, libxslt, fop
Source: ftp://download.sourceforge.net/pub/sourceforge/m/mo/mockpp/%name-%version-src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Mock Objects for C++
%package doc
Summary: HTML formatted documention for Mock Objects for C++
Group: Documentation
%description doc
The %name-doc package contains HTML formatted API documention, the handbook and
a tutorial.
%prep
%setup -q
%build
%configure --enable-doxygen --enable-docbook
%__make %{?_smp_mflags}
%__make doc %{?_smp_mflags}
%install
%__rm -rf $RPM_BUILD_ROOT
%__make install DESTDIR=$RPM_BUILD_ROOT
%__mkdir -p $RPM_BUILD_ROOT%{_docdir}
%__mv $RPM_BUILD_ROOT%{_datadir}/%{name} $RPM_BUILD_ROOT%{_docdir}
%clean
%__rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/ChangeLog
%{_libdir}/pkgconfig/mockpp.pc
%{_bindir}/mockpp2xml
%{_bindir}/xml2mockpp
%{_includedir}/*
%attr(755,root,root) %{_libdir}/lib*.so
%attr(644,root,root) %{_libdir}/*.*a
%files doc
%doc %{_docdir}/%{name}