]>
Commit | Line | Data |
---|---|---|
ff76901c JB |
1 | Summary: Pacman - simple library-based package manager (from Arch Linux) |
2 | Summary(pl.UTF-8): Pacman - prosty, oparty na bibliotece zarządca pakietów (z Arch Linuksa) | |
3 | Name: alpm | |
eb4e6619 | 4 | Version: 5.2.2 |
ff76901c JB |
5 | Release: 0.1 |
6 | License: GPL v2+ | |
7 | Group: Libraries | |
61d306bd | 8 | Source0: https://sources.archlinux.org/other/pacman/pacman-%{version}.tar.gz |
eb4e6619 | 9 | # Source0-md5: 3a9b078a83996a3272844807b91959c6 |
ff76901c | 10 | URL: https://www.archlinux.org/pacman/ |
f70ab42b | 11 | BuildRequires: bash >= 4.4.0 |
61d306bd | 12 | BuildRequires: autoconf >= 2.64 |
ff76901c | 13 | BuildRequires: automake >= 1:1.11 |
61d306bd | 14 | BuildRequires: curl-devel >= 7.32.0 |
ff76901c JB |
15 | BuildRequires: gettext-devel >= 0.13.1 |
16 | BuildRequires: gpgme-devel >= 1.3.0 | |
61d306bd | 17 | BuildRequires: libarchive-devel >= 3.0.0 |
ff76901c JB |
18 | BuildRequires: libtool >= 2:2 |
19 | BuildRequires: openssl-devel | |
20 | BuildRequires: perl-base >= 1:5.10.1 | |
21 | BuildRequires: pkgconfig | |
f70ab42b JB |
22 | BuildRequires: python3 >= 1:3.2 |
23 | BuildRequires: rpmbuild(macros) >= 1.673 | |
ff76901c | 24 | Requires: %{name}-libs = %{version}-%{release} |
f70ab42b | 25 | Requires: bash >= 4.4.0 |
ff76901c JB |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | Pacman is a simple library-based package manager, designed for Arch | |
30 | Linux. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Pacman to prosty, oparty na bibliotece zarządca pakietów, powstały dla | |
34 | Arch Linuksa. | |
35 | ||
61d306bd JB |
36 | %package -n bash-completion-alpm |
37 | Summary: Bash completion for Arch Linux Package Manager (Pacman) | |
38 | Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla zarządcy pakietów Arch Linuksa (Pacmana) | |
39 | Group: Applications/Shells | |
40 | Requires: %{name} = %{version}-%{release} | |
f70ab42b | 41 | Requires: bash-completion >= 2.0 |
61d306bd JB |
42 | |
43 | %description -n bash-completion-alpm | |
44 | Bash completion for Arch Linux Package Manager (Pacman). | |
45 | ||
46 | %description -n bash-completion-alpm -l pl.UTF-8 | |
47 | Bashowe dopełnianie parametrów dla zarządcy pakietów Arch Linuksa | |
48 | (Pacmana). | |
49 | ||
50 | %package -n zsh-completion-alpm | |
51 | Summary: ZSH completion for Arch Linux Package Manager (Pacman) | |
52 | Summary(pl.UTF-8): Dopełnianie parametrów zarządcy pakietów Arch Linuksa (Pacmana) dla powłoki ZSH | |
53 | Group: Applications/Shells | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Requires: zsh | |
56 | ||
57 | %description -n zsh-completion-alpm | |
58 | ZSH completion for Arch Linux Package Manager (Pacman). | |
59 | ||
60 | %description -n zsh-completion-alpm -l pl.UTF-8 | |
61 | Dopełnianie parametrów zarządcy pakietów Arch Linuksa (Pacmana) dla | |
62 | powłoki ZSH. | |
63 | ||
ff76901c JB |
64 | %package libs |
65 | Summary: Arch Linux Package Management library | |
66 | Summary(pl.UTF-8): Biblioteka Arch Linux Package Management | |
67 | Group: Libraries | |
68 | ||
69 | %description libs | |
70 | Arch Linux Package Management library. | |
71 | ||
72 | %description libs -l pl.UTF-8 | |
73 | Biblioteka Arch Linux Package Management, służąca do zarządzania | |
74 | pakietami Arch Linuksa. | |
75 | ||
76 | %package devel | |
77 | Summary: Header files for ALPM library | |
78 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ALPM | |
79 | Group: Development/Libraries | |
80 | Requires: %{name}-libs = %{version}-%{release} | |
61d306bd | 81 | Requires: curl-devel >= 7.32.0 |
ff76901c | 82 | Requires: gpgme-devel >= 1.3.0 |
61d306bd | 83 | Requires: libarchive-devel >= 3.0.0 |
ff76901c JB |
84 | Requires: openssl-devel |
85 | ||
86 | %description devel | |
87 | Header files for ALPM library. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe biblioteki ALPM. | |
91 | ||
92 | %package static | |
93 | Summary: Static ALPM library | |
94 | Summary(pl.UTF-8): Statyczna biblioteka ALPM | |
95 | Group: Development/Libraries | |
96 | Requires: %{name}-devel = %{version}-%{release} | |
97 | ||
98 | %description static | |
99 | Static ALPM library. | |
100 | ||
101 | %description static -l pl.UTF-8 | |
102 | Statyczna biblioteka ALPM. | |
103 | ||
104 | %prep | |
105 | %setup -q -n pacman-%{version} | |
106 | ||
107 | %build | |
108 | %{__libtoolize} | |
109 | %{__aclocal} -I m4 | |
110 | %{__autoconf} | |
111 | %{__autoheader} | |
112 | %{__automake} | |
113 | %configure \ | |
114 | --disable-silent-rules | |
115 | ||
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | # obsoleted by pkg-config | |
125 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libalpm.la | |
126 | ||
127 | # too generic names | |
ff76901c JB |
128 | %{__mv} $RPM_BUILD_ROOT%{_bindir}/{,pacman-}vercmp |
129 | %{__mv} $RPM_BUILD_ROOT%{_mandir}/man8/{,pacman-}vercmp.8 | |
130 | ||
b6fa166e JB |
131 | # "Spanish (Latin America)" - clone to individual countries or provide es_419 as common? |
132 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/es_419 | |
133 | # less complete version of eu | |
134 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/eu_ES | |
135 | ||
ff76901c JB |
136 | %find_lang libalpm |
137 | %find_lang pacman | |
138 | %find_lang pacman-scripts | |
139 | cat pacman-scripts.lang >> pacman.lang | |
140 | ||
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post libs -p /sbin/ldconfig | |
145 | %postun libs -p /sbin/ldconfig | |
146 | ||
147 | %files -f pacman.lang | |
148 | %defattr(644,root,root,755) | |
ff76901c JB |
149 | %attr(755,root,root) %{_bindir}/makepkg |
150 | %attr(755,root,root) %{_bindir}/makepkg-template | |
151 | %attr(755,root,root) %{_bindir}/pacman | |
61d306bd | 152 | %attr(755,root,root) %{_bindir}/pacman-conf |
ff76901c JB |
153 | %attr(755,root,root) %{_bindir}/pacman-db-upgrade |
154 | %attr(755,root,root) %{_bindir}/pacman-key | |
ff76901c | 155 | %attr(755,root,root) %{_bindir}/pacman-vercmp |
ff76901c JB |
156 | %attr(755,root,root) %{_bindir}/repo-add |
157 | %attr(755,root,root) %{_bindir}/repo-elephant | |
158 | %attr(755,root,root) %{_bindir}/repo-remove | |
159 | %attr(755,root,root) %{_bindir}/testpkg | |
160 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/makepkg.conf | |
161 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pacman.conf | |
61d306bd | 162 | %{_datadir}/makepkg |
ff76901c | 163 | %{_datadir}/pacman |
f70ab42b | 164 | %{_npkgconfigdir}/libmakepkg.pc |
ff76901c | 165 | %{_mandir}/man1/makepkg-template.1* |
61d306bd | 166 | %{_mandir}/man5/BUILDINFO.5* |
ff76901c | 167 | %{_mandir}/man5/PKGBUILD.5* |
61d306bd | 168 | %{_mandir}/man5/alpm-hooks.5* |
ff76901c JB |
169 | %{_mandir}/man5/makepkg.conf.5* |
170 | %{_mandir}/man5/pacman.conf.5* | |
171 | %{_mandir}/man8/makepkg.8* | |
172 | %{_mandir}/man8/pacman.8* | |
f70ab42b | 173 | %{_mandir}/man8/pacman-conf.8* |
ff76901c JB |
174 | %{_mandir}/man8/pacman-key.8* |
175 | %{_mandir}/man8/pacman-vercmp.8* | |
ff76901c JB |
176 | %{_mandir}/man8/repo-add.8* |
177 | %{_mandir}/man8/repo-remove.8* | |
178 | ||
61d306bd JB |
179 | %files -n bash-completion-alpm |
180 | %defattr(644,root,root,755) | |
f70ab42b JB |
181 | %{bash_compdir}/makepkg |
182 | %{bash_compdir}/pacman | |
183 | %{bash_compdir}/pacman-key | |
61d306bd JB |
184 | |
185 | %files -n zsh-completion-alpm | |
186 | %defattr(644,root,root,755) | |
187 | %{_datadir}/zsh/site-functions/_pacman | |
188 | ||
ff76901c JB |
189 | %files libs -f libalpm.lang |
190 | %defattr(644,root,root,755) | |
191 | %doc AUTHORS NEWS README | |
192 | %attr(755,root,root) %{_libdir}/libalpm.so.*.*.* | |
f70ab42b | 193 | %attr(755,root,root) %ghost %{_libdir}/libalpm.so.12 |
ff76901c JB |
194 | |
195 | %files devel | |
196 | %defattr(644,root,root,755) | |
197 | %attr(755,root,root) %{_libdir}/libalpm.so | |
198 | %{_includedir}/alpm.h | |
199 | %{_includedir}/alpm_list.h | |
200 | %{_pkgconfigdir}/libalpm.pc | |
201 | %{_mandir}/man3/libalpm.3* | |
202 | ||
203 | %files static | |
204 | %defattr(644,root,root,755) | |
205 | %{_libdir}/libalpm.a |