| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | |
|---|
| 3 | Summary: The Ogg bitstream file format library. |
|---|
| 4 | Name: libogg |
|---|
| 5 | Version: 1.2.0 |
|---|
| 6 | Release: 1%{?_dist_release} |
|---|
| 7 | |
|---|
| 8 | Group: System Environment/Libraries |
|---|
| 9 | License: BSD |
|---|
| 10 | URL: http://www.xiph.org/ |
|---|
| 11 | |
|---|
| 12 | Source: http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.gz |
|---|
| 13 | |
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 15 | BuildRequires: perl |
|---|
| 16 | |
|---|
| 17 | Vendor: Project Vine |
|---|
| 18 | Distribution: Vine Linux |
|---|
| 19 | |
|---|
| 20 | Packager: kenta, inagaki |
|---|
| 21 | |
|---|
| 22 | %description |
|---|
| 23 | Libogg is a library for manipulating Ogg bitstream file formats. |
|---|
| 24 | Libogg supports both making Ogg bitstreams and getting packets from |
|---|
| 25 | Ogg bitstreams. |
|---|
| 26 | |
|---|
| 27 | %package devel |
|---|
| 28 | Summary: Files needed for development using libogg. |
|---|
| 29 | Group: Development/Libraries |
|---|
| 30 | Requires: %{name} = %{version}-%{release} |
|---|
| 31 | |
|---|
| 32 | %description devel |
|---|
| 33 | The libogg-devel package contains the header files, static libraries |
|---|
| 34 | and documentation needed to develop applications with libogg. |
|---|
| 35 | |
|---|
| 36 | # compat32 |
|---|
| 37 | %package -n compat32-%{name} |
|---|
| 38 | Summary: The Ogg bitstream file format library. |
|---|
| 39 | Group: System Environment/Libraries |
|---|
| 40 | |
|---|
| 41 | %description -n compat32-%{name} |
|---|
| 42 | Libogg is a library for manipulating Ogg bitstream file formats. |
|---|
| 43 | Libogg supports both making Ogg bitstreams and getting packets from |
|---|
| 44 | Ogg bitstreams. |
|---|
| 45 | |
|---|
| 46 | %package -n compat32-%{name}-devel |
|---|
| 47 | Summary: Files needed for development using libogg. |
|---|
| 48 | Group: Development/Libraries |
|---|
| 49 | Requires: compat32-%{name} = %{version}-%{release} |
|---|
| 50 | Requires: %{name}-devel = %{version}-%{release} |
|---|
| 51 | |
|---|
| 52 | %description -n compat32-%{name}-devel |
|---|
| 53 | The libogg-devel package contains the header files, static libraries |
|---|
| 54 | and documentation needed to develop applications with libogg. |
|---|
| 55 | |
|---|
| 56 | %prep |
|---|
| 57 | %setup -q -n libogg-%{version} |
|---|
| 58 | |
|---|
| 59 | %build |
|---|
| 60 | perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure |
|---|
| 61 | perl -p -i -e "s/-ffast-math//" configure |
|---|
| 62 | |
|---|
| 63 | %configure --disable-static |
|---|
| 64 | make |
|---|
| 65 | |
|---|
| 66 | %install |
|---|
| 67 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 68 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 69 | |
|---|
| 70 | rm -f doc/libogg/Makefile* |
|---|
| 71 | #rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.a |
|---|
| 72 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
|---|
| 73 | |
|---|
| 74 | %clean |
|---|
| 75 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
|---|
| 76 | |
|---|
| 77 | %post -p /sbin/ldconfig |
|---|
| 78 | |
|---|
| 79 | %postun -p /sbin/ldconfig |
|---|
| 80 | |
|---|
| 81 | %post -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 82 | |
|---|
| 83 | %postun -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | %files |
|---|
| 87 | %defattr(-,root,root) |
|---|
| 88 | %doc AUTHORS CHANGES COPYING README |
|---|
| 89 | %{_libdir}/*.so.* |
|---|
| 90 | |
|---|
| 91 | %files devel |
|---|
| 92 | %defattr(-,root,root) |
|---|
| 93 | %doc doc/index.html doc/framing.html doc/oggstream.html |
|---|
| 94 | %doc doc/white-ogg.png doc/white-xifish.png |
|---|
| 95 | %doc doc/stream.png |
|---|
| 96 | %doc doc/libogg |
|---|
| 97 | %dir %{_includedir}/ogg |
|---|
| 98 | %{_includedir}/ogg/*.h |
|---|
| 99 | #{_libdir}/*.a |
|---|
| 100 | %{_libdir}/*.so |
|---|
| 101 | %{_libdir}/pkgconfig/*.pc |
|---|
| 102 | %{_datadir}/aclocal/ogg.m4 |
|---|
| 103 | |
|---|
| 104 | # compat32 |
|---|
| 105 | %if %{build_compat32} |
|---|
| 106 | %files -n compat32-%{name} |
|---|
| 107 | %{_libdir}/*.so.* |
|---|
| 108 | |
|---|
| 109 | %files -n compat32-%{name}-devel |
|---|
| 110 | %defattr(-,root,root) |
|---|
| 111 | #{_libdir}/*.a |
|---|
| 112 | %{_libdir}/*.so |
|---|
| 113 | %{_libdir}/pkgconfig/*.pc |
|---|
| 114 | %endif |
|---|
| 115 | |
|---|
| 116 | %changelog |
|---|
| 117 | * Tue Sep 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-1 |
|---|
| 118 | - new upstream release |
|---|
| 119 | - built with rpm-4.8.1 |
|---|
| 120 | |
|---|
| 121 | * Sun Nov 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.4-1 |
|---|
| 122 | - new upstream release |
|---|
| 123 | |
|---|
| 124 | * Fri Jun 19 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.3-3 |
|---|
| 125 | - used --disable-static option |
|---|
| 126 | - added Vendor, Distribution, Packager tag |
|---|
| 127 | |
|---|
| 128 | * Sat May 16 2009 NAKAMURA Kenta <kenta@vinelinux.org> 1.1.3-2 |
|---|
| 129 | - added compat32 package for x86_64 arch support |
|---|
| 130 | - removed lib*.a files from devel package |
|---|
| 131 | |
|---|
| 132 | * Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.3-1 |
|---|
| 133 | - applied new versioning policy |
|---|
| 134 | - removed lib*.la files from devel package |
|---|
| 135 | |
|---|
| 136 | * Mon May 14 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1.3-0vl2 |
|---|
| 137 | - rebuild with new toolchain |
|---|
| 138 | |
|---|
| 139 | * Tue Nov 29 2005 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.1.3-0vl1 |
|---|
| 140 | - source upgrade |
|---|
| 141 | |
|---|
| 142 | * Fri Oct 01 2004 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 1.1.2-0vl1 |
|---|
| 143 | - source upgrade |
|---|
| 144 | - update source-URL |
|---|
| 145 | |
|---|
| 146 | * Fri Mar 26 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1-0vl3 |
|---|
| 147 | - rebuild |
|---|
| 148 | |
|---|
| 149 | * Sat Nov 22 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1-0vl2 |
|---|
| 150 | - rebuild for VineSeedPlus |
|---|
| 151 | |
|---|
| 152 | * Fri Nov 21 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.1-0vl1 |
|---|
| 153 | - source upgrade |
|---|
| 154 | - build for VinePlus/2.6 |
|---|
| 155 | - add %%{_libdir}/*.la and %%{_libdir}/pkgconfig/*.pc to devel package |
|---|
| 156 | |
|---|
| 157 | * Sat Oct 4 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0-0vl3 |
|---|
| 158 | - rebuild with new toolchains |
|---|
| 159 | |
|---|
| 160 | * Sun Dec 15 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0-0vl2 |
|---|
| 161 | - rebuild with new toolchains |
|---|
| 162 | |
|---|
| 163 | * Wed Jul 24 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.0-0vl1 |
|---|
| 164 | - source upgrade |
|---|
| 165 | - update %description devel |
|---|
| 166 | - add PreReq: ldconfig |
|---|
| 167 | |
|---|
| 168 | * Sat Jan 12 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 0.99.3-1vl1 |
|---|
| 169 | - build for VineSeed |
|---|
| 170 | - delete Serial |
|---|
| 171 | - change version number to 0.99.3 (means 1.0rc3) |
|---|
| 172 | |
|---|
| 173 | * Tue Jan 1 2002 Bill Nottingham <notting@redhat.com> |
|---|
| 174 | - update to 1.0rc3 |
|---|
| 175 | |
|---|
| 176 | * Mon Aug 13 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 177 | - update to 1.0rc2 |
|---|
| 178 | |
|---|
| 179 | * Fri Jul 6 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 180 | - own %%{_includedir}/ogg |
|---|
| 181 | |
|---|
| 182 | * Tue Jun 19 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 183 | - update to 1.0rc1 |
|---|
| 184 | |
|---|
| 185 | * Mon Feb 26 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 186 | - fix license tag |
|---|
| 187 | |
|---|
| 188 | * Mon Feb 26 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 189 | - beta4 |
|---|
| 190 | |
|---|
| 191 | * Tue Feb 6 2001 Bill Nottingham <notting@redhat.com> |
|---|
| 192 | - update CVS in prep for beta4 |
|---|
| 193 | |
|---|
| 194 | * Thu Dec 27 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 195 | - update CVS |
|---|
| 196 | |
|---|
| 197 | * Tue Dec 11 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 198 | - fix bogus group |
|---|
| 199 | |
|---|
| 200 | * Fri Dec 01 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 201 | - rebuild because of broken fileutils |
|---|
| 202 | |
|---|
| 203 | * Mon Nov 13 2000 Bill Nottingham <notting@redhat.com> |
|---|
| 204 | - clean up specfile slightly |
|---|
| 205 | |
|---|
| 206 | * Sat Sep 02 2000 Jack Moffitt <jack@icecast.org> |
|---|
| 207 | - initial spec file created |
|---|