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