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