]>
Commit | Line | Data |
---|---|---|
da106937 JB |
1 | Summary: Box package manager program and library |
2 | Summary(pl.UTF-8): Program i biblioteka zarządcy pakietów Box | |
3 | Name: box | |
4 | Version: 0.1.13 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Applications/Archiving | |
8 | Source0: http://download.gna.org/pingwinek/releases/box/%{name}-%{version}.tar.bz2 | |
9 | # Source0-md5: b382a5bf67340c7e5cc851c1f99fbe6e | |
10 | Patch0: %{name}-build.patch | |
11 | Patch1: %{name}-flags.patch | |
12 | URL: http://home.gna.org/pingwinek/ | |
13 | BuildRequires: autoconf >= 2.57 | |
14 | BuildRequires: automake | |
15 | BuildRequires: curl-devel | |
16 | BuildRequires: glib2-devel >= 1:2.14.0 | |
17 | BuildRequires: libtool | |
18 | BuildRequires: libxml2-devel >= 2.0 | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: sqlite3-devel >= 3 | |
21 | Requires: glib2 >= 1:2.14.0 | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | Box package manager program and library, designed for Pingwinek | |
26 | distribution. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Program i biblioteka zarządcy pakietów Box, zaprojektowane dla | |
30 | dystrybucji Pingwinek. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for Box library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Box | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | Requires: glib2-devel >= 1:2.14.0 | |
38 | ||
39 | %description devel | |
40 | Header files for Box library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki Box. | |
44 | ||
45 | %package static | |
46 | Summary: Static Box library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka Box | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static Box library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka Box. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | %patch1 -p1 | |
61 | ||
62 | %build | |
63 | %{__libtoolize} | |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure | |
69 | ||
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
78 | # obsoleted by pkg-config | |
79 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbox.la | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc AUTHORS | |
90 | %attr(755,root,root) %{_bindir}/box | |
91 | %attr(755,root,root) %{_bindir}/box-info | |
92 | %attr(755,root,root) %{_bindir}/box-vercmp | |
93 | %attr(755,root,root) %{_bindir}/box-db-manager | |
94 | %attr(755,root,root) %{_bindir}/box-query | |
95 | %attr(755,root,root) %{_bindir}/box-repos | |
96 | %attr(755,root,root) %{_bindir}/box-not-found | |
97 | %attr(755,root,root) %{_libdir}/libbox.so.*.*.* | |
98 | %attr(755,root,root) %ghost %{_libdir}/libbox.so.0 | |
99 | %dir %{_libdir}/box | |
100 | %{_libdir}/box/macros | |
101 | %dir %{_sysconfdir}/box | |
102 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/box/box-repos.conf | |
103 | ||
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_libdir}/libbox.so | |
107 | %{_includedir}/libbox | |
108 | %{_pkgconfigdir}/libbox.pc | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libbox.a |