]>
Commit | Line | Data |
---|---|---|
f96e3b12 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | %bcond_without vala # Vala API | |
5 | # | |
6 | Summary: MSI manipulation library and tools | |
7 | Summary(pl.UTF-8): Biblioteka i narzędzia do obróbki plików MSI | |
8 | Name: msitools | |
7e4666d5 | 9 | Version: 0.94 |
f96e3b12 JB |
10 | Release: 1 |
11 | License: LGPL v2.1+ | |
12 | Group: Applications | |
d66cf539 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/msitools/0.93/%{name}-%{version}.tar.xz |
7e4666d5 | 14 | # Source0-md5: 76dec60217d3bfa44c744a6a55577a83 |
f96e3b12 JB |
15 | URL: https://live.gnome.org/msitools |
16 | BuildRequires: autoconf >= 2.64 | |
17 | BuildRequires: automake | |
18 | BuildRequires: gcab-devel >= 0.1.10 | |
e33dd995 | 19 | BuildRequires: gettext-tools >= 0.18 |
f96e3b12 JB |
20 | BuildRequires: glib2-devel >= 1:2.23.0 |
21 | BuildRequires: gobject-introspection-devel >= 0.9.4 | |
22 | BuildRequires: intltool >= 0.35 | |
23 | BuildRequires: libgsf-devel | |
24 | BuildRequires: libtool | |
25 | BuildRequires: libuuid-devel >= 1.41.3 | |
26 | BuildRequires: libxml2-devel >= 1:2.7 | |
27 | BuildRequires: tar >= 1:1.22 | |
28 | %{?with_vala:BuildRequires: vala >= 2:0.16} | |
29 | BuildRequires: xz | |
30 | Requires: glib2 >= 1:2.23.0 | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | msitools is a set of programs to inspect and build Windows Installer | |
35 | (.MSI) files. It is based on libmsi, a portable library to read and | |
36 | write .MSI files. libmsi in turn is a port of (and a subset of) Wine's | |
37 | implementation of the Windows Installer. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | msitools to zbiór programów do badania i tworzenia plików Windows | |
41 | Installera (.MSI). Jest oparty na libmsi - przenośnej bibliotece do | |
42 | odczytu i zapisu plików .MSI. libmsi to z kolei port (podzbioru) | |
43 | implementacji Windows Installera z WINE. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for MSI library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki MSI | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: glib2-devel >= 1:2.23.0 | |
51 | ||
52 | %description devel | |
53 | Header files for MSI library. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe biblioteki MSI. | |
57 | ||
58 | %package static | |
59 | Summary: Static MSI library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka MSI | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static MSI library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka MSI. | |
69 | ||
70 | %package -n vala-libmsi | |
71 | Summary: Vala API for MSI library | |
72 | Summary(pl.UTF-8): API języka Vala do biblioteki MSI | |
73 | Group: Development/Libraries | |
74 | Requires: %{name}-devel = %{version}-%{release} | |
75 | Requires: vala >= 2:0.16 | |
76 | ||
77 | %description -n vala-libmsi | |
78 | Vala API for MSI library. | |
79 | ||
80 | %description -n vala-libmsi -l pl.UTF-8 | |
81 | API języka Vala do biblioteki MSI. | |
82 | ||
83 | %package -n bash-completion-msitools | |
84 | Summary: Bash completion for MSI tools | |
85 | Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla narzędzi MSI | |
86 | Group: Applications/Shells | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Requires: bash-completion >= 2.0 | |
f817b860 ER |
89 | %if "%{_rpmversion}" >= "5" |
90 | BuildArch: noarch | |
91 | %endif | |
f96e3b12 JB |
92 | |
93 | %description -n bash-completion-msitools | |
94 | Bash completion for MSI tools (msiinfo and msibuild). | |
95 | ||
96 | %description -n bash-completion-msitools -l pl.UTF-8 | |
97 | Bashowe dopełnianie poleceń dla narzędzi MSI (msiinfo oraz msibuild). | |
98 | ||
99 | %prep | |
100 | %setup -q | |
f96e3b12 JB |
101 | |
102 | %build | |
103 | %{__libtoolize} | |
104 | %{__aclocal} -I m4 | |
105 | %{__autoconf} | |
106 | %{__autoheader} | |
107 | %{__automake} | |
108 | %configure \ | |
109 | --enable-fast-install \ | |
110 | --disable-silent-rules \ | |
111 | %{!?with_static_libs:--disable-static} | |
112 | %{__make} | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | # obsoleted by pkg-config | |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmsi.la | |
122 | ||
46bd16d4 JB |
123 | %find_lang %{name} |
124 | ||
f96e3b12 JB |
125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
46bd16d4 | 128 | %files -f %{name}.lang |
f96e3b12 JB |
129 | %defattr(644,root,root,755) |
130 | %doc AUTHORS README TODO | |
131 | %attr(755,root,root) %{_bindir}/msibuild | |
46bd16d4 JB |
132 | %attr(755,root,root) %{_bindir}/msidiff |
133 | %attr(755,root,root) %{_bindir}/msidump | |
f96e3b12 JB |
134 | %attr(755,root,root) %{_bindir}/msiextract |
135 | %attr(755,root,root) %{_bindir}/msiinfo | |
136 | %attr(755,root,root) %{_bindir}/wixl | |
137 | %attr(755,root,root) %{_bindir}/wixl-heat | |
138 | %attr(755,root,root) %{_libdir}/libmsi.so.*.*.* | |
139 | %attr(755,root,root) %ghost %{_libdir}/libmsi.so.0 | |
140 | %{_libdir}/girepository-1.0/Libmsi-1.0.typelib | |
141 | %{_datadir}/wixl-%{version} | |
142 | ||
143 | %files devel | |
144 | %defattr(644,root,root,755) | |
145 | %attr(755,root,root) %{_libdir}/libmsi.so | |
146 | %{_includedir}/libmsi-1.0 | |
147 | %{_datadir}/gir-1.0/Libmsi-1.0.gir | |
148 | %{_pkgconfigdir}/libmsi-1.0.pc | |
149 | ||
150 | %if %{with static_libs} | |
151 | %files static | |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libmsi.a | |
154 | %endif | |
155 | ||
156 | %if %{with vala} | |
157 | %files -n vala-libmsi | |
158 | %defattr(644,root,root,755) | |
159 | %{_datadir}/vala/vapi/libmsi-1.0.vapi | |
160 | %endif | |
161 | ||
162 | %files -n bash-completion-msitools | |
163 | %defattr(644,root,root,755) | |
164 | %{_datadir}/bash-completion/completions/msitools |