]> git.pld-linux.org Git - SPECS.git/blob - libicns.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libicns.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # static library
4 #
5 Summary:        Library for manipulating Macintosh icns files
6 Summary(pl.UTF-8):      Biblioteka do operowania na plikach icns z Macintosha
7 Name:           libicns
8 Version:        0.8.1
9 Release:        5
10 Group:          Libraries
11 # libicns, icns2png and icontainer2icns are under LGPLv2+
12 # png2icns is under GPLv2+
13 License:        LGPL v2+ (library and most tools), GPL v2+ (png2icns)
14 Source0:        http://downloads.sourceforge.net/icns/%{name}-%{version}.tar.gz
15 # Source0-md5:  7a9b74b84ce08c5b11bdee3cad296dd3
16 URL:            http://icns.sourceforge.net/
17 BuildRequires:  jasper-devel
18 BuildRequires:  libpng-devel
19 BuildRequires:  pkgconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 libicns is a library providing functionality for easily reading and
24 writing Macintosh icns files.
25
26 %description -l pl.UTF-8
27 libicns to biblioteka umożliwiająca łatwy odczyt i zapis plików icns z
28 Macintosha.
29
30 %package devel
31 Summary:        Development files for libicns library
32 Summary(pl.UTF-8):      Pliki programistyczne biblioteki libicns
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 This package contains the header files for developing applications
38 that use libicns.
39
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
42 wykorzystujących libicns.
43
44 %package static
45 Summary:        Static libicns library
46 Summary(pl.UTF-8):      Statyczna biblioteka libicns
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static libicns library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libicns.
55
56 %prep
57 %setup -q
58
59 %build
60 %configure \
61         %{!?with_static_libs:--disable-static}
62
63 %{__make}
64
65 %install
66 rm -rf $RPM_BUILD_ROOT
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libicns.la
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS ChangeLog NEWS README TODO
81 %attr(755,root,root) %{_bindir}/icns2png
82 %attr(755,root,root) %{_bindir}/icontainer2icns
83 %attr(755,root,root) %{_bindir}/png2icns
84 %attr(755,root,root) %{_libdir}/libicns.so.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libicns.so.1
86 %{_mandir}/man1/icns2png.1*
87 %{_mandir}/man1/icontainer2icns.1*
88 %{_mandir}/man1/png2icns.1*
89
90 %files devel
91 %defattr(644,root,root,755)
92 %doc src/apidocs.html
93 %attr(755,root,root) %{_libdir}/libicns.so
94 %{_includedir}/icns.h
95 %{_pkgconfigdir}/libicns.pc
96
97 %if %{with static_libs}
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/libicns.a
101 %endif
This page took 1.104255 seconds and 3 git commands to generate.