[521] | 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 | |
---|
| 4 | Name: qedje |
---|
| 5 | Version: 0.4.0 |
---|
[1981] | 6 | Release: 6%{?_dist_release} |
---|
[521] | 7 | Summary: A library combining the benefits of Edje and Qt |
---|
| 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: GPLv3+ |
---|
| 11 | URL: http://code.openbossa.org/projects/%{name} |
---|
| 12 | Source0: http://code.openbossa.org/projects/%{name}/repos/mainline/archive/0206ec8f2a802bf51455179933d8b7ab3e41a38b.tar.gz |
---|
| 13 | Patch0: qedje-0.4.0-fix_python_install.patch |
---|
[1981] | 14 | Patch1: qedje-0.4.0-fix-install.patch |
---|
[521] | 15 | |
---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | BuildRequires: qt4-devel |
---|
| 19 | BuildRequires: eet-devel |
---|
| 20 | BuildRequires: qzion-devel |
---|
| 21 | BuildRequires: qzion-python-devel |
---|
| 22 | BuildRequires: cmake |
---|
| 23 | BuildRequires: pkgconfig |
---|
| 24 | BuildRequires: python-devel |
---|
| 25 | BuildRequires: sip-devel |
---|
| 26 | BuildRequires: PyQt4-devel |
---|
| 27 | |
---|
| 28 | %description |
---|
| 29 | The main purpose of the QEdje project is to build a bridge among components |
---|
| 30 | that proved to have great value for open source developers: Edje and Qt. This |
---|
| 31 | will extend the Qt toolkit with the flexibility of a declarative language, such |
---|
| 32 | as Edje, and also enable Qt widgets to be embedded into Edje UI design. |
---|
| 33 | |
---|
| 34 | %package devel |
---|
| 35 | Summary: Development files for %{name} |
---|
| 36 | Group: Development/Libraries |
---|
| 37 | Requires: cmake |
---|
| 38 | Requires: pkgconfig |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | Requires: qzion-devel |
---|
| 41 | Requires: eet-devel |
---|
| 42 | |
---|
| 43 | %description devel |
---|
| 44 | The %{name}-devel package contains libraries and header files for |
---|
| 45 | developing applications that use %{name}. |
---|
| 46 | |
---|
| 47 | %package python |
---|
| 48 | Summary: Python bindings for %{name} |
---|
| 49 | Group: Development/Libraries |
---|
| 50 | Requires: PyQt4 |
---|
| 51 | Requires: qzion-python |
---|
| 52 | |
---|
| 53 | %description python |
---|
| 54 | The %{name}-python package contains python bindings for %{name} |
---|
| 55 | |
---|
| 56 | %package python-devel |
---|
| 57 | Summary: Python bindings for %{name} |
---|
| 58 | Group: Development/Libraries |
---|
| 59 | Requires: sip |
---|
| 60 | Requires: PyQt4-devel |
---|
| 61 | Requires: qzion-python-devel |
---|
| 62 | Requires: %{name}-python = %{version}-%{release} |
---|
| 63 | |
---|
| 64 | %description python-devel |
---|
| 65 | The %{name}-python-devel package contains the development files |
---|
| 66 | for the python bindings for %{name} |
---|
| 67 | |
---|
| 68 | %prep |
---|
| 69 | %setup -q -n %{name}-mainline |
---|
| 70 | %patch0 -p1 |
---|
[1981] | 71 | %patch1 -p1 -b .fix-install |
---|
[521] | 72 | |
---|
| 73 | %build |
---|
| 74 | |
---|
| 75 | mkdir -p %{_target_platform} |
---|
| 76 | pushd %{_target_platform} |
---|
| 77 | %cmake \ |
---|
| 78 | -DPYTHON_SITE_PACKAGES_DIR=%{python_sitearch} \ |
---|
| 79 | -DQZION_SIP_DIR=%{_datadir}/sip/qzion \ |
---|
| 80 | .. |
---|
| 81 | popd |
---|
| 82 | |
---|
| 83 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %install |
---|
| 87 | rm -rf %{buildroot} |
---|
| 88 | make install/fast -C %{_target_platform} DESTDIR=%{buildroot} |
---|
| 89 | |
---|
| 90 | %clean |
---|
| 91 | rm -rf %{buildroot} |
---|
| 92 | |
---|
| 93 | %post -p /sbin/ldconfig |
---|
| 94 | |
---|
| 95 | %postun -p /sbin/ldconfig |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %files |
---|
| 99 | %defattr(-,root,root,-) |
---|
| 100 | %doc README COPYING |
---|
| 101 | %{_bindir}/qedje_viewer |
---|
| 102 | %{_libdir}/*.so.* |
---|
| 103 | |
---|
| 104 | %files devel |
---|
| 105 | %defattr(-,root,root,-) |
---|
| 106 | %{_libdir}/*.so |
---|
| 107 | %{_includedir}/* |
---|
| 108 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 109 | |
---|
| 110 | %files python |
---|
| 111 | %defattr(-,root,root,-) |
---|
| 112 | %{python_sitearch}/%{name} |
---|
| 113 | |
---|
| 114 | %files python-devel |
---|
| 115 | %defattr(-,root,root,-) |
---|
| 116 | %{_datadir}/sip/%{name} |
---|
| 117 | |
---|
| 118 | %changelog |
---|
[1981] | 119 | * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.0-6 |
---|
| 120 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 121 | - added qedje-0.4.0-fix-install.patch (from mandriva) |
---|
| 122 | |
---|
[868] | 123 | * Mon Apr 19 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.0-5 |
---|
| 124 | - rebuilt with python-2.6 |
---|
| 125 | |
---|
[521] | 126 | * Sun Sep 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> -0.4.0-3 |
---|
| 127 | - use %%cmake macro |
---|
| 128 | |
---|
| 129 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4.0-3 |
---|
| 130 | - Initial build for Vine Linux |
---|
| 131 | |
---|
| 132 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2 |
---|
| 133 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 134 | |
---|
| 135 | * Fri Mar 06 2009 John5342 <john5342 at, fedoraproject.org> 0.4.0-1 |
---|
| 136 | - Updated to new upstream release (0.4.0) |
---|
| 137 | |
---|
| 138 | * Fri Mar 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.3.0-5 |
---|
| 139 | - revert (previous borkage probably due to qt-4.5-rc1) |
---|
| 140 | |
---|
| 141 | * Wed Mar 05 2009 Caolán McNamara <caolanm@redhat.com> - 0.3.0-4 |
---|
| 142 | - BR: phonon-devel |
---|
| 143 | |
---|
| 144 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
| 145 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 146 | |
---|
| 147 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-2 |
---|
| 148 | - Fixed a license |
---|
| 149 | - BR: qzion-devel |
---|
| 150 | - devel R: qzion-devel, eet-devel |
---|
| 151 | |
---|
| 152 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-1 |
---|
| 153 | - Initial package |
---|