[2041] | 1 | %define ver 1.6 |
---|
| 2 | |
---|
[11339] | 3 | %define _unpackaged_files_terminate_build 1 |
---|
| 4 | |
---|
[2041] | 5 | Summary: A C++ wrapper for atk |
---|
| 6 | Summary(ja): atk の C++ ラッパー |
---|
| 7 | Name: atkmm |
---|
[12444] | 8 | Version: 2.28.0 |
---|
| 9 | Release: 1%{?_dist_release} |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
| 12 | |
---|
[2041] | 13 | License: LGPL |
---|
[12444] | 14 | %global shortver %(echo %{version} | sed -e 's/\.[0-9]*$//') |
---|
| 15 | Source: https://download.gnome.org/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz |
---|
[2041] | 16 | |
---|
| 17 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | |
---|
| 19 | Requires: atk >= 1.12.0 |
---|
| 20 | Requires: glibmm >= 2.24.0 |
---|
| 21 | BuildRequires: atk-devel >= 1.12.0 |
---|
| 22 | BuildRequires: glibmm-devel >= 2.24.0 |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Atkmm is a C++ wrapper for atk. |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | %package devel |
---|
| 29 | Summary: Development tools for atkmm applications. |
---|
| 30 | Summary(ja): atkmm アプリケーションの開発用ファイル |
---|
| 31 | Group: Development/Libraries |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | Requires: atk-devel >= 1.12.0 |
---|
| 34 | Requires: glibmm-devel >= 2.24.0 |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | Header files and libraries for building a extension library for the atkmm. |
---|
| 38 | |
---|
[12444] | 39 | |
---|
[2041] | 40 | %prep |
---|
| 41 | %setup -q |
---|
| 42 | |
---|
[12444] | 43 | |
---|
[2041] | 44 | %build |
---|
| 45 | %configure --disable-static |
---|
| 46 | make %{?_smp_mflags} |
---|
| 47 | |
---|
[12444] | 48 | |
---|
[2041] | 49 | %install |
---|
[12444] | 50 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
[2041] | 51 | |
---|
[12444] | 52 | make install DESTDIR=%{buildroot} |
---|
[2041] | 53 | |
---|
[12444] | 54 | find %{buildroot} -type f -name "*.a" -exec rm -f {} ';' |
---|
| 55 | find %{buildroot} -type f -name "*.la" -exec rm -f {} ';' |
---|
[2041] | 56 | |
---|
| 57 | # Fix documentation installation, put everything under gtk-doc |
---|
[12444] | 58 | mkdir -p %{buildroot}%{_datadir}/gtk-doc/html/%{name}-%{ver} |
---|
| 59 | mv ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{ver}/* %{buildroot}%{_datadir}/gtk-doc/html/%{name}-%{ver}/ |
---|
[2041] | 60 | |
---|
| 61 | # devhelp path fix |
---|
[12444] | 62 | sed -i 's:doc/%{name}-%{ver}:gtk-doc/html/%{name}-%{ver}:g' %{buildroot}%{_datadir}/devhelp/books/%{name}-%{ver}/%{name}-%{ver}.devhelp2 |
---|
[2041] | 63 | |
---|
| 64 | # remove demos, examples |
---|
[12444] | 65 | rm -rf %{buildroot}%{_datadir}/%{name}-%{ver}/demo |
---|
| 66 | rm -rf %{buildroot}%{_datadir}/%{name}-%{ver}/examples |
---|
[2041] | 67 | |
---|
[12444] | 68 | |
---|
| 69 | %clean |
---|
| 70 | [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot} |
---|
| 71 | |
---|
| 72 | |
---|
[2041] | 73 | %post -p /sbin/ldconfig |
---|
| 74 | |
---|
| 75 | %postun -p /sbin/ldconfig |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %files |
---|
| 79 | %defattr(-, root, root) |
---|
| 80 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
| 81 | %{_libdir}/lib*.so.* |
---|
| 82 | |
---|
| 83 | %files devel |
---|
| 84 | %defattr(-, root, root) |
---|
| 85 | %{_includedir}/* |
---|
| 86 | %{_libdir}/*.so |
---|
| 87 | %{_libdir}/%{name}-* |
---|
| 88 | %{_libdir}/pkgconfig/*.pc |
---|
| 89 | %{_datadir}/gtk-doc/html/* |
---|
| 90 | %{_datadir}/devhelp/books/* |
---|
| 91 | |
---|
[12444] | 92 | |
---|
[2041] | 93 | %changelog |
---|
[12444] | 94 | * Sun Aug 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.28.0-1 |
---|
| 95 | - new upstream release. |
---|
| 96 | |
---|
[11339] | 97 | * Sat Jan 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.24.2-3 |
---|
| 98 | - renuilt with atk-2.27.1 anf glibmm-2.54.1. |
---|
| 99 | |
---|
[10413] | 100 | * Wed Jun 29 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.2-2 |
---|
| 101 | - rebuild with gcc-5.4.0 |
---|
| 102 | |
---|
[9876] | 103 | * Sat Dec 19 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.2-1 |
---|
| 104 | - new upstream release |
---|
| 105 | |
---|
[9791] | 106 | * Sat Oct 31 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.1-1 |
---|
| 107 | - new upstream release |
---|
| 108 | |
---|
[9340] | 109 | * Sun Feb 08 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.7-2 |
---|
| 110 | - rebuild with VineSeed environment |
---|
| 111 | |
---|
[7681] | 112 | * Sat May 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.7-1 |
---|
| 113 | - new upstream release |
---|
| 114 | |
---|
[5094] | 115 | * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.6-1 |
---|
| 116 | - new upstream release |
---|
| 117 | |
---|
[4616] | 118 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.5-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[2465] | 121 | * Sun Jan 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.2-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[2362] | 124 | * Sat Dec 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.1-1 |
---|
| 125 | - new upstream release |
---|
| 126 | |
---|
[2041] | 127 | * Sat Oct 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.22.0-1 |
---|
| 128 | - initial build for Vine Linux |
---|
| 129 | |
---|