3 %bcond_without static_libs # static library
5 Summary: Library for manipulating Macintosh icns files
6 Summary(pl.UTF-8): Biblioteka do operowania na plikach icns z Macintosha
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)
23 libicns is a library providing functionality for easily reading and
24 writing Macintosh icns files.
26 %description -l pl.UTF-8
27 libicns to biblioteka umożliwiająca łatwy odczyt i zapis plików icns z
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}
37 This package contains the header files for developing applications
40 %description devel -l pl.UTF-8
41 Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
42 wykorzystujących libicns.
45 Summary: Static libicns library
46 Summary(pl.UTF-8): Statyczna biblioteka libicns
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 Static libicns library.
53 %description static -l pl.UTF-8
54 Statyczna biblioteka libicns.
61 %{!?with_static_libs:--disable-static}
66 rm -rf $RPM_BUILD_ROOT
68 DESTDIR=$RPM_BUILD_ROOT
70 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libicns.la
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
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*
91 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libicns.so
95 %{_pkgconfigdir}/libicns.pc
97 %if %{with static_libs}
99 %defattr(644,root,root,755)