[4878] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[1446] | 3 | Name: orc |
---|
| 4 | Summary: The Oil Run-time Compiler |
---|
[4878] | 5 | Version: 0.4.16 |
---|
[2219] | 6 | Release: 1%{?_dist_release} |
---|
[1446] | 7 | |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | License: BSD |
---|
| 10 | URL: http://code.entropywave.com/projects/orc/ |
---|
| 11 | Source0: http://code.entropywave.com/download/orc/orc-%{version}.tar.gz |
---|
| 12 | |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: gtk-doc, libtool |
---|
| 15 | |
---|
[4616] | 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
[1446] | 18 | |
---|
[4616] | 19 | |
---|
[1446] | 20 | %description |
---|
| 21 | Orc is a library and set of tools for compiling and executing |
---|
| 22 | very simple programs that operate on arrays of data. The "language" |
---|
| 23 | is a generic assembly language that represents many of the features |
---|
| 24 | available in SIMD architectures, including saturated addition and |
---|
| 25 | subtraction, and many arithmetic operations. |
---|
| 26 | |
---|
| 27 | %package doc |
---|
| 28 | Summary: Documentation for Orc |
---|
| 29 | Group: Development/Documentation |
---|
| 30 | Requires: %{name} = %{version}-%{release} |
---|
| 31 | #BuildArch: noarch |
---|
| 32 | |
---|
| 33 | %description doc |
---|
| 34 | Documentation for Orc. |
---|
| 35 | |
---|
| 36 | %package devel |
---|
| 37 | Summary: Development files and static libraries for Orc |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Requires: %{name}-compiler |
---|
| 41 | Requires: pkgconfig |
---|
| 42 | |
---|
| 43 | %description devel |
---|
| 44 | This package contains the files needed to build packages that depend |
---|
| 45 | on orc. |
---|
| 46 | |
---|
| 47 | %package compiler |
---|
| 48 | Summary: Orc compiler |
---|
| 49 | Group: Development/Libraries |
---|
| 50 | Requires: %{name} = %{version}-%{release} |
---|
| 51 | Requires: pkgconfig |
---|
| 52 | |
---|
| 53 | %description compiler |
---|
| 54 | The Orc compiler, to produce optimized code. |
---|
| 55 | |
---|
[4878] | 56 | %package -n compat32-%{name} |
---|
| 57 | Summary: The Oil Run-time Compiler |
---|
| 58 | Group: System Environment/Libraries |
---|
| 59 | Requires: %{name} = %{version}-%{release} |
---|
[1446] | 60 | |
---|
[4878] | 61 | %description -n compat32-%{name} |
---|
| 62 | Orc is a library and set of tools for compiling and executing |
---|
| 63 | very simple programs that operate on arrays of data. The "language" |
---|
| 64 | is a generic assembly language that represents many of the features |
---|
| 65 | available in SIMD architectures, including saturated addition and |
---|
| 66 | subtraction, and many arithmetic operations. |
---|
| 67 | |
---|
| 68 | %package -n compat32-%{name}-devel |
---|
| 69 | Summary: Development files and static libraries for Orc |
---|
| 70 | Group: Development/Libraries |
---|
| 71 | Requires: compat32-%{name} = %{version}-%{release} |
---|
| 72 | Requires: pkgconfig |
---|
| 73 | |
---|
| 74 | %description -n compat32-%{name}-devel |
---|
| 75 | This package contains the files needed to build packages that depend |
---|
| 76 | on orc. |
---|
| 77 | |
---|
| 78 | |
---|
[1446] | 79 | %prep |
---|
| 80 | %setup -q |
---|
| 81 | autoreconf -vif |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | %build |
---|
[1472] | 85 | export CFLAGS=`echo $RPM_OPT_FLAGS | sed 's/-O2/-O1/g'` |
---|
| 86 | export CXXFLAGS=`echo $RPM_OPT_FLAGS | sed 's/-O2/-O1/g'` |
---|
[1446] | 87 | %configure --disable-static --enable-gtk-doc |
---|
| 88 | |
---|
| 89 | make %{?_smp_mflags} |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %install |
---|
| 93 | rm -rf %{buildroot} |
---|
| 94 | make install DESTDIR=%{buildroot} INSTALL="install -p" |
---|
| 95 | |
---|
| 96 | # Remove unneeded files. |
---|
| 97 | find %{buildroot}/%{_libdir} -name \*.a -or -name \*.la -delete |
---|
| 98 | rm -rf %{buildroot}/%{_libdir}/orc |
---|
| 99 | |
---|
| 100 | touch -r stamp-h1 %{buildroot}%{_includedir}/%{name}-0.4/orc/orc-stdint.h |
---|
| 101 | |
---|
| 102 | %clean |
---|
| 103 | rm -rf %{buildroot} |
---|
| 104 | |
---|
| 105 | %check |
---|
[2219] | 106 | make check || true |
---|
[1446] | 107 | |
---|
| 108 | %post -p /sbin/ldconfig |
---|
| 109 | |
---|
| 110 | %postun -p /sbin/ldconfig |
---|
| 111 | |
---|
[4878] | 112 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
| 113 | |
---|
| 114 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 115 | |
---|
[1446] | 116 | %files |
---|
| 117 | %defattr(-,root,root,-) |
---|
| 118 | %doc COPYING README |
---|
[4616] | 119 | %{_bindir}/orc-bugreport |
---|
[1446] | 120 | %{_libdir}/liborc-*.so.* |
---|
| 121 | |
---|
| 122 | %files doc |
---|
| 123 | %defattr(-,root,root,-) |
---|
| 124 | %doc %{_datadir}/gtk-doc/html/orc/ |
---|
| 125 | |
---|
| 126 | %files devel |
---|
| 127 | %defattr(-,root,root,-) |
---|
| 128 | %doc examples/*.c |
---|
| 129 | %{_includedir}/%{name}-0.4/ |
---|
| 130 | %{_libdir}/liborc-*.so |
---|
| 131 | %{_libdir}/pkgconfig/orc-0.4.pc |
---|
[4878] | 132 | %{_datadir}/aclocal/orc.m4 |
---|
[1446] | 133 | |
---|
| 134 | %files compiler |
---|
| 135 | %defattr(-,root,root,-) |
---|
| 136 | %{_bindir}/orcc |
---|
| 137 | |
---|
[4878] | 138 | %if %{build_compat32} |
---|
| 139 | %defattr(-,root,root,-) |
---|
| 140 | %files -n compat32-%{name} |
---|
| 141 | %{_libdir}/liborc-*.so.* |
---|
[1446] | 142 | |
---|
[4878] | 143 | %files -n compat32-%{name}-devel |
---|
| 144 | %defattr(-,root,root,-) |
---|
| 145 | %{_libdir}/liborc-*.so |
---|
| 146 | %{_libdir}/pkgconfig/orc-0.4.pc |
---|
| 147 | %endif |
---|
| 148 | |
---|
[1446] | 149 | %changelog |
---|
[4878] | 150 | * Sat Oct 08 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.16-1 |
---|
| 151 | - new upstream release |
---|
| 152 | - create compat32 sub packages |
---|
| 153 | |
---|
[4616] | 154 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.14-1 |
---|
| 155 | - new upstream release |
---|
| 156 | |
---|
[2219] | 157 | * Sat Nov 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.11-1 |
---|
| 158 | - new upstream release |
---|
| 159 | |
---|
[1942] | 160 | * Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.5-5 |
---|
| 161 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 162 | |
---|
[1472] | 163 | * Fri Jul 30 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4.5-4 |
---|
| 164 | - build with -O1 (not -O2) to fix build failure on ppc |
---|
| 165 | (like as the Debian package does) |
---|
| 166 | |
---|
[1446] | 167 | * Sun Jul 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4.5-3 |
---|
| 168 | - Initial build for Vine Linux |
---|
| 169 | |
---|
| 170 | * Sun Jun 13 2010 Fabian Deutsch <fabiand@fedoraproject.org> - 0.4.5-2 |
---|
| 171 | - Added removed testing libraries to package. |
---|
| 172 | |
---|
| 173 | * Sun Jun 13 2010 Fabian Deutsch <fabiand@fedoraproject.org> - 0.4.5-1 |
---|
| 174 | - Updated to 0.4.5. |
---|
| 175 | - Removed testing libraries from package. |
---|
| 176 | |
---|
| 177 | * Mon Apr 05 2010 Fabian Deutsch <fabiand@fedoraproject.org> - 0.4.4-2 |
---|
| 178 | - Docs as noarch. |
---|
| 179 | - Sanitize timestamps of header files. |
---|
| 180 | - orcc in -compiler subpackage. |
---|
| 181 | |
---|
| 182 | * Tue Mar 30 2010 Fabian Deutsch <fabiand@fedoraproject.org> - 0.4.4-1 |
---|
| 183 | - Updated to 0.4.4: Includes bugfixes for x86_64. |
---|
| 184 | |
---|
| 185 | * Wed Mar 17 2010 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.3-2 |
---|
| 186 | - Running autoreconf to prevent building problems. |
---|
| 187 | - Added missing files to docs. |
---|
| 188 | - Added examples to devel docs. |
---|
| 189 | |
---|
| 190 | * Thu Mar 04 2010 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.3-1 |
---|
| 191 | - Updated to 0.4.3 |
---|
| 192 | |
---|
| 193 | * Sun Oct 18 2009 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.2-4 |
---|
| 194 | - Removed unused libdir |
---|
| 195 | |
---|
| 196 | * Sun Oct 18 2009 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.2-3 |
---|
| 197 | - Specfile cleanup |
---|
| 198 | - Removed tools subpackage |
---|
| 199 | - Added docs subpackage |
---|
| 200 | |
---|
| 201 | * Sat Oct 03 2009 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.2-2 |
---|
| 202 | - Use orc as pakage name |
---|
| 203 | - spec-file cleanup |
---|
| 204 | - Added devel requirements |
---|
| 205 | - Removed an rpath issue |
---|
| 206 | |
---|
| 207 | * Fri Oct 02 2009 Fabian Deutsch <fabian.deutsch@gmx.de> - 0.4.2-1 |
---|
| 208 | - Initial release |
---|
| 209 | |
---|