]> git.pld-linux.org Git - packages/lasem.git/blame - lasem.spec
- new
[packages/lasem.git] / lasem.spec
CommitLineData
15b99af8
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
4%bcond_without static_libs # don't build static libraries
5#
6Summary: Lasem - MathML and SVG rendering library
7Summary(pl.UTF-8): Lasem - biblioteka do renderowania MathML i SVG
8Name: lasem
9Version: 0.4.1
10Release: 1
11License: LGPL v2+
12Group: Libraries
13Source0: http://ftp.gnome.org/pub/GNOME/sources/lasem/0.4/%{name}-%{version}.tar.xz
14# Source0-md5: 05f24217fbd83504a3d867e6d71909ed
15URL: http://live.gnome.org/Lasem
16BuildRequires: bison
17BuildRequires: cairo-devel >= 1.2
18BuildRequires: flex
19BuildRequires: gdk-pixbuf2-devel >= 2.16
20BuildRequires: gettext-devel
21BuildRequires: glib2-devel >= 2.0
22BuildRequires: gobject-introspection-devel >= 0.6.7
23BuildRequires: gtk-doc >= 1.14
24BuildRequires: intltool >= 0.45.0
25BuildRequires: libxml2-devel >= 2.0
26BuildRequires: pango-devel >= 1:1.16.0
27BuildRequires: pkgconfig
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
30Requires: cairo >= 1.2
31Requires: gdk-pixbuf2 >= 2.16
32Requires: pango >= 1:1.16.0
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Lasem aims to be a C/GObject based SVG/MathML renderer and editor,
37supporting CSS style sheets (only rendering is implemented for now).
38It uses cairo and pango as its rendering abstraction layer, and then
39support numerous output formats: xlib, PNG, SVG, PDF, PS, EPS...
40
41%description -l pl.UTF-8
42Lasem ma być opartą na C/GObject biblioteką do renderowania i edycji
43SVG/MathML z obsługą arkuszy stylów CSS (na razie zaimplementowane
44jest tylko renderowanie). Wykorzystuje cairo i pango jako warstwę
45abstrakcji przy renderowaniu, a następnie obsługuje wiele formatów
46wyjściowych: xlib, PNG, SVG, PDF, PS, EPS...
47
48%package devel
49Summary: Header files for lasem library
50Summary(pl.UTF-8): Pliki nagłówkowe biblioteki lasem
51Group: Development/Libraries
52Requires: %{name} = %{version}-%{release}
53Requires: cairo-devel >= 1.2
54Requires: gdk-pixbuf2-devel >= 2.16
55Requires: glib2-devel >= 2.0
56Requires: libxml2-devel >= 2.0
57Requires: pango-devel >= 1:1.16.0
58
59%description devel
60Header files for lasem library.
61
62%description devel -l pl.UTF-8
63Pliki nagłówkowe biblioteki lasem.
64
65%package static
66Summary: Static lasem library
67Summary(pl.UTF-8): Statyczna biblioteka lasem
68Group: Development/Libraries
69Requires: %{name}-devel = %{version}-%{release}
70
71%description static
72Static lasem library.
73
74%description static -l pl.UTF-8
75Statyczna biblioteka lasem.
76
77%package apidocs
78Summary: lasem API documentation
79Summary(pl.UTF-8): Dokumentacja API biblioteki lasem
80Group: Documentation
81
82%description apidocs
83API documentation for lasem library.
84
85%description apidocs -l pl.UTF-8
86Dokumentacja API biblioteki lasem.
87
88%prep
89%setup -q
90
91%build
92%configure \
93 --disable-silent-rules \
94 %{!?with_static_libs:--disable-static} \
95 --with-html-dir=%{_gtkdocdir}
96%{__make}
97
98%install
99rm -rf $RPM_BUILD_ROOT
100
101%{__make} install \
102 DESTDIR=$RPM_BUILD_ROOT
103
104# obsoleted by pkg-config
105%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
106# packaged as %doc
107%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/lasem-0.4
108
109%find_lang %{name}-0.4
110
111%clean
112rm -rf $RPM_BUILD_ROOT
113
114%post -p /sbin/ldconfig
115%postun -p /sbin/ldconfig
116
117%files -f %{name}-0.4.lang
118%defattr(644,root,root,755)
119%doc AUTHORS NEWS README TODO
120%attr(755,root,root) %{_bindir}/lasem-render-0.4
121%attr(755,root,root) %{_libdir}/liblasem-0.4.so.*.*.*
122%attr(755,root,root) %ghost %{_libdir}/liblasem-0.4.so.4
123%{_libdir}/girepository-1.0/Lasem-0.4.typelib
124
125%files devel
126%defattr(644,root,root,755)
127%attr(755,root,root) %{_libdir}/liblasem-0.4.so
128%{_includedir}/lasem-0.4
129%{_datadir}/gir-1.0/Lasem-0.4.gir
130%{_pkgconfigdir}/lasem-0.4.pc
131
132%if %{with static_libs}
133%files static
134%defattr(644,root,root,755)
135%{_libdir}/liblasem-0.4.a
136%endif
137
138%if %{with apidocs}
139%files apidocs
140%defattr(644,root,root,755)
141%{_gtkdocdir}/lasem-0.4
142%endif
This page took 0.073878 seconds and 4 git commands to generate.