]> git.pld-linux.org Git - packages/gcab.git/blob - gcab.spec
- updated to 1.6
[packages/gcab.git] / gcab.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API docs
4 %bcond_without  static_libs     # static library
5 %bcond_without  vala            # Vala binding
6
7 Summary:        Cabinet file library
8 Summary(pl.UTF-8):      Biblioteka obsługi plików cabinet
9 Name:           gcab
10 Version:        0.6
11 Release:        2
12 License:        LGPL v2.1+
13 Group:          Libraries
14 Source0:        http://ftp.gnome.org/pub/GNOME/sources/gcab/0.6/%{name}-%{version}.tar.xz
15 # Source0-md5:  dd7333644cb88995693f043da9bf55d3
16 BuildRequires:  gettext-tools
17 BuildRequires:  glib2-devel >= 1:2.22.0
18 BuildRequires:  gobject-introspection-devel >= 0.9.4
19 BuildRequires:  gtk-doc >= 1.14
20 BuildRequires:  intltool >= 0.40.0
21 BuildRequires:  pkgconfig
22 BuildRequires:  tar >= 1:1.22
23 %{?with_vala:BuildRequires:     vala >= 2:0.14}
24 BuildRequires:  xz
25 BuildRequires:  zlib-devel
26 Requires:       glib2 >= 1:2.22.0
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Cabinet file library.
31
32 %description -l pl.UTF-8
33 Biblioteka obsługi plików cabinet.
34
35 %package devel
36 Summary:        Header files for gcab library
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki gcab
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       glib2-devel >= 1:2.22.0
41
42 %description devel
43 Header files for gcab library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki gcab.
47
48 %package static
49 Summary:        Static gcab library
50 Summary(pl.UTF-8):      Statyczna biblioteka gcab
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static gcab library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka gcab.
59
60 %package apidocs
61 Summary:        gcab API documentation
62 Summary(pl.UTF-8):      Dokumentacja API biblioteki gcab
63 Group:          Documentation
64 Requires:       gtk-doc-common
65 %if "%{_rpmversion}" >= "5"
66 BuildArch:      noarch
67 %endif
68
69 %description apidocs
70 API documentation for gcab library.
71
72 %description apidocs -l pl.UTF-8
73 Dokumentacja API biblioteki gcab.
74
75 %package -n vala-gcab
76 Summary:        Vala API for gcab library
77 Summary(pl.UTF-8):      API języka Vala dla biblioteki gcab
78 Group:          Development/Libraries
79 Requires:       %{name}-devel = %{version}-%{release}
80 Requires:       vala >= 2:0.14
81 %if "%{_rpmversion}" >= "5"
82 BuildArch:      noarch
83 %endif
84
85 %description -n vala-gcab
86 Vala API for gcab library.
87
88 %description -n vala-gcab -l pl.UTF-8
89 API języka Vala dla biblioteki gcab.
90
91 %prep
92 %setup -q
93
94 %build
95 # disabling fast install in configure breaks DESTDIR install
96 # (libtool tries to relink gcab and fails, leaving temporary script instead of binary)
97 %configure \
98         --disable-silent-rules \
99         %{!?with_static_libs:--disable-static} \
100         --enable-fast-install \
101         --with-html-dir=%{_gtkdocdir}
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 # obsoleted by pkg-config
111 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgcab-1.0.la
112
113 %find_lang %{name}
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %post   -p /sbin/ldconfig
119 %postun -p /sbin/ldconfig
120
121 %files -f %{name}.lang
122 %defattr(644,root,root,755)
123 %doc NEWS
124 %attr(755,root,root) %{_bindir}/gcab
125 %attr(755,root,root) %{_libdir}/libgcab-1.0.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libgcab-1.0.so.0
127 %{_libdir}/girepository-1.0/GCab-1.0.typelib
128 %{_mandir}/man1/gcab.1*
129
130 %files devel
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_libdir}/libgcab-1.0.so
133 %{_includedir}/libgcab-1.0
134 %{_datadir}/gir-1.0/GCab-1.0.gir
135 %{_pkgconfigdir}/libgcab-1.0.pc
136
137 %if %{with static_libs}
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/libgcab-1.0.a
141 %endif
142
143 %if %{with apidocs}
144 %files apidocs
145 %defattr(644,root,root,755)
146 %{_gtkdocdir}/gcab
147 %endif
148
149 %if %{with vala}
150 %files -n vala-gcab
151 %defattr(644,root,root,755)
152 %{_datadir}/vala/vapi/libgcab-1.0.vapi
153 %endif
This page took 0.045978 seconds and 3 git commands to generate.