| 1 |
Name: GtkAda
|
| 2 |
Version: 2.14.0
|
| 3 |
Release: 1%{?dist}
|
| 4 |
Summary: Ada graphical toolkit based on Gtk+
|
| 5 |
Group: System Environment/Libraries
|
| 6 |
License: GPLv2+
|
| 7 |
URL: https://libre.adacore.com/GtkAda/
|
| 8 |
# Source is available, but requires registration
|
| 9 |
Source: GtkAda-gpl-%{version}.tgz
|
| 10 |
Patch0: GtkAda-gtk217.patch
|
| 11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 12 |
BuildRequires: gcc-gnat
|
| 13 |
BuildRequires: libgnat
|
| 14 |
BuildRequires: perl
|
| 15 |
BuildRequires: gtk2-devel
|
| 16 |
BuildRequires: libgnome-devel
|
| 17 |
BuildRequires: libgnomeui-devel
|
| 18 |
BuildRequires: libgnomecanvas-devel
|
| 19 |
BuildRequires: bonobo-activation-devel
|
| 20 |
BuildRequires: libbonoboui-devel
|
| 21 |
BuildRequires: libglade2-devel
|
| 22 |
BuildRequires: libGL-devel
|
| 23 |
BuildRequires: libGLU-devel
|
| 24 |
BuildRequires: GConf2-devel
|
| 25 |
BuildRequires: texinfo-tex
|
| 26 |
BuildRequires: texinfo
|
| 27 |
BuildRequires: tetex
|
| 28 |
BuildRequires: tetex-dvips
|
| 29 |
|
| 30 |
%description
|
| 31 |
GtkAda is an Ada graphical toolkit based on Gtk+. It allows you to
|
| 32 |
develop graphical applications in Ada using Gtk+.
|
| 33 |
|
| 34 |
|
| 35 |
%package devel
|
| 36 |
Summary: Development files for GtkAda
|
| 37 |
Group: Development/Libraries
|
| 38 |
Requires: %{name} = %{version}-%{release}
|
| 39 |
Requires: %{name}-gnome = %{version}-%{release}
|
| 40 |
Requires: %{name}-glade = %{version}-%{release}
|
| 41 |
Requires: %{name}-gl = %{version}-%{release}
|
| 42 |
Requires: perl
|
| 43 |
Requires: gtk2-devel
|
| 44 |
Requires: pkgconfig
|
| 45 |
|
| 46 |
%description devel
|
| 47 |
Development files for GtkAda.
|
| 48 |
|
| 49 |
|
| 50 |
%package gnome
|
| 51 |
Summary: GNOME bindings of GtkAda
|
| 52 |
Group: Development/Libraries
|
| 53 |
|
| 54 |
%description gnome
|
| 55 |
%{summary}.
|
| 56 |
|
| 57 |
|
| 58 |
%package glade
|
| 59 |
Summary: Glade bindings of GtkAda
|
| 60 |
Group: Development/Libraries
|
| 61 |
|
| 62 |
%description glade
|
| 63 |
%{summary}.
|
| 64 |
|
| 65 |
|
| 66 |
%package gl
|
| 67 |
Summary: OpenGL bindings of GtkAda
|
| 68 |
Group: Development/Libraries
|
| 69 |
|
| 70 |
%description gl
|
| 71 |
%{summary}.
|
| 72 |
|
| 73 |
|
| 74 |
%description devel
|
| 75 |
Development files for GtkAda.
|
| 76 |
|
| 77 |
|
| 78 |
%package doc
|
| 79 |
Summary: Documentation for GtkAda
|
| 80 |
Group: Documentation
|
| 81 |
Requires: %{name}-devel = %{version}-%{release}
|
| 82 |
|
| 83 |
%description doc
|
| 84 |
Documentation for GtkAda.
|
| 85 |
|
| 86 |
|
| 87 |
%prep
|
| 88 |
%setup -q -n %{name}-%{version}
|
| 89 |
%patch0 -p1 -b .gtk217
|
| 90 |
sed -i "s|\$.prefix./lib|\$(libdir)|" projects/Makefile
|
| 91 |
sed -i "s|\$prefix/lib|%{_libdir}|" projects/generate_prj.sh
|
| 92 |
sed -i "s|@prefix@/lib|@prefix@/%{_lib}|" projects/gtkada.pc.in
|
| 93 |
find -name .cvsignore | xargs rm -fr
|
| 94 |
|
| 95 |
%build
|
| 96 |
# adapt opt flags to gnatmake
|
| 97 |
GNAT_RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's|--param=ssp-buffer-size=4||'`
|
| 98 |
sed -i "s|GNATFLAGS =|GNATFLAGS = $GNAT_RPM_OPT_FLAGS |" src/Makefile.common*
|
| 99 |
%configure
|
| 100 |
sed -i 's|--param=ssp-buffer-size=4||' testgtk/Makefile
|
| 101 |
make incdir=%{_includedir}/gtkada alidir=%{_libdir}/gtkada
|
| 102 |
make -C docs
|
| 103 |
|
| 104 |
|
| 105 |
%install
|
| 106 |
rm -rf $RPM_BUILD_ROOT
|
| 107 |
%makeinstall incdir=$RPM_BUILD_ROOT%{_includedir}/gtkada alidir=$RPM_BUILD_ROOT%{_libdir}/gtkada
|
| 108 |
(make -C docs install prefix=$PWD/doc-install)
|
| 109 |
|
| 110 |
# move shared libraries to standard place
|
| 111 |
rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*
|
| 112 |
mv $RPM_BUILD_ROOT%{_libdir}/gtkada/relocatable/lib* $RPM_BUILD_ROOT%{_libdir}
|
| 113 |
|
| 114 |
# make libraries executables, otherwise dependencies are not found
|
| 115 |
chmod 0755 $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
|
| 116 |
|
| 117 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
| 118 |
(cd docs; install -m 0644 gate.1 gtkada-config.1 $RPM_BUILD_ROOT%{_mandir}/man1)
|
| 119 |
|
| 120 |
# this conflicts with gdialog from gnome-utils
|
| 121 |
rm -f $RPM_BUILD_ROOT%{_bindir}/gdialog
|
| 122 |
|
| 123 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
|
| 124 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/examples
|
| 125 |
|
| 126 |
|
| 127 |
%clean
|
| 128 |
rm -rf $RPM_BUILD_ROOT
|
| 129 |
|
| 130 |
|
| 131 |
%post -p /sbin/ldconfig
|
| 132 |
|
| 133 |
%postun -p /sbin/ldconfig
|
| 134 |
|
| 135 |
|
| 136 |
%post gnome -p /sbin/ldconfig
|
| 137 |
|
| 138 |
%postun gnome -p /sbin/ldconfig
|
| 139 |
|
| 140 |
|
| 141 |
%post gl -p /sbin/ldconfig
|
| 142 |
|
| 143 |
%postun gl -p /sbin/ldconfig
|
| 144 |
|
| 145 |
|
| 146 |
%post glade -p /sbin/ldconfig
|
| 147 |
|
| 148 |
%postun glade -p /sbin/ldconfig
|
| 149 |
|
| 150 |
|
| 151 |
%files
|
| 152 |
%defattr(-,root,root,-)
|
| 153 |
%{_libdir}/libgtkada-*.so.*
|
| 154 |
%doc AUTHORS COPYING README
|
| 155 |
|
| 156 |
|
| 157 |
%files gnome
|
| 158 |
%defattr(-,root,root,-)
|
| 159 |
%{_libdir}/libgnomeada-*.so.*
|
| 160 |
|
| 161 |
|
| 162 |
%files gl
|
| 163 |
%defattr(-,root,root,-)
|
| 164 |
%{_libdir}/libgtkada_gl-*.so.*
|
| 165 |
|
| 166 |
|
| 167 |
%files glade
|
| 168 |
%defattr(-,root,root,-)
|
| 169 |
%{_libdir}/libgtkada_glade-*.so.*
|
| 170 |
|
| 171 |
|
| 172 |
%files devel
|
| 173 |
%defattr(-,root,root,-)
|
| 174 |
%{_bindir}/*
|
| 175 |
%{_includedir}/gtkada
|
| 176 |
%{_libdir}/gtkada
|
| 177 |
%{_libdir}/gnat
|
| 178 |
%{_libdir}/lib*.so
|
| 179 |
%{_libdir}/pkgconfig/*
|
| 180 |
%{_datadir}/gps
|
| 181 |
%{_mandir}/man*/*
|
| 182 |
%doc known-problems
|
| 183 |
|
| 184 |
|
| 185 |
%files doc
|
| 186 |
%defattr(-,root,root,-)
|
| 187 |
%doc examples
|
| 188 |
%doc doc-install/share/doc/gtkada/*
|
| 189 |
|
| 190 |
|
| 191 |
%changelog
|
| 192 |
* Sun Aug 9 2009 Gerard Milmeister <gemi@bluewin.ch> - 2.14.0-1
|
| 193 |
- new release 2.14.0
|
| 194 |
|
| 195 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.2-3
|
| 196 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 197 |
|
| 198 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.2-2
|
| 199 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 200 |
|
| 201 |
* Sat Dec 13 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.10.2-1
|
| 202 |
- new release 2.10.2
|
| 203 |
|
| 204 |
* Wed Jan 30 2008 Michel Salim <michel.sylvan@gmail.com> - 2.10.0-4
|
| 205 |
- Add missing BRs on gtk2-devel and pkgconfig
|
| 206 |
|
| 207 |
* Tue Jan 29 2008 Michel Salim <michel.sylvan@gmail.com> - 2.10.0-3
|
| 208 |
- Make gtkada.pc use _libdir
|
| 209 |
- Fix URL and source fields
|
| 210 |
|
| 211 |
* Sat Jan 5 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.10.0-2
|
| 212 |
- exclude arch ppc64
|
| 213 |
|
| 214 |
* Sat Jan 5 2008 Gerard Milmeister <gemi@bluewin.ch> - 2.10.0-1
|
| 215 |
- new release 2.10.0
|
| 216 |
- documentation in separate package
|
| 217 |
|
| 218 |
* Fri Jan 5 2007 Gerard Milmeister <gemi@bluewin.ch> - 2.8.0-7
|
| 219 |
- reenabled ppc
|
| 220 |
|
| 221 |
* Sat Oct 21 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.8.0-5
|
| 222 |
- new version 2.8.0
|
| 223 |
|
| 224 |
* Mon Aug 28 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-13
|
| 225 |
- Rebuild for FE6
|
| 226 |
|
| 227 |
* Mon Mar 27 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-12
|
| 228 |
- BuildReq texinfo -> texinfo-tex
|
| 229 |
|
| 230 |
* Fri Feb 17 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0
|
| 231 |
- Rebuild for Fedora Extras 5
|
| 232 |
|
| 233 |
* Thu Feb 2 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-10
|
| 234 |
- remove "--param=ssp-buffer-size=4" from gnatmake command line
|
| 235 |
|
| 236 |
* Wed Feb 1 2006 Gerard Milmeister <gemi@bluewin.ch> - 2.4.0-9
|
| 237 |
- patch to handle all cases
|
| 238 |
|
| 239 |
* Thu May 12 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> 2.4.0-6
|
| 240 |
- Add excludearch ppc ppc64 (no gcc-gnat currently for those) #157550
|
| 241 |
|
| 242 |
* Tue May 10 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> 2.4.0-5
|
| 243 |
- Remove excludearch x86_64 (gcc-gnat now in FC4 for x86_64)
|
| 244 |
- BR textinfo, tetex-dvips
|
| 245 |
|
| 246 |
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 2.4.0-4
|
| 247 |
- rebuilt
|
| 248 |
|
| 249 |
* Sun Feb 13 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-3
|
| 250 |
- Excluded arch x86_64
|
| 251 |
|
| 252 |
* Sat Feb 12 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-2
|
| 253 |
- Removed touching /usr/include/gtkada/*
|
| 254 |
|
| 255 |
* Sat Jan 22 2005 Gerard Milmeister <gemi@bluewin.ch> - 0:2.4.0-0.fdr.1
|
| 256 |
- New Version 2.4.0
|
| 257 |
|
| 258 |
* Sat May 29 2004 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.1-0.fdr.2
|
| 259 |
- Replaced XFree86 reference with xorg
|
| 260 |
|
| 261 |
* Fri Nov 21 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.1-0.fdr.1
|
| 262 |
- New Version 2.2.1
|
| 263 |
|
| 264 |
* Mon Nov 10 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.5
|
| 265 |
- Work around to compiler bug
|
| 266 |
|
| 267 |
* Tue Oct 28 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.3
|
| 268 |
- Better placing of documentation files
|
| 269 |
|
| 270 |
* Mon Oct 27 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.2
|
| 271 |
- Improved specfile
|
| 272 |
|
| 273 |
* Sun Oct 26 2003 Gerard Milmeister <gemi@bluewin.ch> - 0:2.2.0-0.fdr.1
|
| 274 |
- First Fedora release
|