xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #635: pygtkglext.spec

File pygtkglext.spec, 4.5 KB (added by Antoine Martin, 7 years ago)

specfile from Fedora for pygtkglext

Line 
1%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
2%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
3
4Name:           pygtkglext
5Version:        1.1.0
6Release:        16%{?dist}
7Summary:        Python bindings for GtkGLExt
8License:        LGPLv2+
9Group:          System Environment/Libraries
10URL:            http://www.k-3d.org/gtkglext/Main_Page
11Source:         http://downloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13BuildRequires:  gtkglext-devel pygtk2-devel python-devel
14Requires:       pygtk2 PyOpenGL
15
16%description
17Python bindings for GtkGLExt.
18
19
20%package        devel
21Summary:        Development files for %{name}
22Group:          Development/Libraries
23Requires:       %{name} = %{version}-%{release}
24Requires:       pkgconfig pygtk2-devel
25
26%description    devel
27The %{name}-devel package contains libraries and header files for
28developing applications that use %{name}.
29
30
31%prep
32%setup -q
33iconv -f EUC-JP -t UTF8 AUTHORS > tmp
34mv tmp AUTHORS
35iconv -f EUC-JP -t UTF8 README > tmp
36mv tmp README
37
38
39%build
40%configure
41make %{?_smp_mflags}
42
43
44%install
45rm -rf $RPM_BUILD_ROOT
46make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
47if [ %{python_sitelib} != %{python_sitearch} ]; then
48  mv $RPM_BUILD_ROOT%{python_sitelib}/gtk-2.0/gtk/gdkgl/* \
49     $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gdkgl
50  mv $RPM_BUILD_ROOT%{python_sitelib}/gtk-2.0/gtk/gtkgl/* \
51     $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl
52fi
53rm $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gdkgl/_gdkgl.la
54rm $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl/_gtkgl.la
55
56# this can be executed to run some basic tests (it has a main and shebang)
57chmod +x $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl/apputils.py
58
59# for %%doc
60rm examples/Makefile*
61
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66
67%files
68%defattr(-,root,root,-)
69%doc AUTHORS ChangeLog COPYING COPYING.LIB README examples
70%{python_sitearch}/gtk-2.0/gtk/gdkgl
71%{python_sitearch}/gtk-2.0/gtk/gtkgl
72
73%files devel
74%defattr(-,root,root,-)
75%{_libdir}/pkgconfig/*.pc
76%{_datadir}/pygtk/2.0/defs/*
77
78
79%changelog
80* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-16
81- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
82
83* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-15
84- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
85
86* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-14
87- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
88
89* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-13
90- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
91
92* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-12
93- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
94
95* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 1.1.0-11
96- Rebuild for new libpng
97
98* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-10
99- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
100
101* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.1.0-9
102- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
103
104* Thu Jan  7 2010 Hans de Goede <hdegoede@redhat.com> 1.1.0-8
105- Change python_foo macros to use %%global as the new rpm will break
106  using %%define here, see:
107  https://www.redhat.com/archives/fedora-devel-list/2010-January/msg00093.html
108
109* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-7
110- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
111
112* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
113- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
114
115* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1.0-5
116- Rebuild for Python 2.6
117
118* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.0-4
119- Autorebuild for GCC 4.3
120
121* Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-3
122- Update License tag for new Licensing Guidelines compliance
123
124* Thu Mar 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-2
125- Various specfile improvements (bz 234122)
126
127* Sat Mar 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-1
128- Initial Fedora Extras package