- --as-needed support
[packages/cairomm.git] / cairomm.spec
CommitLineData
ef677a55
JB
1Summary: C++ wrapper for cairo
2Summary(pl): Interfejs C++ do cairo
3Name: cairomm
4c9315bc 4Version: 1.1.10
ef677a55
JB
5Release: 1
6License: LGPL v2+
7Group: Libraries
4c9315bc 8#Source0: http://cairographics.org/releases/%{name}-%{version}.tar.gz
9Source0: http://cairographics.org/snapshots/%{name}-%{version}.tar.gz
10# Source0-md5: b418d2e22c02f6890b76354488f13447
ef677a55 11URL: http://cairographics.org/
4c9315bc 12BuildRequires: cairo-devel >= 1.2.0
ef677a55 13BuildRequires: libstdc++-devel
1e3892ad 14BuildRequires: pkgconfig
ef677a55
JB
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18C++ wrapper for cairo.
19
20%description -l pl
21Interfejs C++ do cairo.
22
23%package devel
24Summary: Development files for cairomm library
25Summary(pl): Pliki programistyczne biblioteki cairomm
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
4c9315bc 28Requires: cairo-devel >= 1.2.0
ef677a55
JB
29Requires: libstdc++-devel
30
31%description devel
32Development files for cairomm library.
33
34%description devel -l pl
35Pliki programistyczne biblioteki cairomm.
36
37%package static
38Summary: Static cairomm library
39Summary(pl): Statyczna biblioteka cairomm
40Group: Development/Libraries
41Requires: %{name}-devel = %{version}-%{release}
42
43%description static
44Static cairomm library.
45
46%description static -l pl
47Statyczna biblioteka cairomm.
48
49%prep
50%setup -q
51
52%build
4317675f 53LDFLAGS="%{rpmldflags} -Wl,--as-needed"
ef677a55
JB
54%configure
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59
60%{__make} install \
61 DESTDIR=$RPM_BUILD_ROOT
62
30441e57
JB
63rm -rf $RPM_BUILD_ROOT%{_docdir}/libcairomm-1.0
64
ef677a55
JB
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post -p /sbin/ldconfig
69%postun -p /sbin/ldconfig
70
71%files
72%defattr(644,root,root,755)
73%doc AUTHORS ChangeLog
74%attr(755,root,root) %{_libdir}/libcairomm-1.0.so.*.*.*
75
76%files devel
77%defattr(644,root,root,755)
30441e57 78%doc docs/reference/html/*
ef677a55
JB
79%attr(755,root,root) %{_libdir}/libcairomm-1.0.so
80%{_libdir}/libcairomm-1.0.la
81%{_includedir}/cairomm-1.0
82%{_pkgconfigdir}/cairomm-1.0.pc
83
84%files static
85%defattr(644,root,root,755)
86%{_libdir}/libcairomm-1.0.a
This page took 0.105489 seconds and 4 git commands to generate.