]>
Commit | Line | Data |
---|---|---|
9c9bf4ad | 1 | Summary: A collection of widgets for VMware (but not only) |
cffa4ee6 | 2 | Summary(pl.UTF-8): Zestaw widgetów dla VMware (ale nie tylko) |
0412f40b | 3 | Name: libview |
9d9297ac | 4 | Version: 0.6.6 |
8be0e5ef | 5 | Release: 4 |
0412f40b | 6 | License: MIT |
5ddf00f9 | 7 | Group: X11/Libraries |
9d9297ac AF |
8 | Source0: http://downloads.sourceforge.net/view/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 12b0a1e03013ae315d5f9088261d4f2b | |
2e1d4e16 | 10 | Patch0: %{name}-constructor.patch |
f9e69ff8 | 11 | Patch1: %{name}-pc.patch |
0412f40b | 12 | URL: http://view.sourceforge.net/ |
9c9bf4ad | 13 | BuildRequires: autoconf >= 2.50 |
0412f40b | 14 | BuildRequires: automake |
ee48ff82 | 15 | BuildRequires: gtk+2-devel >= 2:2.4.0 |
9c9bf4ad JB |
16 | BuildRequires: gtkmm-devel >= 2.4.0 |
17 | BuildRequires: libtool >= 2:1.5 | |
5e4db792 | 18 | BuildRequires: pkgconfig |
ee48ff82 | 19 | Requires: gtk+2 >= 2:2.4.0 |
f77f0922 | 20 | Requires: gtkmm >= 2.4.0 |
0412f40b AG |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | libview is a collection of widgets that were developed for use VMware | |
25 | relased at MIT license so that open source community can use it. | |
26 | ||
5eabd4a7 JR |
27 | %description -l pl.UTF-8 |
28 | libview to zestaw widgetów stworzonych do użytku z VMware ale | |
29 | udostępnionych na otwartej licencji (MIT), aby społeczność opensource | |
30 | mogła z nich skorzystać. | |
0412f40b AG |
31 | |
32 | %package devel | |
33 | Summary: Header files for libview library | |
cffa4ee6 | 34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libview |
5ddf00f9 | 35 | Group: X11/Development/Libraries |
0412f40b | 36 | Requires: %{name} = %{version}-%{release} |
ee48ff82 | 37 | Requires: gtk+2-devel >= 2:2.4.0 |
9c9bf4ad | 38 | Requires: gtkmm-devel >= 2.4.0 |
0412f40b AG |
39 | |
40 | %description devel | |
41 | Header files for libview library. | |
42 | ||
5eabd4a7 JR |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe biblioteki libview. | |
0412f40b AG |
45 | |
46 | %package static | |
47 | Summary: Static libview library | |
cffa4ee6 | 48 | Summary(pl.UTF-8): Statyczna biblioteka libview |
5ddf00f9 | 49 | Group: X11/Development/Libraries |
0412f40b AG |
50 | Requires: %{name}-devel = %{version}-%{release} |
51 | ||
52 | %description static | |
53 | Static libview library. | |
54 | ||
5eabd4a7 | 55 | %description static -l pl.UTF-8 |
0412f40b AG |
56 | Statyczna biblioteka libview. |
57 | ||
58 | %prep | |
59 | %setup -q | |
2e1d4e16 | 60 | %patch0 -p1 |
f9e69ff8 | 61 | %patch1 -p1 |
0412f40b AG |
62 | |
63 | %build | |
64 | %{__libtoolize} | |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
8be0e5ef JR |
69 | export CFLAGS="%{rpmcflags} -std=c++11" |
70 | export CXXFLAGS="%{rpmcxxflags} -std=c++11" | |
ed26e862 | 71 | %configure |
0412f40b AG |
72 | %{__make} |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
9d9297ac AF |
80 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
81 | ||
0412f40b AG |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS ChangeLog NEWS README | |
5ddf00f9 JB |
91 | %attr(755,root,root) %{_libdir}/libview.so.*.*.* |
92 | %attr(755,root,root) %ghost %{_libdir}/libview.so.2 | |
0412f40b AG |
93 | |
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
5ddf00f9 | 96 | %attr(755,root,root) %{_libdir}/libview.so |
0412f40b | 97 | %{_includedir}/libview |
5ddf00f9 | 98 | %{_pkgconfigdir}/libview.pc |
0412f40b AG |
99 | |
100 | %files static | |
101 | %defattr(644,root,root,755) | |
5ddf00f9 | 102 | %{_libdir}/libview.a |