1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libmng |
---|
4 | Summary: A library of functions for manipulating MNG format files. |
---|
5 | Version: 2.0.2 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | |
---|
8 | Group: System Environment/Libraries |
---|
9 | License: AS IS |
---|
10 | URL: http://sourceforge.net/projects/libmng/ |
---|
11 | |
---|
12 | Source: http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.xz |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
15 | BuildRequires: automake |
---|
16 | BuildRequires: autoconf |
---|
17 | BuildRequires: lcms2-devel |
---|
18 | BuildRequires: libjpeg-devel |
---|
19 | BuildRequires: libtool |
---|
20 | BuildRequires: zlib-devel |
---|
21 | |
---|
22 | Vendor: Project Vine |
---|
23 | Distribution: Vine Linux |
---|
24 | |
---|
25 | %description |
---|
26 | libmng - library for reading, writing, displaying and examing |
---|
27 | Multiple-Image Network Graphics. MNG is the animation extension to the |
---|
28 | popular PNG image-format. |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development tools for programs to manipulate MNG format files. |
---|
32 | Group: Development/Libraries |
---|
33 | Requires: %{name} = %{version}-%{release} |
---|
34 | Requires: lcms2-devel |
---|
35 | Requires: libjpeg-devel |
---|
36 | Requires: zlib-devel |
---|
37 | Requires: pkgconfig |
---|
38 | |
---|
39 | %description devel |
---|
40 | The libmng-devel package contains the header files |
---|
41 | necessary for developing programs using the MNG |
---|
42 | (Multiple-Image Network Graphics) library. |
---|
43 | |
---|
44 | %package static |
---|
45 | Summary: Static libraries of %{name} |
---|
46 | Group: Development/Libraries |
---|
47 | Requires: %{name}-devel = %{version}-%{release} |
---|
48 | |
---|
49 | %description static |
---|
50 | The libmng-static package contains static libraries. |
---|
51 | |
---|
52 | # compat32 |
---|
53 | %package -n compat32-%{name} |
---|
54 | Summary: A library of functions for manipulating MNG format files. |
---|
55 | Group: System Environment/Libraries |
---|
56 | Requires: %{name} = %{version}-%{release} |
---|
57 | |
---|
58 | %description -n compat32-%{name} |
---|
59 | libmng - library for reading, writing, displaying and examing |
---|
60 | Multiple-Image Network Graphics. MNG is the animation extension to the |
---|
61 | popular PNG image-format. |
---|
62 | |
---|
63 | %package -n compat32-%{name}-devel |
---|
64 | Summary: Development tools for programs to manipulate MNG format files. |
---|
65 | Group: Development/Libraries |
---|
66 | Requires: %{name}-devel = %{version}-%{release} |
---|
67 | Requires: compat32-%{name} = %{version}-%{release} |
---|
68 | Requires: compat32-lcms2-devel |
---|
69 | Requires: compat32-libjpeg-devel |
---|
70 | Requires: compat32-zlib-devel |
---|
71 | |
---|
72 | %description -n compat32-%{name}-devel |
---|
73 | The libmng-devel package contains the header files |
---|
74 | necessary for developing programs using the MNG |
---|
75 | (Multiple-Image Network Graphics) library. |
---|
76 | |
---|
77 | |
---|
78 | %prep |
---|
79 | %setup -q |
---|
80 | |
---|
81 | %build |
---|
82 | #cp -p makefiles/configure.in . |
---|
83 | #cp -p makefiles/Makefile.am . |
---|
84 | |
---|
85 | #libtoolize -f -c |
---|
86 | #aclocal |
---|
87 | #automake -a -c |
---|
88 | #autoconf |
---|
89 | |
---|
90 | %configure --enable-shared --with-zlib --with-jpeg \ |
---|
91 | --with-gnu-ld --with-lcms |
---|
92 | make |
---|
93 | |
---|
94 | %install |
---|
95 | rm -rf $RPM_BUILD_ROOT |
---|
96 | %makeinstall |
---|
97 | |
---|
98 | rm $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
99 | |
---|
100 | %clean |
---|
101 | rm -rf $RPM_BUILD_ROOT |
---|
102 | |
---|
103 | %post -p /sbin/ldconfig |
---|
104 | |
---|
105 | %postun -p /sbin/ldconfig |
---|
106 | |
---|
107 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
108 | |
---|
109 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
110 | |
---|
111 | %files |
---|
112 | %defattr(-,root,root) |
---|
113 | %doc CHANGES LICENSE README doc |
---|
114 | %{_libdir}/*.so.* |
---|
115 | %{_mandir}/man*/* |
---|
116 | |
---|
117 | %files devel |
---|
118 | %defattr(-,root,root) |
---|
119 | %{_includedir}/* |
---|
120 | %{_libdir}/*.so |
---|
121 | %{_libdir}/pkgconfig/%{name}.pc |
---|
122 | |
---|
123 | %files static |
---|
124 | %defattr(-,root,root) |
---|
125 | %{_libdir}/*.a |
---|
126 | |
---|
127 | # compat32 |
---|
128 | %if %{build_compat32} |
---|
129 | %files -n compat32-%{name} |
---|
130 | %defattr(-,root,root) |
---|
131 | %{_libdir}/*.so.* |
---|
132 | |
---|
133 | %files -n compat32-%{name}-devel |
---|
134 | %defattr(-,root,root) |
---|
135 | %{_libdir}/*.so |
---|
136 | %endif |
---|
137 | |
---|
138 | %changelog |
---|
139 | * Mon Dec 30 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.2-1 |
---|
140 | - update to 2.0.2 |
---|
141 | - change BuildRequires; lcms2-devel instead of lcms-devel |
---|
142 | |
---|
143 | * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.10-4 |
---|
144 | - rebuilt with new toolchain |
---|
145 | - s/BuildPrereq/BuildRequires/g |
---|
146 | |
---|
147 | * Mon Jul 20 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.10-3 |
---|
148 | - added compat32 package for x86_64 arch support |
---|
149 | |
---|
150 | * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-2 |
---|
151 | - add libmng-static which is needed by tuxonice-userui |
---|
152 | - remove --disable-static |
---|
153 | - remove Obsoletes: libmng-static |
---|
154 | |
---|
155 | * Wed Mar 19 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.10-1 |
---|
156 | - new upstream release |
---|
157 | - delete *.la |
---|
158 | - add --disable-static |
---|
159 | |
---|
160 | * Sat May 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.9-0vl1 |
---|
161 | - updated to 1.0.9 |
---|
162 | - added BuildPrereq: automake, autoconf, libtool |
---|
163 | |
---|
164 | * Sun May 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.7-0vl3 |
---|
165 | - add BuildPrereq: lcms-devel and Requires: lcms |
---|
166 | - add Requires: zlib-devel libjpeg-devel lcms-devel to -devel pkg |
---|
167 | - add --with-lcms to configure option |
---|
168 | |
---|
169 | * Wed May 11 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.0.7-0vl2 |
---|
170 | - rebuilt to fix unwanted dependencies with lcms (ppc only) |
---|
171 | |
---|
172 | * Thu Apr 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.7-0vl1 |
---|
173 | - rebuild with new toolchains |
---|
174 | - updated to 1.0.7 |
---|
175 | |
---|
176 | * Tue Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl2 |
---|
177 | - License: AS IS |
---|
178 | - Obsoletes: libmng-static, and merge %%{prefix}/lib/*.a to -devel pkg |
---|
179 | - add PreReq: ldconfig |
---|
180 | - revised summaries and descriptions |
---|
181 | |
---|
182 | * Tue Oct 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0.4-0vl1 |
---|
183 | - source upgrade |
---|
184 | - add %%doc Changes LICENSE README doc |
---|
185 | - add Requires: %%{name} = %%{version}-%%{release} for devel package |
---|
186 | - add Requires: %%{name}-devel = %%{version}-%%{release} for static package |
---|
187 | |
---|
188 | * Sat Oct 13 2001 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 1.0.3-0vl1 |
---|
189 | - Update to 1.0.3 |
---|
190 | - Build for VineSeed |
---|
191 | |
---|
192 | * Mon Jun 11 2001 net_hal <net_hal@cwa.bai.ne.jp> |
---|
193 | - First build for Vine2.1.5 |
---|
194 | |
---|
195 | * Wed Apr 11 2001 Rex Dieter <rdieter@unl.edu> 1.0.0-0.6x.2 |
---|
196 | - redhat6 backport based on rawhide's libmng-1.0.0-2 |
---|
197 | |
---|
198 | * Wed Feb 28 2001 Trond Eivind Glomsrd <teg@redhat.com> |
---|
199 | - remove bogus symlink trick |
---|
200 | |
---|
201 | * Mon Feb 26 2001 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
202 | - Update to 1.0.0 to make Qt 2.3.0 happy |
---|
203 | |
---|
204 | * Fri Jan 19 2001 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
205 | - 0.9.4, fixes MNG 1.0 spec compliance |
---|
206 | |
---|
207 | * Tue Dec 19 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
208 | - 0.9.3 |
---|
209 | - Add ldconfig calls in %%post and %%postun |
---|
210 | |
---|
211 | * Tue Dec 05 2000 Florian La Roche <Florian.LaRoche@redhat.de> |
---|
212 | - added a clean section to the spec file |
---|
213 | |
---|
214 | * Tue Sep 19 2000 Bernhard Rosenkraenzer <bero@redhat.com> |
---|
215 | - initial rpm |
---|
216 | |
---|