source: spec/trunk/SPECS/yum-plugin-replace.spec@ 1010

Last change on this file since 1010 was 937, checked in by Silvan Scherrer, 9 years ago

spec: yum-plugin-replace: Release version 0.2.7-1.

File size: 1.6 KB
Line 
1Name: yum-plugin-replace
2Version: 0.2.7
3Release: 1%{?dist}
4Summary: Package Replacement Plugin for Yum
5
6Group: System Environment/Base
7License: GPL
8URL: https://github.com/iuscommunity/yum-plugin-replace
9Source0: https://github.com/iuscommunity/%{name}/archive/%{version}.tar.gz
10BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11BuildArch: noarch
12
13Requires: yum
14
15%description
16This plugin enables the ability to replace an installed package, with another
17package that provides the same thing. It was developed specifically for the
18IUS Community Project whose packages have alternative names as to not
19automatically upgrade stock packages. They also do not Obsolete the packages
20they provide, therefore making upgrading a little bit more tedious. For
21example upgrading 'mysql' to 'mysql50' or 'mysql51' requires first
22uninstalling 'mysql' and then installing the alternate package name.
23
24%prep
25%setup -q
26
27
28%build
29# pass
30
31%install
32rm -rf %{buildroot}
33%{__mkdir} -p %{buildroot}%{_sysconfdir}/yum/pluginconf.d/ \
34 %{buildroot}%{_prefix}/lib/yum-plugins/
35
36%{__install} -m 0644 ./etc/yum/pluginconf.d/replace.conf \
37 %{buildroot}%{_sysconfdir}/yum/pluginconf.d/
38%{__install} -m 0644 ./lib/yum-plugins/replace.py \
39 %{buildroot}%{_prefix}/lib/yum-plugins/
40
41%clean
42rm -rf %{buildroot}
43
44
45%files
46%defattr(-,root,root,-)
47%doc README LICENSE ChangeLog
48%config(noreplace) %{_sysconfdir}/yum/pluginconf.d/replace.conf
49%{_prefix}/lib/yum-plugins/replace.py*
50
51
52
53%changelog
54* Fri Jan 27 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 0.2.7-1
55- initial build
Note: See TracBrowser for help on using the repository browser.