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