1 | %define pkg_name spread-sheet-widget |
---|
2 | %define pkg_version 0.3 |
---|
3 | %define pkg_release 1%{?_dist_release} |
---|
4 | |
---|
5 | Summary: A library for Gtk+ which provides a widget for viewing and manipulating 2 dimensional tabular data |
---|
6 | Name: %{pkg_name} |
---|
7 | Version: %{pkg_version} |
---|
8 | Release: %{pkg_release} |
---|
9 | |
---|
10 | License: LGPv3+ |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: https://www.gnu.org/software/ssw/ |
---|
13 | Source0: http://alpha.gnu.org/gnu/ssw/%{name}-%{version}.tar.gz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
16 | BuildRequires: gtk3-devel |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | GNU Spread Sheet Widget is a library for Gtk+ which provides a widget |
---|
24 | for viewing and manipulating 2 dimensional tabular data in a manner |
---|
25 | similar to many popular spread sheet programs. |
---|
26 | |
---|
27 | The design follows the model-view-controller paradigm and is of |
---|
28 | complexity O(1) in both time and space. This means that it is |
---|
29 | efficient and fast even for very large data. |
---|
30 | |
---|
31 | Features commonly found in graphical user interfaces such as cut and paste, |
---|
32 | drag and drop and row/column labelling are also included. |
---|
33 | |
---|
34 | |
---|
35 | %package devel |
---|
36 | Summary: Development files for %{name} |
---|
37 | Summary(ja): %{name} の開発ファイル |
---|
38 | Group: Development/Libraries |
---|
39 | Requires: %{name} = %{version}-%{release} |
---|
40 | |
---|
41 | |
---|
42 | %description devel |
---|
43 | This package contains the libraries and header files needed for |
---|
44 | developing with %{name}. |
---|
45 | |
---|
46 | |
---|
47 | %prep |
---|
48 | %setup -q %{name}-%{version} |
---|
49 | |
---|
50 | %build |
---|
51 | %{configure} --disable-static |
---|
52 | %{__make} %{?_smp_mflags} |
---|
53 | |
---|
54 | %install |
---|
55 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
56 | %{makeinstall} |
---|
57 | |
---|
58 | find ${RPM_BUILD_ROOT} -name '*.la' -delete |
---|
59 | |
---|
60 | %{__rm} -rf ${RPM_BUILD_ROOT}%{_infodir}/dir |
---|
61 | |
---|
62 | %clean |
---|
63 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
64 | |
---|
65 | %post |
---|
66 | file=%{_infodir}/%{name}.info.gz |
---|
67 | if [ -e ${file} ]; then |
---|
68 | /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null |
---|
69 | fi |
---|
70 | %{_syssbindir}/ldconfig |
---|
71 | |
---|
72 | %preun |
---|
73 | if [ $1 = 0 ]; then |
---|
74 | file=%{_infodir}/%{name}.info.gz |
---|
75 | if [ -e ${file} ]; then |
---|
76 | /sbin/install-info --delete ${file} %{_infodir}/dir 2>/dev/null |
---|
77 | fi |
---|
78 | fi |
---|
79 | |
---|
80 | %postun -p %{_syssbindir}/ldconfig |
---|
81 | |
---|
82 | |
---|
83 | %files |
---|
84 | %defattr(-, root, root, -) |
---|
85 | %doc AUTHORS COPYING ChangeLog NEWS README TODO |
---|
86 | %{_libdir}/lib%{name}.so.* |
---|
87 | %{_infodir}/%{name}.info.gz |
---|
88 | |
---|
89 | %files devel |
---|
90 | %defattr(-, root, root, -) |
---|
91 | %{_includedir}/ |
---|
92 | %{_libdir}/pkgconfig/%{name}.pc |
---|
93 | %{_libdir}/lib%{name}.so |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 0.3-1 |
---|
98 | - initial build |
---|
99 | |
---|