]>
Commit | Line | Data |
---|---|---|
202472b6 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Library for parsing the FreeHand file format structure | |
6 | Summary(pl.UTF-8): Biblioteka do analizy struktury formatu plików FreeHand | |
7 | Name: libfreehand | |
3a77a8ab | 8 | Version: 0.1.1 |
202472b6 JB |
9 | Release: 1 |
10 | License: MPL v2.0 | |
11 | Group: Libraries | |
3a77a8ab JB |
12 | Source0: http://dev-www.libreoffice.org/src/libfreehand/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 97eb6a8607de3c101ad05ceacc122107 | |
202472b6 JB |
14 | URL: http://www.freedesktop.org/wiki/Software/libfreehand/ |
15 | BuildRequires: doxygen | |
16 | BuildRequires: gperf >= 3.0.0 | |
3a77a8ab JB |
17 | BuildRequires: lcms2-devel >= 2 |
18 | BuildRequires: libicu-devel | |
dae4307d | 19 | BuildRequires: librevenge-devel >= 0.0 |
202472b6 | 20 | BuildRequires: libstdc++-devel |
202472b6 JB |
21 | BuildRequires: pkgconfig >= 1:0.20 |
22 | BuildRequires: tar >= 1:1.22 | |
23 | BuildRequires: xz | |
24 | BuildRequires: zlib-devel | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Libfreehand is library providing ability to interpret and import | |
29 | Adobe/Macromedia drawings into various applications. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Libfreehand to biblioteka umożliwiająca interpretowanie i import do | |
33 | różnych aplikacji rysunków w formacie Adobe/Macromedia. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for libfreehand library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfreehand | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
dae4307d | 40 | Requires: librevenge-devel >= 0.0 |
202472b6 | 41 | Requires: libstdc++-devel |
dae4307d | 42 | Requires: zlib-devel |
202472b6 JB |
43 | |
44 | %description devel | |
45 | Header files for libfreehand library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki libfreehand. | |
49 | ||
50 | %package static | |
51 | Summary: Static libfreehand library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka libfreehand | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static libfreehand library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka libfreehand. | |
61 | ||
62 | %package apidocs | |
63 | Summary: libfreehand API documentation | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki libfreehand | |
65 | Group: Documentation | |
66 | ||
67 | %description apidocs | |
68 | API documentation for libfreehand library. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API biblioteki libfreehand. | |
72 | ||
dae4307d JB |
73 | %package tools |
74 | Summary: Tools to transform FreeHand drawings into other formats | |
75 | Summary(pl.UTF-8): Programy przekształcania rysunków FreeHand do innych formatów | |
76 | Group: Applications/Publishing | |
77 | Requires: %{name} = %{version}-%{release} | |
78 | ||
79 | %description tools | |
80 | Tools to transform FreeHand drawings into other formats. Currently | |
81 | supported: SVG, raw. | |
82 | ||
83 | %description tools -l pl.UTF-8 | |
84 | Narzędzia do przekształcania rysunków FreeHand do innych formatów. | |
85 | Aktualnie obsługiwane są SVG i format surowy. | |
86 | ||
202472b6 JB |
87 | %prep |
88 | %setup -q | |
89 | ||
90 | %build | |
91 | %configure \ | |
92 | --disable-silent-rules \ | |
93 | %{?with_static_libs:--enable-static} | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | # obsoleted by pkg-config | |
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libfreehand-*.la | |
104 | # packaged as %doc in -apidocs | |
105 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libfreehand | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post -p /sbin/ldconfig | |
111 | %postun -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
dae4307d JB |
115 | %doc AUTHORS ChangeLog NEWS |
116 | %attr(755,root,root) %{_libdir}/libfreehand-0.1.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libfreehand-0.1.so.1 | |
202472b6 JB |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
dae4307d JB |
121 | %attr(755,root,root) %{_libdir}/libfreehand-0.1.so |
122 | %{_includedir}/libfreehand-0.1 | |
123 | %{_pkgconfigdir}/libfreehand-0.1.pc | |
202472b6 JB |
124 | |
125 | %if %{with static_libs} | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
dae4307d | 128 | %{_libdir}/libfreehand-0.1.a |
202472b6 JB |
129 | %endif |
130 | ||
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %doc docs/doxygen/html/* | |
dae4307d JB |
134 | |
135 | %files tools | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_bindir}/fh2raw | |
138 | %attr(755,root,root) %{_bindir}/fh2svg | |
3a77a8ab | 139 | %attr(755,root,root) %{_bindir}/fh2text |