source: projects/specs/trunk/P/PyQt/PyQt-vl.spec @ 10460

Revision 10460, 3.2 KB checked in by Takemikaduchi, 6 years ago (diff)

firefox: new upstrream release
others: rebuild with gcc-5.4.0

Line 
1%global python_sitelib  %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
2%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
3
4%define name    PyQt
5%define version 3.18.1
6%define release 5%{?_dist_release}
7
8Summary:        Python bindings for Qt.
9Summary(ja):    Qt の Python バインディング
10Name:           %{name}
11Version:        %{version}
12Release:        %{release}
13License:        GPLv2
14Group:          System Environment/Libraries
15URL:            http://www.riverbankcomputing.co.uk/pyqt
16
17Source:         http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/%{name}-x11-gpl-%{version}.tar.gz
18# FTBFS against sip-4.15+
19Patch1: PyQt-x11-gpl-3.18.1-sip415.patch
20
21BuildRoot:      %{_tmppath}/%{name}-%{version}-root
22BuildRequires:  libXmu-devel
23BuildRequires:  python-devel
24BuildRequires:  qt-devel
25BuildRequires:  sip-devel
26Requires:       python
27
28%description
29Python bindings for the Qt C++ class library.
30
31%package devel
32Summary:        Files needed to build other bindings based on Qt
33Group:          Development/Libraries
34Requires:       %{name} = %{version}
35Requires:       sip-devel qt-devel
36
37%description devel
38Files needed to build other bindings for C++ classes that inherit from any
39of the Qt classes (e.g. KDE or your own).
40
41%prep
42%setup -q -n %{name}-x11-gpl-%{version}
43%patch1 -p0 -b .sip415
44
45%build
46unset QTDIR || : ; . /etc/profile.d/qt.sh
47
48echo yes | python configure.py -d %{python_sitearch} CXXFLAGS="%{optflags} -DANY=void" CFLAGS="%{optflags} -DANY=void"
49
50# Makefiles are broken, workaround
51make -C qt %{?_smp_mflags}
52make %{?_smp_mflags}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56make DESTDIR=$RPM_BUILD_ROOT install
57mkdir -p $RPM_BUILD_ROOT%{_datadir}/sip/qt
58cp -r sip/* $RPM_BUILD_ROOT%{_datadir}/sip/qt/
59
60%clean
61rm -rf %{buildroot}
62
63%files
64%defattr(-, root, root, 755)
65%doc NEWS README ChangeLog THANKS
66%doc doc/PyQt.html
67%{_bindir}/*
68%{python_sitearch}/*
69
70%files devel
71%defattr(-,root,root)
72%doc examples*
73%{_datadir}/sip/*
74
75%changelog
76* Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-5
77- rebuild with gcc-5.4.0
78
79* Sat Nov  8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.18.1-4
80- rebuilt on current VineSeed
81- added patch1
82- moved to System Environment/Libraries Group
83
84* Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-3
85- rebuilt with python-2.7.2
86
87* Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.18.1-2
88- rebuilt with python-2.6.4
89
90* Thu Nov 12 2009 Ryoichi INAGAKI <owa@bg.wakwak.com> 3.18.1-1
91- new upstream release
92- removed qscintilla dependency
93
94* Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 3.17.3-1vl5
95- rebuilt with python-2.5.2
96- added pyexeclib macro
97- applied new versioning policy
98
99* Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 3.17.3-0vl2
100- changed source url
101- fixed python site-packages path (for lib64)
102
103* Thu Sep 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.17.3-0vl1
104- updated to 3.16
105- rebuilt with new toolchain
106
107* Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.16-0vl1
108- updated to 3.16
109- changed Group to Development/Languages
110- rebuild with python-2.4.3, sip-4.4.5, qscinteilla-1.6
111
112* Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.13-0vl2
113- rebuild with python-2.4.1
114
115* Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.13-0vl1
116- initial release for VineLinux
117
Note: See TracBrowser for help on using the repository browser.