[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: qzion |
---|
[1884] | 5 | Summary: A canvas abstraction |
---|
[521] | 6 | Version: 0.4.0 |
---|
[10570] | 7 | Release: 8%{?_dist_release} |
---|
[521] | 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: GPLv3+ |
---|
| 11 | URL: http://code.openbossa.org/projects/qzion |
---|
[1884] | 12 | |
---|
[521] | 13 | Source0: http://code.openbossa.org/projects/%{name}/repos/mainline/archive/d32223eae1bba7f1b191c334668f3f7dd662f582.tar.gz |
---|
| 14 | |
---|
| 15 | Patch0: qzion-0.4.0-fix_python_install.patch |
---|
| 16 | Patch1: qzion-0.4.0-fix_char_conversion.patch |
---|
[1884] | 17 | #Make configure_file use full path so that qzion.pc can be found correctly. |
---|
| 18 | Patch2: qzion-0.4.0-fix_configure_paths.patch |
---|
[521] | 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 21 | |
---|
| 22 | BuildRequires: qt4-devel |
---|
| 23 | BuildRequires: PyQt4-devel |
---|
| 24 | BuildRequires: cmake |
---|
| 25 | BuildRequires: pkgconfig |
---|
| 26 | BuildRequires: python-devel |
---|
| 27 | BuildRequires: sip-devel |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | QZion is an canvas abstraction used by and made for QEdje. |
---|
| 31 | |
---|
| 32 | %package devel |
---|
| 33 | Summary: Development files for %{name} |
---|
| 34 | Group: Development/Libraries |
---|
| 35 | Requires: cmake |
---|
| 36 | Requires: pkgconfig |
---|
| 37 | Requires: %{name} = %{version}-%{release} |
---|
| 38 | |
---|
| 39 | %description devel |
---|
| 40 | The %{name}-devel package contains libraries and header files for |
---|
| 41 | developing applications that use %{name}. |
---|
| 42 | |
---|
| 43 | %package python |
---|
| 44 | Summary: Python bindings for %{name} |
---|
| 45 | Group: Development/Libraries |
---|
| 46 | Requires: PyQt4 |
---|
| 47 | |
---|
| 48 | %description python |
---|
| 49 | The %{name}-python package contains python bindings for %{name} |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %package python-devel |
---|
| 53 | Summary: Python bindings for %{name} |
---|
| 54 | Group: Development/Libraries |
---|
| 55 | Requires: sip |
---|
| 56 | Requires: PyQt4-devel |
---|
| 57 | Requires: %{name}-python = %{version}-%{release} |
---|
| 58 | |
---|
| 59 | %description python-devel |
---|
| 60 | The %{name}-python-devel package contains the development files for |
---|
| 61 | the python bindings for %{name} |
---|
| 62 | |
---|
| 63 | %prep |
---|
| 64 | %setup -q -n %{name}-mainline |
---|
| 65 | %patch0 -p1 |
---|
| 66 | %patch1 -p1 |
---|
[1884] | 67 | %patch2 -p1 |
---|
[521] | 68 | |
---|
| 69 | %build |
---|
| 70 | |
---|
| 71 | mkdir -p %{_target_platform} |
---|
| 72 | pushd %{_target_platform} |
---|
| 73 | %cmake \ |
---|
| 74 | -DPYTHON_SITE_PACKAGES_DIR=%{python_sitearch} \ |
---|
| 75 | .. |
---|
| 76 | popd |
---|
| 77 | |
---|
| 78 | make %{?_smp_mflags} -C %{_target_platform} |
---|
| 79 | |
---|
| 80 | %install |
---|
| 81 | rm -rf %{buildroot} |
---|
| 82 | make install/fast -C %{_target_platform} DESTDIR=%{buildroot} |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf %{buildroot} |
---|
| 86 | |
---|
| 87 | |
---|
| 88 | %post -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %postun -p /sbin/ldconfig |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %files |
---|
| 94 | %defattr(-,root,root,-) |
---|
| 95 | %doc README COPYING |
---|
| 96 | %{_libdir}/*.so.* |
---|
| 97 | |
---|
| 98 | %files devel |
---|
| 99 | %defattr(-,root,root,-) |
---|
| 100 | %{_libdir}/*.so |
---|
| 101 | %{_includedir}/* |
---|
| 102 | %{_libdir}/pkgconfig/%{name}.pc |
---|
| 103 | |
---|
| 104 | %files python |
---|
| 105 | %defattr(-,root,root,-) |
---|
| 106 | %{python_sitearch}/%{name} |
---|
| 107 | |
---|
| 108 | %files python-devel |
---|
| 109 | %defattr(-,root,root,-) |
---|
| 110 | %{_datadir}/sip/%{name} |
---|
| 111 | |
---|
| 112 | %changelog |
---|
[10570] | 113 | * Sat Jul 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.0-8 |
---|
| 114 | - rebuild with gcc-5.4.0 |
---|
| 115 | |
---|
[1884] | 116 | * Thu Sep 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.0-7 |
---|
| 117 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
| 118 | |
---|
[521] | 119 | * Tue Mar 02 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.0-6 |
---|
| 120 | - rebuilt with python2.6 |
---|
| 121 | |
---|
| 122 | * Sun Sep 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> - 0.4.0-5 |
---|
| 123 | - use %%cmake macro |
---|
| 124 | |
---|
| 125 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4.0-4 |
---|
| 126 | - Initial build for Vine Linux |
---|
| 127 | |
---|
| 128 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3 |
---|
| 129 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 130 | |
---|
| 131 | * Thu Jul 16 2009 John5342 <john5342 at, fedoraproject.org> 0.4.0-2 |
---|
| 132 | - Fix char* conversion (#511583) |
---|
| 133 | |
---|
| 134 | * Fri Mar 06 2009 John5342 <john5342 at, fedoraproject.org> 0.4.0-1 |
---|
| 135 | - Updated to new upstream release (0.4.0) |
---|
| 136 | |
---|
| 137 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3 |
---|
| 138 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 139 | |
---|
| 140 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-2 |
---|
| 141 | - Implemented package review suggestions |
---|
| 142 | - Remove BR: eet-devel |
---|
| 143 | |
---|
| 144 | * Fri Dec 19 2008 John5342 <john5342 at, fedoraproject.org> 0.3.0-1 |
---|
| 145 | - Initial package |
---|