]> git.pld-linux.org Git - packages/libfreehand.git/blame - libfreehand.spec
- unconditional noarch subpackages
[packages/libfreehand.git] / libfreehand.spec
CommitLineData
202472b6
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
8c7116cb 4
202472b6
JB
5Summary: Library for parsing the FreeHand file format structure
6Summary(pl.UTF-8): Biblioteka do analizy struktury formatu plików FreeHand
7Name: libfreehand
bcfa40db
AM
8Version: 0.1.2
9Release: 1
202472b6
JB
10License: MPL v2.0
11Group: Libraries
3a77a8ab 12Source0: http://dev-www.libreoffice.org/src/libfreehand/%{name}-%{version}.tar.xz
bcfa40db 13# Source0-md5: c3788f5686839fd097bd77d8f51c3d04
fe18e021 14Patch0: icu65.patch
202472b6 15URL: http://www.freedesktop.org/wiki/Software/libfreehand/
6eeaab72 16BuildRequires: boost-devel
202472b6
JB
17BuildRequires: doxygen
18BuildRequires: gperf >= 3.0.0
3a77a8ab
JB
19BuildRequires: lcms2-devel >= 2
20BuildRequires: libicu-devel
dae4307d 21BuildRequires: librevenge-devel >= 0.0
6eeaab72
JB
22BuildRequires: libstdc++-devel >= 6:4.7
23BuildRequires: perl-base
202472b6
JB
24BuildRequires: pkgconfig >= 1:0.20
25BuildRequires: tar >= 1:1.22
26BuildRequires: xz
27BuildRequires: zlib-devel
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Libfreehand is library providing ability to interpret and import
32Adobe/Macromedia drawings into various applications.
33
34%description -l pl.UTF-8
35Libfreehand to biblioteka umożliwiająca interpretowanie i import do
36różnych aplikacji rysunków w formacie Adobe/Macromedia.
37
38%package devel
39Summary: Header files for libfreehand library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfreehand
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
dae4307d 43Requires: librevenge-devel >= 0.0
6eeaab72 44Requires: libstdc++-devel >= 6:4.7
dae4307d 45Requires: zlib-devel
202472b6
JB
46
47%description devel
48Header files for libfreehand library.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe biblioteki libfreehand.
52
53%package static
54Summary: Static libfreehand library
55Summary(pl.UTF-8): Statyczna biblioteka libfreehand
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static libfreehand library.
61
62%description static -l pl.UTF-8
63Statyczna biblioteka libfreehand.
64
65%package apidocs
66Summary: libfreehand API documentation
67Summary(pl.UTF-8): Dokumentacja API biblioteki libfreehand
68Group: Documentation
8c7116cb 69BuildArch: noarch
202472b6
JB
70
71%description apidocs
72API documentation for libfreehand library.
73
74%description apidocs -l pl.UTF-8
75Dokumentacja API biblioteki libfreehand.
76
dae4307d
JB
77%package tools
78Summary: Tools to transform FreeHand drawings into other formats
79Summary(pl.UTF-8): Programy przekształcania rysunków FreeHand do innych formatów
80Group: Applications/Publishing
81Requires: %{name} = %{version}-%{release}
82
83%description tools
84Tools to transform FreeHand drawings into other formats. Currently
85supported: SVG, raw.
86
87%description tools -l pl.UTF-8
88Narzędzia do przekształcania rysunków FreeHand do innych formatów.
89Aktualnie 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
103rm -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
114rm -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
This page took 0.113857 seconds and 4 git commands to generate.