]>
Commit | Line | Data |
---|---|---|
0bae6cda MB |
1 | Summary: C++ wrappers for GooCanvas library |
2 | Summary(pl.UTF-8): Interfejsy C++ dla GooCanvas library | |
3 | Name: goocanvasmm | |
4 | Version: 0.13.0 | |
5 | Release: 1 | |
6 | License: LGPL v2 | |
7 | Group: X11/Libraries | |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/goocanvasmm/0.13/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: c25c567f95af4619b0af0124251b3c39 | |
10 | BuildRequires: autoconf | |
11 | BuildRequires: automake | |
12 | BuildRequires: doxygen | |
13 | BuildRequires: glibmm-devel >= 2.14.2 | |
14 | BuildRequires: goocanvas-devel >= 0.13 | |
15 | BuildRequires: gtkmm-devel >= 2.12.0 | |
16 | BuildRequires: libtool | |
17 | BuildRequires: pkgconfig | |
18 | Requires: goocanvas >= 0.13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | C++ wrappers for GooCanvas library. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Interfejsy C++ dla biblioteki GooCanvas. | |
26 | ||
27 | %package devel | |
28 | Summary: Header files for goocanvasmm library | |
29 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki goocanvasmm | |
30 | Group: X11/Development/Libraries | |
31 | Requires: %{name} = %{version}-%{release} | |
32 | Requires: goocanvas-devel >= 0.13 | |
33 | Requires: gtkmm-devel >= 2.12.0 | |
34 | ||
35 | %description devel | |
36 | Header files for goocanvasmm library. | |
37 | ||
38 | %description devel -l pl.UTF-8 | |
39 | Pliki nagłówkowe biblioteki goocanvasmm. | |
40 | ||
41 | %package static | |
42 | Summary: Static goocanvasmm library | |
43 | Summary(pl.UTF-8): Statyczna biblioteka goocanvasmm | |
44 | Group: X11/Development/Libraries | |
45 | Requires: %{name}-devel = %{version}-%{release} | |
46 | ||
47 | %description static | |
48 | Static goocanvasmm library. | |
49 | ||
50 | %description static -l pl.UTF-8 | |
51 | Statyczna biblioteka goocanvasmm. | |
52 | ||
53 | %package apidocs | |
54 | Summary: goocanvasmm API documentation | |
55 | Summary(pl.UTF-8): Dokumentacja API biblioteki goocanvasmm | |
56 | Group: Documentation | |
57 | ||
58 | %description apidocs | |
59 | API documentation for goocanvasmm library. | |
60 | ||
61 | %description apidocs -l pl.UTF-8 | |
62 | Dokumentacja API biblioteki goocanvasmm. | |
63 | ||
64 | %prep | |
65 | %setup -q | |
66 | ||
67 | %build | |
68 | %{__libtoolize} | |
69 | %{__aclocal} -I scripts | |
70 | %{__autoconf} | |
71 | %{__automake} | |
72 | %configure \ | |
73 | --enable-static | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | install -d $RPM_BUILD_ROOT%{_docdir}/%{name}-apidocs-%{version} | |
79 | ||
80 | %{__make} install \ | |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
83 | # build API documentation | |
84 | cd docs/reference/ | |
85 | doxygen | |
86 | cp html/* $RPM_BUILD_ROOT%{_docdir}/%{name}-apidocs-%{version} | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog NEWS README TODO | |
97 | %attr(755,root,root) %{_libdir}/libgoocanvasmm-0.1.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libgoocanvasmm-0.1.so.4 | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %attr(755,root,root) %{_libdir}/libgoocanvasmm-0.1.so | |
103 | %{_libdir}/libgoocanvasmm-0.1.la | |
104 | %{_libdir}/goocanvasmm-0.1 | |
105 | %{_includedir}/goocanvasmm-0.1 | |
106 | %{_pkgconfigdir}/goocanvasmm-1.0.pc | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libgoocanvasmm-0.1.a | |
111 | ||
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | # it can't be compressed | |
115 | %{_docdir}/%{name}-apidocs-%{version} |