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