summaryrefslogtreecommitdiff
path: root/Source/++DFB/++dfb.spec
blob: 4ffd78b6369daaaf47636d6232eddeb76654ef2b (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
%define name ++dfb
%define version 1.4.2
%define oname ++DFB
%define libname lib%name
%define _unpackaged_files_terminate_build 0

Summary:	Hardware graphics acceleration library
Name:		%name
Version:	%version
Release:	1
License:	LGPL
Group:		System/Libraries
Source0:        %{oname}-%{version}.tar.gz
URL:		http://www.directfb.org/
BuildRequires:	libdirectfb-devel >= 1.4.2
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
%oname - C++ API for DirectFB

%package -n %libname
Summary:        Shared library part of %oname
Group:		System/Libraries
Requires:	libdirectfb >= 1.4.2

%description -n %libname
%oname - C++ API for DirectFB

%package -n %libname-devel
Group:		Development/C++
Summary:	Header files for compiling %oname applications
Requires:	%{libname} = %{version}-%release
Provides:	lib%name-devel = %version-%release

%description -n %libname-devel
%oname header files needed for building applications based on %oname. 

%prep
%setup  -q -n %oname-%version

%build
%configure

make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=%{buildroot} install

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig

%files -n %libname
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.so.*
%{_libdir}/lib++dfb-*

%files -n %libname-devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*++dfb-config
%{_includedir}/++dfb
%{_libdir}/pkgconfig/*
%{_libdir}/*.la
%{_libdir}/*.so

%changelog
* Mon Jan 08 2007 Mark Adams <mark147m@gmail.com> 0.9.26
- initial package