summaryrefslogtreecommitdiff
path: root/qedje.spec
blob: c805ba07e4a176656e8eb44e28962d847793f6c2 (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

%define		qtver	4.4.3

Summary:	qedje
Summary(pl.UTF-8):	qedje
Name:		qedje
Version:	0.3.0
Release:	1
License:	GPL v2
Group:		X11/Libraries
Source0:	http://dev.openbossa.org/%{name}/downloads/source/%{name}/%{name}-%{version}.tar.gz
# Source0-md5:	7435e3631fd44dce4086afe8698cdb13
Patch0:		%{name}-lib64.patch
URL:		http://dev.openbossa.org/trac/qedje
BuildRequires:	QtCore-devel >= %{qtver}
BuildRequires:	QtGui-devel >= %{qtver}
BuildRequires:	eet-devel
BuildRequires:	pkgconfig
BuildRequires:	qt4-qmake >= %{qtver}
BuildRequires:	qzion-devel
BuildRequires:	rpmbuild(macros) >= 1.164
Requires(post,postun):	/sbin/ldconfig
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
qedje

%description -l pl.UTF-8
qedje

%package devel
Summary:        Header files for qedje library
Summary(pl.UTF-8):      Pliki nagÅ~Bówkowe biblioteki qedje
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}

%description devel
Header files for qedje library.

%description devel -l pl.UTF-8
Pliki nagÅ~Bówkowe biblioteki qedje.

%prep
%setup -q
%patch0 -p0

%build
qmake-qt4 \
	PREFIX=%{_prefix} \
	LIB=%{_lib}
%{__make}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	INSTALL_ROOT=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

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

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libqedje.so.*.*.*
%attr(755,root,root) %{_libdir}/libqedje.prl
%attr(755,root,root) %ghost %{_libdir}/libqedje.so.?
%attr(755,root,root) %ghost %{_libdir}/libqedje.so.?.?

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libqedje.so
%{_includedir}/*.h
%{_pkgconfigdir}/qedje.pc