summaryrefslogtreecommitdiff
path: root/goocanvasmm2.spec
blob: 5162cda50d3b7c34d76f19df2aaedd5307e7a4a0 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Summary:	C++ wrappers for GooCanvas 2 library
Summary(pl.UTF-8):	Interfejsy C++ dla biblioteki GooCanvas 2
Name:		goocanvasmm2
Version:	1.90.11
Release:	1
License:	LGPL v2.1+
Group:		X11/Libraries
Source0:	http://ftp.gnome.org/pub/GNOME/sources/goocanvasmm/1.90/goocanvasmm-%{version}.tar.xz
# Source0-md5:	b2f34e67f550593e90199fd64eac243c
BuildRequires:	autoconf >= 2.59
BuildRequires:	automake >= 1:1.9
BuildRequires:	doxygen
BuildRequires:	glibmm-devel >= 2.46.1
BuildRequires:	goocanvas2-devel >= 2.0.1
BuildRequires:	gtkmm3-devel >= 3.18.0
BuildRequires:	libtool >= 2:1.5
BuildRequires:	mm-common >= 0.9.5
BuildRequires:	pkgconfig
BuildRequires:	tar >= 1:1.22
BuildRequires:	xz
Requires:	glibmm >= 2.46.1
Requires:	goocanvas2 >= 2.0.1
Requires:	gtkmm3 >= 3.18.0
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
C++ wrappers for GooCanvas 2 library.

%description -l pl.UTF-8
Interfejsy C++ dla biblioteki GooCanvas 2.

%package devel
Summary:	Header files for goocanvasmm 2 library
Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki goocanvasmm 2
Group:		X11/Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	glibmm-devel >= 2.46.1
Requires:	goocanvas2-devel >= 2.0.1
Requires:	gtkmm3-devel >= 3.18.0

%description devel
Header files for goocanvasmm 2 library.

%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki goocanvasmm 2.

%package static
Summary:	Static goocanvasmm 2 library
Summary(pl.UTF-8):	Statyczna biblioteka goocanvasmm 2
Group:		X11/Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static goocanvasmm 2 library.

%description static -l pl.UTF-8
Statyczna biblioteka goocanvasmm 2.

%package apidocs
Summary:	goocanvasmm 2 API documentation
Summary(pl.UTF-8):	Dokumentacja API biblioteki goocanvasmm 2
Group:		Documentation
BuildArch:	noarch

%description apidocs
API documentation for goocanvasmm 2 library.

%description apidocs -l pl.UTF-8
Dokumentacja API biblioteki goocanvasmm 2.

%prep
%setup -q -n goocanvasmm-%{version}

%build
%{__libtoolize}
%{__aclocal} -I build
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
	--enable-static
%{__make}

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

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

%files
%defattr(644,root,root,755)
%doc ChangeLog NEWS README TODO
%attr(755,root,root) %{_libdir}/libgoocanvasmm-2.0.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libgoocanvasmm-2.0.so.6

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libgoocanvasmm-2.0.so
%{_libdir}/goocanvasmm-2.0
%{_includedir}/goocanvasmm-2.0
%{_pkgconfigdir}/goocanvasmm-2.0.pc

%files static
%defattr(644,root,root,755)
%{_libdir}/libgoocanvasmm-2.0.a

%files apidocs
%defattr(644,root,root,755)
# it can't be compressed
%{_docdir}/goocanvasmm-2.0
%{_datadir}/devhelp/books/goocanvasmm-2.0