]>
Commit | Line | Data |
---|---|---|
ea049d2d JB |
1 | Summary: Simple Image Loading LibrarY |
2 | Summary(pl.UTF-8): Simple Image Loading LibrarY - prosta biblioteka do wczytywania obrazów | |
3 | Name: SILLY | |
4 | Version: 0.1.0 | |
8432e7fd | 5 | Release: 6 |
ea049d2d JB |
6 | License: MIT-like |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/crayzedsgui/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: c3721547fced7792a36ffc9ce6ec23fd | |
10 | Source1: http://dl.sourceforge.net/crayzedsgui/%{name}-DOCS-%{version}.tar.gz | |
11 | # Source1-md5: e52e9043b21a9d35a6da66ce9e84d3e1 | |
631a2e19 | 12 | Patch0: %{name}-link.patch |
8432e7fd | 13 | Patch1: %{name}-libpng15.patch |
ea049d2d | 14 | URL: http://www.cegui.org.uk/wiki/index.php/SILLY |
631a2e19 MB |
15 | BuildRequires: autoconf >= 2.59 |
16 | BuildRequires: automake | |
ea049d2d JB |
17 | BuildRequires: libjpeg-devel |
18 | BuildRequires: libpng-devel >= 2:1.2.10 | |
19 | BuildRequires: libstdc++-devel | |
631a2e19 | 20 | BuildRequires: libtool |
2e85c8e7 | 21 | BuildRequires: pkgconfig |
ea049d2d JB |
22 | Requires: libpng >= 2:1.2.10 |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | SILLY means Simple Image Loading LibrarY. The aim of this library is | |
27 | to provide a simple library for loading image in the context of CEGUI. | |
28 | The library supports only the most common image format. The project | |
29 | was initialy launch in order to provide an MIT based replacement of | |
30 | DevIL with less image format supported and focused on loading image | |
31 | only. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | SILLY oznacza Simple Image Loading LibrarY (prostą bibliotekę do | |
35 | wczytywania obrazów). Celem projektu jest udostępnienie prostej | |
36 | biblioteki do wczytywania obrazów w kontekście CEGUI. Obsługuje tylko | |
37 | najpopularniejsze formaty obrazów. Projekt został zapoczątkowany w | |
38 | celu zapewnienia zamiennika MIT biblioteki DevIL z mniejszą liczbą | |
d2aedbd8 | 39 | obsługiwanych formatów i skupiającego się tylko na wczytywaniu obrazów. |
ea049d2d JB |
40 | |
41 | %package devel | |
42 | Summary: Header files for SILLY library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SILLY | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: libjpeg-devel | |
47 | Requires: libpng-devel >= 2:1.2.10 | |
48 | Requires: libstdc++-devel | |
49 | ||
50 | %description devel | |
51 | Header files for SILLY library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki SILLY. | |
55 | ||
56 | %package static | |
57 | Summary: Static SILLY library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka SILLY | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static SILLY library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka SILLY. | |
67 | ||
68 | %prep | |
69 | %setup -q -b 1 | |
631a2e19 | 70 | %patch0 -p1 |
8432e7fd | 71 | %patch1 -p1 |
ea049d2d JB |
72 | |
73 | %build | |
631a2e19 MB |
74 | %{__libtoolize} |
75 | %{__aclocal} | |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
79 | %configure \ | |
80 | --with-zlib-libdir="%{_lib}" | |
ea049d2d JB |
81 | %{__make} |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS COPYING ChangeLog | |
98 | %attr(755,root,root) %{_libdir}/libSILLY.so.*.*.* | |
631a2e19 | 99 | %attr(755,root,root) %ghost %{_libdir}/libSILLY.so.1 |
ea049d2d JB |
100 | |
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %doc doc/html/* | |
104 | %attr(755,root,root) %{_libdir}/libSILLY.so | |
105 | %{_libdir}/libSILLY.la | |
106 | %{_includedir}/SILLY | |
107 | %{_pkgconfigdir}/SILLY.pc | |
108 | ||
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libSILLY.a |