]> git.pld-linux.org Git - packages/libfreehand.git/blob - libfreehand.spec
- unconditional noarch subpackages
[packages/libfreehand.git] / libfreehand.spec
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
8 Version:        0.1.2
9 Release:        1
10 License:        MPL v2.0
11 Group:          Libraries
12 Source0:        http://dev-www.libreoffice.org/src/libfreehand/%{name}-%{version}.tar.xz
13 # Source0-md5:  c3788f5686839fd097bd77d8f51c3d04
14 Patch0:         icu65.patch
15 URL:            http://www.freedesktop.org/wiki/Software/libfreehand/
16 BuildRequires:  boost-devel
17 BuildRequires:  doxygen
18 BuildRequires:  gperf >= 3.0.0
19 BuildRequires:  lcms2-devel >= 2
20 BuildRequires:  libicu-devel
21 BuildRequires:  librevenge-devel >= 0.0
22 BuildRequires:  libstdc++-devel >= 6:4.7
23 BuildRequires:  perl-base
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}
43 Requires:       librevenge-devel >= 0.0
44 Requires:       libstdc++-devel >= 6:4.7
45 Requires:       zlib-devel
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
69 BuildArch:      noarch
70
71 %description apidocs
72 API documentation for libfreehand library.
73
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libfreehand.
76
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
91 %prep
92 %setup -q
93 %patch0 -p1
94
95 %build
96 %configure \
97         --disable-silent-rules \
98         %{?with_static_libs:--enable-static} \
99         --disable-werror
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)
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
124
125 %files devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libfreehand-0.1.so
128 %{_includedir}/libfreehand-0.1
129 %{_pkgconfigdir}/libfreehand-0.1.pc
130
131 %if %{with static_libs}
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libfreehand-0.1.a
135 %endif
136
137 %files apidocs
138 %defattr(644,root,root,755)
139 %doc docs/doxygen/html/*
140
141 %files tools
142 %defattr(644,root,root,755)
143 %attr(755,root,root) %{_bindir}/fh2raw
144 %attr(755,root,root) %{_bindir}/fh2svg
145 %attr(755,root,root) %{_bindir}/fh2text
This page took 0.257862 seconds and 4 git commands to generate.