]>
Commit | Line | Data |
---|---|---|
81e4cf1a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | %bcond_without openmp # OpenMP support | |
5 | ||
2eae194f | 6 | Summary: Library for making brush strokes |
81e4cf1a | 7 | Summary(pl.UTF-8): Biblioteka do wykonywania dotknięć pędzla |
2eae194f | 8 | Name: libmypaint |
1e1b7669 | 9 | Version: 1.6.0 |
109a1bc0 | 10 | Release: 1 |
2eae194f AM |
11 | License: ISC |
12 | Group: Libraries | |
109a1bc0 | 13 | #Source0Download: https://github.com/mypaint/libmypaint/releases |
2eae194f | 14 | Source0: https://github.com/mypaint/libmypaint/releases/download/v%{version}/%{name}-%{version}.tar.xz |
1e1b7669 | 15 | # Source0-md5: 546e8e550938bef8ca16847ed0728354 |
81e4cf1a JB |
16 | URL: http://mypaint.org/ |
17 | BuildRequires: autoconf >= 2.62 | |
3e91b2de | 18 | BuildRequires: automake |
81e4cf1a JB |
19 | BuildRequires: gcc >= 5:3.2 |
20 | BuildRequires: gegl-devel >= 0.4.14 | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 2.0 | |
23 | BuildRequires: gobject-introspection-devel >= 1.32.0 | |
2eae194f | 24 | BuildRequires: intltool |
81e4cf1a JB |
25 | %{?with_openmp:BuildRequires: libgomp-devel} |
26 | BuildRequires: libtool >= 2:2.2 | |
2eae194f | 27 | BuildRequires: json-c-devel |
81e4cf1a JB |
28 | BuildRequires: pkgconfig >= 1:0.16 |
29 | %if %{with apidocs} | |
2eae194f | 30 | BuildRequires: doxygen |
2eae194f | 31 | %endif |
81e4cf1a | 32 | Requires: gegl >= 0.4.14 |
2eae194f | 33 | Conflicts: mypaint < 1.3.0 |
81e4cf1a | 34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2eae194f AM |
35 | |
36 | %description | |
37 | This is a self-contained library containing the MyPaint brush engine. | |
38 | ||
81e4cf1a JB |
39 | %description -l pl.UTF-8 |
40 | Ten pakiet zawiera samodzielną bibliotekę silnika pędzli MyPaint. | |
41 | ||
2eae194f AM |
42 | %package devel |
43 | Summary: Development files for libmypaint | |
81e4cf1a JB |
44 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmypaint |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: gegl-devel >= 0.4.14 | |
48 | Requires: glib2-devel >= 2.0 | |
49 | Requires: json-c-devel | |
2eae194f AM |
50 | |
51 | %description devel | |
52 | This package contains files needed for development with libmypaint. | |
53 | ||
81e4cf1a JB |
54 | %description devel -l pl.UTF-8 |
55 | Ten pakiet zawiera pliki niezbędne do tworzenia oprogramowania | |
56 | wykorzystujących bibliotekę libmypaint. | |
57 | ||
58 | %package apidocs | |
59 | Summary: API documentation for libmypaint library | |
60 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmypaint | |
61 | Group: Documentation | |
62 | ||
63 | %description apidocs | |
64 | API documentation for libmypaint library. | |
65 | ||
66 | %description apidocs -l pl.UTF-8 | |
67 | Dokumentacja API biblioteki libmypaint. | |
68 | ||
2eae194f AM |
69 | %prep |
70 | %setup -q | |
71 | ||
72 | %build | |
81e4cf1a JB |
73 | %{__libtoolize} |
74 | %{__aclocal} -I m4macros | |
3e91b2de | 75 | %{__autoconf} |
81e4cf1a | 76 | %{__autoheader} |
3e91b2de | 77 | %{__automake} |
2eae194f | 78 | %configure \ |
81e4cf1a | 79 | %{?with_apidocs:--enable-docs} \ |
2eae194f | 80 | --enable-gegl \ |
81e4cf1a JB |
81 | --enable-introspection \ |
82 | %{?with_openmp:--enable-openmp} | |
2eae194f AM |
83 | |
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
81e4cf1a | 92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmypaint*.la |
2eae194f | 93 | |
81e4cf1a JB |
94 | # unify name |
95 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{nn_NO,nn} | |
2eae194f AM |
96 | |
97 | %find_lang %{name} | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
81e4cf1a JB |
102 | %post -p /sbin/ldconfig |
103 | %postun -p /sbin/ldconfig | |
2eae194f AM |
104 | |
105 | %files -f %{name}.lang | |
106 | %defattr(644,root,root,755) | |
81e4cf1a | 107 | %doc COPYING README.md TODO |
1e1b7669 JB |
108 | %attr(755,root,root) %{_libdir}/libmypaint-1.6.so.*.*.* |
109 | %attr(755,root,root) %ghost %{_libdir}/libmypaint-1.6.so.1 | |
2eae194f | 110 | %attr(755,root,root) %{_libdir}/libmypaint-gegl.so.*.* |
109a1bc0 | 111 | %attr(755,root,root) %ghost %{_libdir}/libmypaint-gegl.so.0 |
1e1b7669 JB |
112 | %{_libdir}/girepository-1.0/MyPaint-1.6.typelib |
113 | %{_libdir}/girepository-1.0/MyPaintGegl-1.6.typelib | |
2eae194f AM |
114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
2eae194f AM |
117 | %attr(755,root,root) %{_libdir}/libmypaint.so |
118 | %attr(755,root,root) %{_libdir}/libmypaint-gegl.so | |
81e4cf1a JB |
119 | %{_includedir}/libmypaint |
120 | %{_includedir}/libmypaint-gegl | |
2eae194f AM |
121 | %{_pkgconfigdir}/libmypaint.pc |
122 | %{_pkgconfigdir}/libmypaint-gegl.pc | |
1e1b7669 JB |
123 | %{_datadir}/gir-1.0/MyPaint-1.6.gir |
124 | %{_datadir}/gir-1.0/MyPaintGegl-1.6.gir | |
81e4cf1a JB |
125 | |
126 | %if %{with apidocs} | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
1e1b7669 | 129 | %doc doc/build/{search,*.css,*.html,*.js,*.png} |
81e4cf1a | 130 | %endif |